diff --git a/_c_c1101_8h_source.html b/_c_c1101_8h_source.html index 20dc386c..4da91d9d 100644 --- a/_c_c1101_8h_source.html +++ b/_c_c1101_8h_source.html @@ -687,110 +687,110 @@ $(document).ready(function(){initNavTree('_c_c1101_8h_source.html',''); initResi
734 
740  int16_t setBitRate(float br);
741 
-
747  int16_t setRxBandwidth(float rxBw);
-
748 
-
754  int16_t setFrequencyDeviation(float freqDev) override;
-
755 
-
761  int16_t getFrequencyDeviation(float *freqDev);
-
762 
-
768  int16_t setOutputPower(int8_t pwr);
-
769 
-
778  int16_t setSyncWord(uint8_t syncH, uint8_t syncL, uint8_t maxErrBits = 0, bool requireCarrierSense = false);
-
779 
-
788  int16_t setSyncWord(uint8_t* syncWord, uint8_t len, uint8_t maxErrBits = 0, bool requireCarrierSense = false);
-
789 
-
795  int16_t setPreambleLength(uint8_t preambleLength, uint8_t qualityThreshold);
-
796 
-
804  int16_t setNodeAddress(uint8_t nodeAddr, uint8_t numBroadcastAddrs = 0);
-
805 
-
810  int16_t disableAddressFiltering();
-
811 
-
817  int16_t setOOK(bool enableOOK);
-
818 
-
824  float getRSSI();
-
825 
-
830  uint8_t getLQI() const;
-
831 
-
837  size_t getPacketLength(bool update = true) override;
-
838 
-
844  int16_t fixedPacketLengthMode(uint8_t len = RADIOLIB_CC1101_MAX_PACKET_LENGTH);
-
845 
-
851  int16_t variablePacketLengthMode(uint8_t maxLen = RADIOLIB_CC1101_MAX_PACKET_LENGTH);
-
852 
-
859  int16_t enableSyncWordFiltering(uint8_t maxErrBits = 0, bool requireCarrierSense = false);
-
860 
-
866  int16_t disableSyncWordFiltering(bool requireCarrierSense = false);
-
867 
-
873  int16_t setCrcFiltering(bool enable = true);
-
874 
-
880  int16_t setPromiscuousMode(bool enable = true);
-
881 
-
887  bool getPromiscuousMode();
-
888 
-
895  int16_t setDataShaping(uint8_t sh) override;
-
896 
-
903  int16_t setEncoding(uint8_t encoding) override;
-
904 
-
906  void setRfSwitchPins(uint32_t rxEn, uint32_t txEn);
-
907 
-
909  void setRfSwitchTable(const uint32_t (&pins)[Module::RFSWITCH_MAX_PINS], const Module::RfSwitchMode_t table[]);
-
910 
-
915  uint8_t randomByte();
-
916 
-
922  int16_t getChipVersion();
-
923 
-
924  #if !defined(RADIOLIB_EXCLUDE_DIRECT_RECEIVE)
-
929  void setDirectAction(void (*func)(void));
-
930 
-
935  void readBit(uint32_t pin);
-
936  #endif
-
937 
-
944  int16_t setDIOMapping(uint32_t pin, uint32_t value);
-
945 
-
946  #if !defined(RADIOLIB_GODMODE) && !defined(RADIOLIB_LOW_LEVEL)
-
947  protected:
-
948  #endif
-
949  Module* mod;
-
950 
-
951  // SPI read overrides to set bit for burst write and status registers access
-
952  int16_t SPIgetRegValue(uint8_t reg, uint8_t msb = 7, uint8_t lsb = 0);
-
953  int16_t SPIsetRegValue(uint8_t reg, uint8_t value, uint8_t msb = 7, uint8_t lsb = 0, uint8_t checkInterval = 2);
-
954  void SPIreadRegisterBurst(uint8_t reg, uint8_t numBytes, uint8_t* inBytes);
-
955  uint8_t SPIreadRegister(uint8_t reg);
-
956  void SPIwriteRegisterBurst(uint8_t reg, uint8_t* data, size_t len);
-
957  void SPIwriteRegister(uint8_t reg, uint8_t data);
-
958 
-
959  void SPIsendCommand(uint8_t cmd);
-
960 
-
961  #if !defined(RADIOLIB_GODMODE)
-
962  protected:
-
963  #endif
-
964 
-
965  float frequency = RADIOLIB_CC1101_DEFAULT_FREQ;
-
966  float bitRate = RADIOLIB_CC1101_DEFAULT_BR;
-
967  uint8_t rawRSSI = 0;
-
968  uint8_t rawLQI = 0;
-
969  uint8_t modulation = RADIOLIB_CC1101_MOD_FORMAT_2_FSK;
-
970 
-
971  size_t packetLength = 0;
-
972  bool packetLengthQueried = false;
-
973  uint8_t packetLengthConfig = RADIOLIB_CC1101_LENGTH_CONFIG_VARIABLE;
-
974 
-
975  bool promiscuous = false;
-
976  bool crcOn = true;
-
977  bool directModeEnabled = true;
-
978 
-
979  int8_t power = RADIOLIB_CC1101_DEFAULT_POWER;
-
980 
-
981  int16_t config();
-
982  int16_t transmitDirect(bool sync, uint32_t frf);
-
983  int16_t receiveDirect(bool sync);
-
984  int16_t directMode(bool sync);
-
985  static void getExpMant(float target, uint16_t mantOffset, uint8_t divExp, uint8_t expMax, uint8_t& exp, uint8_t& mant);
-
986  int16_t setPacketMode(uint8_t mode, uint16_t len);
-
987 };
-
988 
-
989 #endif
+
748  int16_t setRxBandwidth(float rxBw);
+
749 
+
755  int16_t setFrequencyDeviation(float freqDev) override;
+
756 
+
762  int16_t getFrequencyDeviation(float *freqDev);
+
763 
+
769  int16_t setOutputPower(int8_t pwr);
+
770 
+
779  int16_t setSyncWord(uint8_t syncH, uint8_t syncL, uint8_t maxErrBits = 0, bool requireCarrierSense = false);
+
780 
+
789  int16_t setSyncWord(uint8_t* syncWord, uint8_t len, uint8_t maxErrBits = 0, bool requireCarrierSense = false);
+
790 
+
796  int16_t setPreambleLength(uint8_t preambleLength, uint8_t qualityThreshold);
+
797 
+
805  int16_t setNodeAddress(uint8_t nodeAddr, uint8_t numBroadcastAddrs = 0);
+
806 
+
811  int16_t disableAddressFiltering();
+
812 
+
818  int16_t setOOK(bool enableOOK);
+
819 
+
825  float getRSSI();
+
826 
+
831  uint8_t getLQI() const;
+
832 
+
838  size_t getPacketLength(bool update = true) override;
+
839 
+
845  int16_t fixedPacketLengthMode(uint8_t len = RADIOLIB_CC1101_MAX_PACKET_LENGTH);
+
846 
+
852  int16_t variablePacketLengthMode(uint8_t maxLen = RADIOLIB_CC1101_MAX_PACKET_LENGTH);
+
853 
+
860  int16_t enableSyncWordFiltering(uint8_t maxErrBits = 0, bool requireCarrierSense = false);
+
861 
+
867  int16_t disableSyncWordFiltering(bool requireCarrierSense = false);
+
868 
+
874  int16_t setCrcFiltering(bool enable = true);
+
875 
+
881  int16_t setPromiscuousMode(bool enable = true);
+
882 
+
888  bool getPromiscuousMode();
+
889 
+
896  int16_t setDataShaping(uint8_t sh) override;
+
897 
+
904  int16_t setEncoding(uint8_t encoding) override;
+
905 
+
907  void setRfSwitchPins(uint32_t rxEn, uint32_t txEn);
+
908 
+
910  void setRfSwitchTable(const uint32_t (&pins)[Module::RFSWITCH_MAX_PINS], const Module::RfSwitchMode_t table[]);
+
911 
+
916  uint8_t randomByte();
+
917 
+
923  int16_t getChipVersion();
+
924 
+
925  #if !defined(RADIOLIB_EXCLUDE_DIRECT_RECEIVE)
+
930  void setDirectAction(void (*func)(void));
+
931 
+
936  void readBit(uint32_t pin);
+
937  #endif
+
938 
+
945  int16_t setDIOMapping(uint32_t pin, uint32_t value);
+
946 
+
947  #if !defined(RADIOLIB_GODMODE) && !defined(RADIOLIB_LOW_LEVEL)
+
948  protected:
+
949  #endif
+
950  Module* mod;
+
951 
+
952  // SPI read overrides to set bit for burst write and status registers access
+
953  int16_t SPIgetRegValue(uint8_t reg, uint8_t msb = 7, uint8_t lsb = 0);
+
954  int16_t SPIsetRegValue(uint8_t reg, uint8_t value, uint8_t msb = 7, uint8_t lsb = 0, uint8_t checkInterval = 2);
+
955  void SPIreadRegisterBurst(uint8_t reg, uint8_t numBytes, uint8_t* inBytes);
+
956  uint8_t SPIreadRegister(uint8_t reg);
+
957  void SPIwriteRegisterBurst(uint8_t reg, uint8_t* data, size_t len);
+
958  void SPIwriteRegister(uint8_t reg, uint8_t data);
+
959 
+
960  void SPIsendCommand(uint8_t cmd);
+
961 
+
962  #if !defined(RADIOLIB_GODMODE)
+
963  protected:
+
964  #endif
+
965 
+
966  float frequency = RADIOLIB_CC1101_DEFAULT_FREQ;
+
967  float bitRate = RADIOLIB_CC1101_DEFAULT_BR;
+
968  uint8_t rawRSSI = 0;
+
969  uint8_t rawLQI = 0;
+
970  uint8_t modulation = RADIOLIB_CC1101_MOD_FORMAT_2_FSK;
+
971 
+
972  size_t packetLength = 0;
+
973  bool packetLengthQueried = false;
+
974  uint8_t packetLengthConfig = RADIOLIB_CC1101_LENGTH_CONFIG_VARIABLE;
+
975 
+
976  bool promiscuous = false;
+
977  bool crcOn = true;
+
978  bool directModeEnabled = true;
+
979 
+
980  int8_t power = RADIOLIB_CC1101_DEFAULT_POWER;
+
981 
+
982  int16_t config();
+
983  int16_t transmitDirect(bool sync, uint32_t frf);
+
984  int16_t receiveDirect(bool sync);
+
985  int16_t directMode(bool sync);
+
986  static void getExpMant(float target, uint16_t mantOffset, uint8_t divExp, uint8_t expMax, uint8_t& exp, uint8_t& mant);
+
987  int16_t setPacketMode(uint8_t mode, uint16_t len);
+
988 };
+
989 
+
990 #endif
CC1101
Control class for CC1101 module.
Definition: CC1101.h:530
CC1101::setDIOMapping
int16_t setDIOMapping(uint32_t pin, uint32_t value)
Configure DIO pin mapping to get a given signal on a DIO pin (if available).
Definition: CC1101.cpp:941
CC1101::setPromiscuousMode
int16_t setPromiscuousMode(bool enable=true)
Set modem in "sniff" mode: no packet filtering (e.g., no preamble, sync word, address,...
Definition: CC1101.cpp:820
@@ -801,7 +801,7 @@ $(document).ready(function(){initNavTree('_c_c1101_8h_source.html',''); initResi
CC1101::transmitDirect
int16_t transmitDirect(uint32_t frf=0) override
Starts direct mode transmission.
Definition: CC1101.cpp:186
CC1101::getChipVersion
int16_t getChipVersion()
Read version SPI register. Should return CC1101_VERSION_LEGACY (0x04) or CC1101_VERSION_CURRENT (0x14...
Definition: CC1101.cpp:927
CC1101::readData
virtual int16_t readData(uint8_t *data, size_t len)
Reads data that was received after calling startReceive method.
Definition: PhysicalLayer.cpp:209
-
CC1101::setRxBandwidth
int16_t setRxBandwidth(float rxBw)
Sets receiver bandwidth. Allowed values range from 58.0 to 812.0 kHz.
Definition: CC1101.cpp:462
+
CC1101::setRxBandwidth
int16_t setRxBandwidth(float rxBw)
Sets receiver bandwidth. Allowed values are 58, 68, 81, 102, 116, 135, 162, 203, 232,...
Definition: CC1101.cpp:462
CC1101::packetMode
int16_t packetMode()
Stops direct mode. It is required to call this method to switch from direct transmissions to packet-b...
Definition: CC1101.cpp:237
CC1101::setSyncWord
int16_t setSyncWord(uint8_t syncH, uint8_t syncL, uint8_t maxErrBits=0, bool requireCarrierSense=false)
Sets 16-bit sync word as a two byte value.
Definition: CC1101.cpp:634
CC1101::getRSSI
float getRSSI()
Gets RSSI (Recorded Signal Strength Indicator) of the last received packet. In asynchronous direct mo...
Definition: CC1101.cpp:731
diff --git a/class_c_c1101.html b/class_c_c1101.html index 39b653d4..52c71c05 100644 --- a/class_c_c1101.html +++ b/class_c_c1101.html @@ -197,7 +197,7 @@ void  Sets bit rate. Allowed values range from 0.025 to 600.0 kbps. More...
  int16_t setRxBandwidth (float rxBw) - Sets receiver bandwidth. Allowed values range from 58.0 to 812.0 kHz. More...
+ Sets receiver bandwidth. Allowed values are 58, 68, 81, 102, 116, 135, 162, 203, 232, 270, 325, 406, 464, 541, 650 and 812 kHz. More...
  int16_t setFrequencyDeviation (float freqDev) override  Sets frequency deviation. Allowed values range from 1.587 to 380.8 kHz. More...
@@ -1753,7 +1753,7 @@ virtual void 
-

Sets receiver bandwidth. Allowed values range from 58.0 to 812.0 kHz.

+

Sets receiver bandwidth. Allowed values are 58, 68, 81, 102, 116, 135, 162, 203, 232, 270, 325, 406, 464, 541, 650 and 812 kHz.

Parameters
rxBwReceiver bandwidth to be set in kHz.