diff --git a/_s_x1262_8h_source.html b/_s_x1262_8h_source.html
index b1eb41cc..03bc9403 100644
--- a/_s_x1262_8h_source.html
+++ b/_s_x1262_8h_source.html
@@ -139,7 +139,7 @@ $(document).ready(function(){initNavTree('_s_x1262_8h_source.html',''); initResi
int16_t begin(float freq=434.0, float bw=125.0, uint8_t sf=9, uint8_t cr=7, uint8_t syncWord=RADIOLIB_SX126X_SYNC_WORD_PRIVATE, int8_t power=10, uint16_t preambleLength=8, float tcxoVoltage=1.6, bool useRegulatorLDO=false)
Initialization method for LoRa modem.
Definition: SX1262.cpp:8
virtual int16_t setOutputPower(int8_t power)
Sets output power. Allowed values are in range from -9 to 22 dBm. This method is virtual to allow ove...
Definition: SX1262.cpp:84
int16_t setFrequency(float freq)
Sets carrier frequency. Allowed values are in range from 150.0 to 960.0 MHz.
Definition: SX1262.cpp:50
-Base class for SX126x series. All derived classes for SX126x (e.g. SX1262 or SX1268) inherit from thi...
Definition: SX126x.h:425
+Base class for SX126x series. All derived classes for SX126x (e.g. SX1262 or SX1268) inherit from thi...
Definition: SX126x.h:430
diff --git a/_s_x1268_8h_source.html b/_s_x1268_8h_source.html
index f2db7144..609633e5 100644
--- a/_s_x1268_8h_source.html
+++ b/_s_x1268_8h_source.html
@@ -136,7 +136,7 @@ $(document).ready(function(){initNavTree('_s_x1268_8h_source.html',''); initResi
int16_t setFrequency(float freq)
Sets carrier frequency. Allowed values are in range from 410.0 to 810.0 MHz.
Definition: SX1268.cpp:50
int16_t begin(float freq=434.0, float bw=125.0, uint8_t sf=9, uint8_t cr=7, uint8_t syncWord=RADIOLIB_SX126X_SYNC_WORD_PRIVATE, int8_t power=10, uint16_t preambleLength=8, float tcxoVoltage=1.6, bool useRegulatorLDO=false)
Initialization method for LoRa modem.
Definition: SX1268.cpp:8
int16_t beginFSK(float freq=434.0, float br=4.8, float freqDev=5.0, float rxBw=156.2, int8_t power=10, uint16_t preambleLength=16, float tcxoVoltage=1.6, bool useRegulatorLDO=false)
Initialization method for FSK modem.
Definition: SX1268.cpp:32
-Base class for SX126x series. All derived classes for SX126x (e.g. SX1262 or SX1268) inherit from thi...
Definition: SX126x.h:425
+Base class for SX126x series. All derived classes for SX126x (e.g. SX1262 or SX1268) inherit from thi...
Definition: SX126x.h:430
diff --git a/_s_x126x_8h_source.html b/_s_x126x_8h_source.html
index 759021fe..3050f5ca 100644
--- a/_s_x126x_8h_source.html
+++ b/_s_x126x_8h_source.html
@@ -157,583 +157,588 @@ $(document).ready(function(){initNavTree('_s_x126x_8h_source.html',''); initResi
69 #define RADIOLIB_SX126X_CMD_RESET_STATS 0x00
71 #define RADIOLIB_SX126X_CMD_PRAM_UPDATE 0xD9
- 72 #define RADIOLIB_SX126X_CMD_SET_SCAN_PARAMS 0x9A
-
-
- 75 #define RADIOLIB_SX126X_REG_VERSION_STRING 0x0320
- 76 #define RADIOLIB_SX126X_REG_HOPPING_ENABLE 0x0385
- 77 #define RADIOLIB_SX126X_REG_LR_FHSS_PACKET_LENGTH 0x0386
- 78 #define RADIOLIB_SX126X_REG_LR_FHSS_NUM_HOPPING_BLOCKS 0x0387
- 79 #define RADIOLIB_SX126X_REG_LR_FHSS_NUM_SYMBOLS_FREQX_MSB(X) (0x0388 + (X)*6)
- 80 #define RADIOLIB_SX126X_REG_LR_FHSS_NUM_SYMBOLS_FREQX_LSB(X) (0x0389 + (X)*6)
- 81 #define RADIOLIB_SX126X_REG_LR_FHSS_FREQX_0(X) (0x038A + (X)*6)
- 82 #define RADIOLIB_SX126X_REG_LR_FHSS_FREQX_1(X) (0x038B + (X)*6)
- 83 #define RADIOLIB_SX126X_REG_LR_FHSS_FREQX_2(X) (0x038C + (X)*6)
- 84 #define RADIOLIB_SX126X_REG_LR_FHSS_FREQX_3(X) (0x038D + (X)*6)
- 85 #define RADIOLIB_SX126X_REG_SPECTRAL_SCAN_RESULT 0x0401
- 86 #define RADIOLIB_SX126X_REG_DIOX_OUT_ENABLE 0x0580
- 87 #define RADIOLIB_SX126X_REG_DIOX_IN_ENABLE 0x0583
- 88 #define RADIOLIB_SX126X_REG_DIOX_PULL_UP_CTRL 0x0584
- 89 #define RADIOLIB_SX126X_REG_DIOX_PULL_DOWN_CTRL 0x0585
- 90 #define RADIOLIB_SX126X_REG_TX_BITBANG_ENABLE_0 0x0587
- 91 #define RADIOLIB_SX126X_REG_PATCH_UPDATE_ENABLE 0x0610
- 92 #define RADIOLIB_SX126X_REG_TX_BITBANG_ENABLE_1 0x0680
- 93 #define RADIOLIB_SX126X_REG_WHITENING_INITIAL_MSB 0x06B8
- 94 #define RADIOLIB_SX126X_REG_WHITENING_INITIAL_LSB 0x06B9
- 95 #define RADIOLIB_SX126X_REG_RX_TX_PLD_LEN 0x06BB
- 96 #define RADIOLIB_SX126X_REG_CRC_INITIAL_MSB 0x06BC
- 97 #define RADIOLIB_SX126X_REG_CRC_INITIAL_LSB 0x06BD
- 98 #define RADIOLIB_SX126X_REG_CRC_POLYNOMIAL_MSB 0x06BE
- 99 #define RADIOLIB_SX126X_REG_CRC_POLYNOMIAL_LSB 0x06BF
- 100 #define RADIOLIB_SX126X_REG_SYNC_WORD_0 0x06C0
- 101 #define RADIOLIB_SX126X_REG_SYNC_WORD_1 0x06C1
- 102 #define RADIOLIB_SX126X_REG_SYNC_WORD_2 0x06C2
- 103 #define RADIOLIB_SX126X_REG_SYNC_WORD_3 0x06C3
- 104 #define RADIOLIB_SX126X_REG_SYNC_WORD_4 0x06C4
- 105 #define RADIOLIB_SX126X_REG_SYNC_WORD_5 0x06C5
- 106 #define RADIOLIB_SX126X_REG_SYNC_WORD_6 0x06C6
- 107 #define RADIOLIB_SX126X_REG_SYNC_WORD_7 0x06C7
- 108 #define RADIOLIB_SX126X_REG_NODE_ADDRESS 0x06CD
- 109 #define RADIOLIB_SX126X_REG_BROADCAST_ADDRESS 0x06CE
- 110 #define RADIOLIB_SX126X_REG_PAYLOAD_LENGTH 0x0702
- 111 #define RADIOLIB_SX126X_REG_PACKET_PARAMS 0x0704
- 112 #define RADIOLIB_SX126X_REG_IQ_CONFIG 0x0736
- 113 #define RADIOLIB_SX126X_REG_LORA_SYNC_WORD_MSB 0x0740
- 114 #define RADIOLIB_SX126X_REG_LORA_SYNC_WORD_LSB 0x0741
- 115 #define RADIOLIB_SX126X_REG_FREQ_ERROR 0x076B
- 116 #define RADIOLIB_SX126X_REG_SPECTRAL_SCAN_STATUS 0x07CD
- 117 #define RADIOLIB_SX126X_REG_RX_ADDR_PTR 0x0803
- 118 #define RADIOLIB_SX126X_REG_RANDOM_NUMBER_0 0x0819
- 119 #define RADIOLIB_SX126X_REG_RANDOM_NUMBER_1 0x081A
- 120 #define RADIOLIB_SX126X_REG_RANDOM_NUMBER_2 0x081B
- 121 #define RADIOLIB_SX126X_REG_RANDOM_NUMBER_3 0x081C
- 122 #define RADIOLIB_SX126X_REG_TX_MODULATION 0x0889
- 123 #define RADIOLIB_SX126X_REG_RF_FREQUENCY_0 0x088B
- 124 #define RADIOLIB_SX126X_REG_RF_FREQUENCY_1 0x088C
- 125 #define RADIOLIB_SX126X_REG_RF_FREQUENCY_2 0x088D
- 126 #define RADIOLIB_SX126X_REG_RF_FREQUENCY_3 0x088E
- 127 #define RADIOLIB_SX126X_REG_RSSI_AVG_WINDOW 0x089B
- 128 #define RADIOLIB_SX126X_REG_RX_GAIN 0x08AC
- 129 #define RADIOLIB_SX126X_REG_TX_CLAMP_CONFIG 0x08D8
- 130 #define RADIOLIB_SX126X_REG_LNA_CAP_TUNE_N 0x08E3
- 131 #define RADIOLIB_SX126X_REG_LNA_CAP_TUNE_P 0x08E4
- 132 #define RADIOLIB_SX126X_REG_OCP_CONFIGURATION 0x08E7
- 133 #define RADIOLIB_SX126X_REG_RTC_CTRL 0x0902
- 134 #define RADIOLIB_SX126X_REG_XTA_TRIM 0x0911
- 135 #define RADIOLIB_SX126X_REG_XTB_TRIM 0x0912
- 136 #define RADIOLIB_SX126X_REG_DIO3_OUT_VOLTAGE_CTRL 0x0920
- 137 #define RADIOLIB_SX126X_REG_EVENT_MASK 0x0944
- 138 #define RADIOLIB_SX126X_REG_PATCH_MEMORY_BASE 0x8000
-
-
- 141 #define RADIOLIB_SX126X_REG_SENSITIVITY_CONFIG 0x0889
- 142 #define RADIOLIB_SX126X_REG_RX_GAIN_RETENTION_0 0x029F
- 143 #define RADIOLIB_SX126X_REG_RX_GAIN_RETENTION_1 0x02A0
- 144 #define RADIOLIB_SX126X_REG_RX_GAIN_RETENTION_2 0x02A1
-
+ 72 #define RADIOLIB_SX126X_CMD_SET_LBT_SCAN_PARAMS 0x9A
+ 73 #define RADIOLIB_SX126X_CMD_SET_SPECTR_SCAN_PARAMS 0x9B
+
+
+ 76 #define RADIOLIB_SX126X_REG_VERSION_STRING 0x0320
+ 77 #define RADIOLIB_SX126X_REG_HOPPING_ENABLE 0x0385
+ 78 #define RADIOLIB_SX126X_REG_LR_FHSS_PACKET_LENGTH 0x0386
+ 79 #define RADIOLIB_SX126X_REG_LR_FHSS_NUM_HOPPING_BLOCKS 0x0387
+ 80 #define RADIOLIB_SX126X_REG_LR_FHSS_NUM_SYMBOLS_FREQX_MSB(X) (0x0388 + (X)*6)
+ 81 #define RADIOLIB_SX126X_REG_LR_FHSS_NUM_SYMBOLS_FREQX_LSB(X) (0x0389 + (X)*6)
+ 82 #define RADIOLIB_SX126X_REG_LR_FHSS_FREQX_0(X) (0x038A + (X)*6)
+ 83 #define RADIOLIB_SX126X_REG_LR_FHSS_FREQX_1(X) (0x038B + (X)*6)
+ 84 #define RADIOLIB_SX126X_REG_LR_FHSS_FREQX_2(X) (0x038C + (X)*6)
+ 85 #define RADIOLIB_SX126X_REG_LR_FHSS_FREQX_3(X) (0x038D + (X)*6)
+ 86 #define RADIOLIB_SX126X_REG_SPECTRAL_SCAN_RESULT 0x0401
+ 87 #define RADIOLIB_SX126X_REG_DIOX_OUT_ENABLE 0x0580
+ 88 #define RADIOLIB_SX126X_REG_DIOX_IN_ENABLE 0x0583
+ 89 #define RADIOLIB_SX126X_REG_DIOX_PULL_UP_CTRL 0x0584
+ 90 #define RADIOLIB_SX126X_REG_DIOX_PULL_DOWN_CTRL 0x0585
+ 91 #define RADIOLIB_SX126X_REG_TX_BITBANG_ENABLE_0 0x0587
+ 92 #define RADIOLIB_SX126X_REG_PATCH_UPDATE_ENABLE 0x0610
+ 93 #define RADIOLIB_SX126X_REG_TX_BITBANG_ENABLE_1 0x0680
+ 94 #define RADIOLIB_SX126X_REG_WHITENING_INITIAL_MSB 0x06B8
+ 95 #define RADIOLIB_SX126X_REG_WHITENING_INITIAL_LSB 0x06B9
+ 96 #define RADIOLIB_SX126X_REG_RX_TX_PLD_LEN 0x06BB
+ 97 #define RADIOLIB_SX126X_REG_CRC_INITIAL_MSB 0x06BC
+ 98 #define RADIOLIB_SX126X_REG_CRC_INITIAL_LSB 0x06BD
+ 99 #define RADIOLIB_SX126X_REG_CRC_POLYNOMIAL_MSB 0x06BE
+ 100 #define RADIOLIB_SX126X_REG_CRC_POLYNOMIAL_LSB 0x06BF
+ 101 #define RADIOLIB_SX126X_REG_SYNC_WORD_0 0x06C0
+ 102 #define RADIOLIB_SX126X_REG_SYNC_WORD_1 0x06C1
+ 103 #define RADIOLIB_SX126X_REG_SYNC_WORD_2 0x06C2
+ 104 #define RADIOLIB_SX126X_REG_SYNC_WORD_3 0x06C3
+ 105 #define RADIOLIB_SX126X_REG_SYNC_WORD_4 0x06C4
+ 106 #define RADIOLIB_SX126X_REG_SYNC_WORD_5 0x06C5
+ 107 #define RADIOLIB_SX126X_REG_SYNC_WORD_6 0x06C6
+ 108 #define RADIOLIB_SX126X_REG_SYNC_WORD_7 0x06C7
+ 109 #define RADIOLIB_SX126X_REG_NODE_ADDRESS 0x06CD
+ 110 #define RADIOLIB_SX126X_REG_BROADCAST_ADDRESS 0x06CE
+ 111 #define RADIOLIB_SX126X_REG_PAYLOAD_LENGTH 0x0702
+ 112 #define RADIOLIB_SX126X_REG_PACKET_PARAMS 0x0704
+ 113 #define RADIOLIB_SX126X_REG_IQ_CONFIG 0x0736
+ 114 #define RADIOLIB_SX126X_REG_LORA_SYNC_WORD_MSB 0x0740
+ 115 #define RADIOLIB_SX126X_REG_LORA_SYNC_WORD_LSB 0x0741
+ 116 #define RADIOLIB_SX126X_REG_FREQ_ERROR 0x076B
+ 117 #define RADIOLIB_SX126X_REG_SPECTRAL_SCAN_STATUS 0x07CD
+ 118 #define RADIOLIB_SX126X_REG_RX_ADDR_PTR 0x0803
+ 119 #define RADIOLIB_SX126X_REG_RANDOM_NUMBER_0 0x0819
+ 120 #define RADIOLIB_SX126X_REG_RANDOM_NUMBER_1 0x081A
+ 121 #define RADIOLIB_SX126X_REG_RANDOM_NUMBER_2 0x081B
+ 122 #define RADIOLIB_SX126X_REG_RANDOM_NUMBER_3 0x081C
+ 123 #define RADIOLIB_SX126X_REG_TX_MODULATION 0x0889
+ 124 #define RADIOLIB_SX126X_REG_RF_FREQUENCY_0 0x088B
+ 125 #define RADIOLIB_SX126X_REG_RF_FREQUENCY_1 0x088C
+ 126 #define RADIOLIB_SX126X_REG_RF_FREQUENCY_2 0x088D
+ 127 #define RADIOLIB_SX126X_REG_RF_FREQUENCY_3 0x088E
+ 128 #define RADIOLIB_SX126X_REG_RSSI_AVG_WINDOW 0x089B
+ 129 #define RADIOLIB_SX126X_REG_RX_GAIN 0x08AC
+ 130 #define RADIOLIB_SX126X_REG_TX_CLAMP_CONFIG 0x08D8
+ 131 #define RADIOLIB_SX126X_REG_LNA_CAP_TUNE_N 0x08E3
+ 132 #define RADIOLIB_SX126X_REG_LNA_CAP_TUNE_P 0x08E4
+ 133 #define RADIOLIB_SX126X_REG_OCP_CONFIGURATION 0x08E7
+ 134 #define RADIOLIB_SX126X_REG_RTC_CTRL 0x0902
+ 135 #define RADIOLIB_SX126X_REG_XTA_TRIM 0x0911
+ 136 #define RADIOLIB_SX126X_REG_XTB_TRIM 0x0912
+ 137 #define RADIOLIB_SX126X_REG_DIO3_OUT_VOLTAGE_CTRL 0x0920
+ 138 #define RADIOLIB_SX126X_REG_EVENT_MASK 0x0944
+ 139 #define RADIOLIB_SX126X_REG_PATCH_MEMORY_BASE 0x8000
+
+
+ 142 #define RADIOLIB_SX126X_REG_SENSITIVITY_CONFIG 0x0889
+ 143 #define RADIOLIB_SX126X_REG_RX_GAIN_RETENTION_0 0x029F
+ 144 #define RADIOLIB_SX126X_REG_RX_GAIN_RETENTION_1 0x02A0
+ 145 #define RADIOLIB_SX126X_REG_RX_GAIN_RETENTION_2 0x02A1
-
-
- 149 #define RADIOLIB_SX126X_SLEEP_START_COLD 0b00000000
- 150 #define RADIOLIB_SX126X_SLEEP_START_WARM 0b00000100
- 151 #define RADIOLIB_SX126X_SLEEP_RTC_OFF 0b00000000
- 152 #define RADIOLIB_SX126X_SLEEP_RTC_ON 0b00000001
-
-
- 155 #define RADIOLIB_SX126X_STANDBY_RC 0x00
- 156 #define RADIOLIB_SX126X_STANDBY_XOSC 0x01
-
-
- 159 #define RADIOLIB_SX126X_RX_TIMEOUT_NONE 0x000000
- 160 #define RADIOLIB_SX126X_RX_TIMEOUT_INF 0xFFFFFF
-
-
- 163 #define RADIOLIB_SX126X_TX_TIMEOUT_NONE 0x000000
-
-
- 166 #define RADIOLIB_SX126X_STOP_ON_PREAMBLE_OFF 0x00
- 167 #define RADIOLIB_SX126X_STOP_ON_PREAMBLE_ON 0x01
-
-
- 170 #define RADIOLIB_SX126X_REGULATOR_LDO 0x00
- 171 #define RADIOLIB_SX126X_REGULATOR_DC_DC 0x01
-
-
- 174 #define RADIOLIB_SX126X_CALIBRATE_IMAGE_OFF 0b00000000
- 175 #define RADIOLIB_SX126X_CALIBRATE_IMAGE_ON 0b01000000
- 176 #define RADIOLIB_SX126X_CALIBRATE_ADC_BULK_P_OFF 0b00000000
- 177 #define RADIOLIB_SX126X_CALIBRATE_ADC_BULK_P_ON 0b00100000
- 178 #define RADIOLIB_SX126X_CALIBRATE_ADC_BULK_N_OFF 0b00000000
- 179 #define RADIOLIB_SX126X_CALIBRATE_ADC_BULK_N_ON 0b00010000
- 180 #define RADIOLIB_SX126X_CALIBRATE_ADC_PULSE_OFF 0b00000000
- 181 #define RADIOLIB_SX126X_CALIBRATE_ADC_PULSE_ON 0b00001000
- 182 #define RADIOLIB_SX126X_CALIBRATE_PLL_OFF 0b00000000
- 183 #define RADIOLIB_SX126X_CALIBRATE_PLL_ON 0b00000100
- 184 #define RADIOLIB_SX126X_CALIBRATE_RC13M_OFF 0b00000000
- 185 #define RADIOLIB_SX126X_CALIBRATE_RC13M_ON 0b00000010
- 186 #define RADIOLIB_SX126X_CALIBRATE_RC64K_OFF 0b00000000
- 187 #define RADIOLIB_SX126X_CALIBRATE_RC64K_ON 0b00000001
- 188 #define RADIOLIB_SX126X_CALIBRATE_ALL 0b01111111
-
-
- 191 #define RADIOLIB_SX126X_CAL_IMG_430_MHZ_1 0x6B
- 192 #define RADIOLIB_SX126X_CAL_IMG_430_MHZ_2 0x6F
- 193 #define RADIOLIB_SX126X_CAL_IMG_470_MHZ_1 0x75
- 194 #define RADIOLIB_SX126X_CAL_IMG_470_MHZ_2 0x81
- 195 #define RADIOLIB_SX126X_CAL_IMG_779_MHZ_1 0xC1
- 196 #define RADIOLIB_SX126X_CAL_IMG_779_MHZ_2 0xC5
- 197 #define RADIOLIB_SX126X_CAL_IMG_863_MHZ_1 0xD7
- 198 #define RADIOLIB_SX126X_CAL_IMG_863_MHZ_2 0xDB
- 199 #define RADIOLIB_SX126X_CAL_IMG_902_MHZ_1 0xE1
- 200 #define RADIOLIB_SX126X_CAL_IMG_902_MHZ_2 0xE9
-
-
- 203 #define RADIOLIB_SX126X_PA_CONFIG_HP_MAX 0x07
- 204 #define RADIOLIB_SX126X_PA_CONFIG_PA_LUT 0x01
- 205 #define RADIOLIB_SX126X_PA_CONFIG_SX1262_8 0x00
-
-
- 208 #define RADIOLIB_SX126X_RX_TX_FALLBACK_MODE_FS 0x40
- 209 #define RADIOLIB_SX126X_RX_TX_FALLBACK_MODE_STDBY_XOSC 0x30
- 210 #define RADIOLIB_SX126X_RX_TX_FALLBACK_MODE_STDBY_RC 0x20
-
-
- 213 #define RADIOLIB_SX126X_IRQ_LR_FHSS_HOP 0b0100000000000000
- 214 #define RADIOLIB_SX126X_IRQ_TIMEOUT 0b0000001000000000
- 215 #define RADIOLIB_SX126X_IRQ_CAD_DETECTED 0b0000000100000000
- 216 #define RADIOLIB_SX126X_IRQ_CAD_DONE 0b0000000010000000
- 217 #define RADIOLIB_SX126X_IRQ_CRC_ERR 0b0000000001000000
- 218 #define RADIOLIB_SX126X_IRQ_HEADER_ERR 0b0000000000100000
- 219 #define RADIOLIB_SX126X_IRQ_HEADER_VALID 0b0000000000010000
- 220 #define RADIOLIB_SX126X_IRQ_SYNC_WORD_VALID 0b0000000000001000
- 221 #define RADIOLIB_SX126X_IRQ_RADIOLIB_PREAMBLE_DETECTED 0b0000000000000100
- 222 #define RADIOLIB_SX126X_IRQ_RX_DONE 0b0000000000000010
- 223 #define RADIOLIB_SX126X_IRQ_TX_DONE 0b0000000000000001
- 224 #define RADIOLIB_SX126X_IRQ_RX_DEFAULT 0b0000001001100010
- 225 #define RADIOLIB_SX126X_IRQ_ALL 0b0100001111111111
- 226 #define RADIOLIB_SX126X_IRQ_NONE 0b0000000000000000
-
-
- 229 #define RADIOLIB_SX126X_DIO2_AS_IRQ 0x00
- 230 #define RADIOLIB_SX126X_DIO2_AS_RF_SWITCH 0x01
-
-
- 233 #define RADIOLIB_SX126X_DIO3_OUTPUT_1_6 0x00
- 234 #define RADIOLIB_SX126X_DIO3_OUTPUT_1_7 0x01
- 235 #define RADIOLIB_SX126X_DIO3_OUTPUT_1_8 0x02
- 236 #define RADIOLIB_SX126X_DIO3_OUTPUT_2_2 0x03
- 237 #define RADIOLIB_SX126X_DIO3_OUTPUT_2_4 0x04
- 238 #define RADIOLIB_SX126X_DIO3_OUTPUT_2_7 0x05
- 239 #define RADIOLIB_SX126X_DIO3_OUTPUT_3_0 0x06
- 240 #define RADIOLIB_SX126X_DIO3_OUTPUT_3_3 0x07
-
-
- 243 #define RADIOLIB_SX126X_PACKET_TYPE_GFSK 0x00
- 244 #define RADIOLIB_SX126X_PACKET_TYPE_LORA 0x01
- 245 #define RADIOLIB_SX126X_PACKET_TYPE_LR_FHSS 0x03
-
-
- 248 #define RADIOLIB_SX126X_PA_RAMP_10U 0x00
- 249 #define RADIOLIB_SX126X_PA_RAMP_20U 0x01
- 250 #define RADIOLIB_SX126X_PA_RAMP_40U 0x02
- 251 #define RADIOLIB_SX126X_PA_RAMP_80U 0x03
- 252 #define RADIOLIB_SX126X_PA_RAMP_200U 0x04
- 253 #define RADIOLIB_SX126X_PA_RAMP_800U 0x05
- 254 #define RADIOLIB_SX126X_PA_RAMP_1700U 0x06
- 255 #define RADIOLIB_SX126X_PA_RAMP_3400U 0x07
-
-
- 258 #define RADIOLIB_SX126X_GFSK_FILTER_NONE 0x00
- 259 #define RADIOLIB_SX126X_GFSK_FILTER_GAUSS_0_3 0x08
- 260 #define RADIOLIB_SX126X_GFSK_FILTER_GAUSS_0_5 0x09
- 261 #define RADIOLIB_SX126X_GFSK_FILTER_GAUSS_0_7 0x0A
- 262 #define RADIOLIB_SX126X_GFSK_FILTER_GAUSS_1 0x0B
- 263 #define RADIOLIB_SX126X_GFSK_RX_BW_4_8 0x1F
- 264 #define RADIOLIB_SX126X_GFSK_RX_BW_5_8 0x17
- 265 #define RADIOLIB_SX126X_GFSK_RX_BW_7_3 0x0F
- 266 #define RADIOLIB_SX126X_GFSK_RX_BW_9_7 0x1E
- 267 #define RADIOLIB_SX126X_GFSK_RX_BW_11_7 0x16
- 268 #define RADIOLIB_SX126X_GFSK_RX_BW_14_6 0x0E
- 269 #define RADIOLIB_SX126X_GFSK_RX_BW_19_5 0x1D
- 270 #define RADIOLIB_SX126X_GFSK_RX_BW_23_4 0x15
- 271 #define RADIOLIB_SX126X_GFSK_RX_BW_29_3 0x0D
- 272 #define RADIOLIB_SX126X_GFSK_RX_BW_39_0 0x1C
- 273 #define RADIOLIB_SX126X_GFSK_RX_BW_46_9 0x14
- 274 #define RADIOLIB_SX126X_GFSK_RX_BW_58_6 0x0C
- 275 #define RADIOLIB_SX126X_GFSK_RX_BW_78_2 0x1B
- 276 #define RADIOLIB_SX126X_GFSK_RX_BW_93_8 0x13
- 277 #define RADIOLIB_SX126X_GFSK_RX_BW_117_3 0x0B
- 278 #define RADIOLIB_SX126X_GFSK_RX_BW_156_2 0x1A
- 279 #define RADIOLIB_SX126X_GFSK_RX_BW_187_2 0x12
- 280 #define RADIOLIB_SX126X_GFSK_RX_BW_234_3 0x0A
- 281 #define RADIOLIB_SX126X_GFSK_RX_BW_312_0 0x19
- 282 #define RADIOLIB_SX126X_GFSK_RX_BW_373_6 0x11
- 283 #define RADIOLIB_SX126X_GFSK_RX_BW_467_0 0x09
- 284 #define RADIOLIB_SX126X_LORA_BW_7_8 0x00
- 285 #define RADIOLIB_SX126X_LORA_BW_10_4 0x08
- 286 #define RADIOLIB_SX126X_LORA_BW_15_6 0x01
- 287 #define RADIOLIB_SX126X_LORA_BW_20_8 0x09
- 288 #define RADIOLIB_SX126X_LORA_BW_31_25 0x02
- 289 #define RADIOLIB_SX126X_LORA_BW_41_7 0x0A
- 290 #define RADIOLIB_SX126X_LORA_BW_62_5 0x03
- 291 #define RADIOLIB_SX126X_LORA_BW_125_0 0x04
- 292 #define RADIOLIB_SX126X_LORA_BW_250_0 0x05
- 293 #define RADIOLIB_SX126X_LORA_BW_500_0 0x06
- 294 #define RADIOLIB_SX126X_LORA_CR_4_5 0x01
- 295 #define RADIOLIB_SX126X_LORA_CR_4_6 0x02
- 296 #define RADIOLIB_SX126X_LORA_CR_4_7 0x03
- 297 #define RADIOLIB_SX126X_LORA_CR_4_8 0x04
- 298 #define RADIOLIB_SX126X_LORA_LOW_DATA_RATE_OPTIMIZE_OFF 0x00
- 299 #define RADIOLIB_SX126X_LORA_LOW_DATA_RATE_OPTIMIZE_ON 0x01
-
-
- 302 #define RADIOLIB_SX126X_GFSK_PREAMBLE_DETECT_OFF 0x00
- 303 #define RADIOLIB_SX126X_GFSK_PREAMBLE_DETECT_8 0x04
- 304 #define RADIOLIB_SX126X_GFSK_PREAMBLE_DETECT_16 0x05
- 305 #define RADIOLIB_SX126X_GFSK_PREAMBLE_DETECT_24 0x06
- 306 #define RADIOLIB_SX126X_GFSK_PREAMBLE_DETECT_32 0x07
- 307 #define RADIOLIB_SX126X_GFSK_ADDRESS_FILT_OFF 0x00
- 308 #define RADIOLIB_SX126X_GFSK_ADDRESS_FILT_NODE 0x01
- 309 #define RADIOLIB_SX126X_GFSK_ADDRESS_FILT_NODE_BROADCAST 0x02
- 310 #define RADIOLIB_SX126X_GFSK_PACKET_FIXED 0x00
- 311 #define RADIOLIB_SX126X_GFSK_PACKET_VARIABLE 0x01
- 312 #define RADIOLIB_SX126X_GFSK_CRC_OFF 0x01
- 313 #define RADIOLIB_SX126X_GFSK_CRC_1_BYTE 0x00
- 314 #define RADIOLIB_SX126X_GFSK_CRC_2_BYTE 0x02
- 315 #define RADIOLIB_SX126X_GFSK_CRC_1_BYTE_INV 0x04
- 316 #define RADIOLIB_SX126X_GFSK_CRC_2_BYTE_INV 0x06
- 317 #define RADIOLIB_SX126X_GFSK_WHITENING_OFF 0x00
- 318 #define RADIOLIB_SX126X_GFSK_WHITENING_ON 0x01
- 319 #define RADIOLIB_SX126X_LORA_HEADER_EXPLICIT 0x00
- 320 #define RADIOLIB_SX126X_LORA_HEADER_IMPLICIT 0x01
- 321 #define RADIOLIB_SX126X_LORA_CRC_OFF 0x00
- 322 #define RADIOLIB_SX126X_LORA_CRC_ON 0x01
- 323 #define RADIOLIB_SX126X_LORA_IQ_STANDARD 0x00
- 324 #define RADIOLIB_SX126X_LORA_IQ_INVERTED 0x01
-
-
- 327 #define RADIOLIB_SX126X_CAD_ON_1_SYMB 0x00
- 328 #define RADIOLIB_SX126X_CAD_ON_2_SYMB 0x01
- 329 #define RADIOLIB_SX126X_CAD_ON_4_SYMB 0x02
- 330 #define RADIOLIB_SX126X_CAD_ON_8_SYMB 0x03
- 331 #define RADIOLIB_SX126X_CAD_ON_16_SYMB 0x04
- 332 #define RADIOLIB_SX126X_CAD_GOTO_STDBY 0x00
- 333 #define RADIOLIB_SX126X_CAD_GOTO_RX 0x01
- 334 #define RADIOLIB_SX126X_CAD_PARAM_DEFAULT 0xFF
- 335 #define RADIOLIB_SX126X_CAD_PARAM_DET_MIN 10
-
-
- 338 #define RADIOLIB_SX126X_STATUS_MODE_STDBY_RC 0b00100000
- 339 #define RADIOLIB_SX126X_STATUS_MODE_STDBY_XOSC 0b00110000
- 340 #define RADIOLIB_SX126X_STATUS_MODE_FS 0b01000000
- 341 #define RADIOLIB_SX126X_STATUS_MODE_RX 0b01010000
- 342 #define RADIOLIB_SX126X_STATUS_MODE_TX 0b01100000
- 343 #define RADIOLIB_SX126X_STATUS_DATA_AVAILABLE 0b00000100
- 344 #define RADIOLIB_SX126X_STATUS_CMD_TIMEOUT 0b00000110
- 345 #define RADIOLIB_SX126X_STATUS_CMD_INVALID 0b00001000
- 346 #define RADIOLIB_SX126X_STATUS_CMD_FAILED 0b00001010
- 347 #define RADIOLIB_SX126X_STATUS_TX_DONE 0b00001100
- 348 #define RADIOLIB_SX126X_STATUS_SPI_FAILED 0b11111111
-
-
- 351 #define RADIOLIB_SX126X_GFSK_RX_STATUS_PREAMBLE_ERR 0b10000000
- 352 #define RADIOLIB_SX126X_GFSK_RX_STATUS_SYNC_ERR 0b01000000
- 353 #define RADIOLIB_SX126X_GFSK_RX_STATUS_ADRS_ERR 0b00100000
- 354 #define RADIOLIB_SX126X_GFSK_RX_STATUS_CRC_ERR 0b00010000
- 355 #define RADIOLIB_SX126X_GFSK_RX_STATUS_LENGTH_ERR 0b00001000
- 356 #define RADIOLIB_SX126X_GFSK_RX_STATUS_ABORT_ERR 0b00000100
- 357 #define RADIOLIB_SX126X_GFSK_RX_STATUS_PACKET_RECEIVED 0b00000010
- 358 #define RADIOLIB_SX126X_GFSK_RX_STATUS_PACKET_SENT 0b00000001
-
-
- 361 #define RADIOLIB_SX126X_PA_RAMP_ERR 0b100000000
- 362 #define RADIOLIB_SX126X_PLL_LOCK_ERR 0b001000000
- 363 #define RADIOLIB_SX126X_XOSC_START_ERR 0b000100000
- 364 #define RADIOLIB_SX126X_IMG_CALIB_ERR 0b000010000
- 365 #define RADIOLIB_SX126X_ADC_CALIB_ERR 0b000001000
- 366 #define RADIOLIB_SX126X_PLL_CALIB_ERR 0b000000100
- 367 #define RADIOLIB_SX126X_RC13M_CALIB_ERR 0b000000010
- 368 #define RADIOLIB_SX126X_RC64K_CALIB_ERR 0b000000001
-
+
+
+
+ 150 #define RADIOLIB_SX126X_SLEEP_START_COLD 0b00000000
+ 151 #define RADIOLIB_SX126X_SLEEP_START_WARM 0b00000100
+ 152 #define RADIOLIB_SX126X_SLEEP_RTC_OFF 0b00000000
+ 153 #define RADIOLIB_SX126X_SLEEP_RTC_ON 0b00000001
+
+
+ 156 #define RADIOLIB_SX126X_STANDBY_RC 0x00
+ 157 #define RADIOLIB_SX126X_STANDBY_XOSC 0x01
+
+
+ 160 #define RADIOLIB_SX126X_RX_TIMEOUT_NONE 0x000000
+ 161 #define RADIOLIB_SX126X_RX_TIMEOUT_INF 0xFFFFFF
+
+
+ 164 #define RADIOLIB_SX126X_TX_TIMEOUT_NONE 0x000000
+
+
+ 167 #define RADIOLIB_SX126X_STOP_ON_PREAMBLE_OFF 0x00
+ 168 #define RADIOLIB_SX126X_STOP_ON_PREAMBLE_ON 0x01
+
+
+ 171 #define RADIOLIB_SX126X_REGULATOR_LDO 0x00
+ 172 #define RADIOLIB_SX126X_REGULATOR_DC_DC 0x01
+
+
+ 175 #define RADIOLIB_SX126X_CALIBRATE_IMAGE_OFF 0b00000000
+ 176 #define RADIOLIB_SX126X_CALIBRATE_IMAGE_ON 0b01000000
+ 177 #define RADIOLIB_SX126X_CALIBRATE_ADC_BULK_P_OFF 0b00000000
+ 178 #define RADIOLIB_SX126X_CALIBRATE_ADC_BULK_P_ON 0b00100000
+ 179 #define RADIOLIB_SX126X_CALIBRATE_ADC_BULK_N_OFF 0b00000000
+ 180 #define RADIOLIB_SX126X_CALIBRATE_ADC_BULK_N_ON 0b00010000
+ 181 #define RADIOLIB_SX126X_CALIBRATE_ADC_PULSE_OFF 0b00000000
+ 182 #define RADIOLIB_SX126X_CALIBRATE_ADC_PULSE_ON 0b00001000
+ 183 #define RADIOLIB_SX126X_CALIBRATE_PLL_OFF 0b00000000
+ 184 #define RADIOLIB_SX126X_CALIBRATE_PLL_ON 0b00000100
+ 185 #define RADIOLIB_SX126X_CALIBRATE_RC13M_OFF 0b00000000
+ 186 #define RADIOLIB_SX126X_CALIBRATE_RC13M_ON 0b00000010
+ 187 #define RADIOLIB_SX126X_CALIBRATE_RC64K_OFF 0b00000000
+ 188 #define RADIOLIB_SX126X_CALIBRATE_RC64K_ON 0b00000001
+ 189 #define RADIOLIB_SX126X_CALIBRATE_ALL 0b01111111
+
+
+ 192 #define RADIOLIB_SX126X_CAL_IMG_430_MHZ_1 0x6B
+ 193 #define RADIOLIB_SX126X_CAL_IMG_430_MHZ_2 0x6F
+ 194 #define RADIOLIB_SX126X_CAL_IMG_470_MHZ_1 0x75
+ 195 #define RADIOLIB_SX126X_CAL_IMG_470_MHZ_2 0x81
+ 196 #define RADIOLIB_SX126X_CAL_IMG_779_MHZ_1 0xC1
+ 197 #define RADIOLIB_SX126X_CAL_IMG_779_MHZ_2 0xC5
+ 198 #define RADIOLIB_SX126X_CAL_IMG_863_MHZ_1 0xD7
+ 199 #define RADIOLIB_SX126X_CAL_IMG_863_MHZ_2 0xDB
+ 200 #define RADIOLIB_SX126X_CAL_IMG_902_MHZ_1 0xE1
+ 201 #define RADIOLIB_SX126X_CAL_IMG_902_MHZ_2 0xE9
+
+
+ 204 #define RADIOLIB_SX126X_PA_CONFIG_HP_MAX 0x07
+ 205 #define RADIOLIB_SX126X_PA_CONFIG_PA_LUT 0x01
+ 206 #define RADIOLIB_SX126X_PA_CONFIG_SX1262_8 0x00
+
+
+ 209 #define RADIOLIB_SX126X_RX_TX_FALLBACK_MODE_FS 0x40
+ 210 #define RADIOLIB_SX126X_RX_TX_FALLBACK_MODE_STDBY_XOSC 0x30
+ 211 #define RADIOLIB_SX126X_RX_TX_FALLBACK_MODE_STDBY_RC 0x20
+
+
+ 214 #define RADIOLIB_SX126X_IRQ_LR_FHSS_HOP 0b0100000000000000
+ 215 #define RADIOLIB_SX126X_IRQ_TIMEOUT 0b0000001000000000
+ 216 #define RADIOLIB_SX126X_IRQ_CAD_DETECTED 0b0000000100000000
+ 217 #define RADIOLIB_SX126X_IRQ_CAD_DONE 0b0000000010000000
+ 218 #define RADIOLIB_SX126X_IRQ_CRC_ERR 0b0000000001000000
+ 219 #define RADIOLIB_SX126X_IRQ_HEADER_ERR 0b0000000000100000
+ 220 #define RADIOLIB_SX126X_IRQ_HEADER_VALID 0b0000000000010000
+ 221 #define RADIOLIB_SX126X_IRQ_SYNC_WORD_VALID 0b0000000000001000
+ 222 #define RADIOLIB_SX126X_IRQ_RADIOLIB_PREAMBLE_DETECTED 0b0000000000000100
+ 223 #define RADIOLIB_SX126X_IRQ_RX_DONE 0b0000000000000010
+ 224 #define RADIOLIB_SX126X_IRQ_TX_DONE 0b0000000000000001
+ 225 #define RADIOLIB_SX126X_IRQ_RX_DEFAULT 0b0000001001100010
+ 226 #define RADIOLIB_SX126X_IRQ_ALL 0b0100001111111111
+ 227 #define RADIOLIB_SX126X_IRQ_NONE 0b0000000000000000
+
+
+ 230 #define RADIOLIB_SX126X_DIO2_AS_IRQ 0x00
+ 231 #define RADIOLIB_SX126X_DIO2_AS_RF_SWITCH 0x01
+
+
+ 234 #define RADIOLIB_SX126X_DIO3_OUTPUT_1_6 0x00
+ 235 #define RADIOLIB_SX126X_DIO3_OUTPUT_1_7 0x01
+ 236 #define RADIOLIB_SX126X_DIO3_OUTPUT_1_8 0x02
+ 237 #define RADIOLIB_SX126X_DIO3_OUTPUT_2_2 0x03
+ 238 #define RADIOLIB_SX126X_DIO3_OUTPUT_2_4 0x04
+ 239 #define RADIOLIB_SX126X_DIO3_OUTPUT_2_7 0x05
+ 240 #define RADIOLIB_SX126X_DIO3_OUTPUT_3_0 0x06
+ 241 #define RADIOLIB_SX126X_DIO3_OUTPUT_3_3 0x07
+
+
+ 244 #define RADIOLIB_SX126X_PACKET_TYPE_GFSK 0x00
+ 245 #define RADIOLIB_SX126X_PACKET_TYPE_LORA 0x01
+ 246 #define RADIOLIB_SX126X_PACKET_TYPE_LR_FHSS 0x03
+
+
+ 249 #define RADIOLIB_SX126X_PA_RAMP_10U 0x00
+ 250 #define RADIOLIB_SX126X_PA_RAMP_20U 0x01
+ 251 #define RADIOLIB_SX126X_PA_RAMP_40U 0x02
+ 252 #define RADIOLIB_SX126X_PA_RAMP_80U 0x03
+ 253 #define RADIOLIB_SX126X_PA_RAMP_200U 0x04
+ 254 #define RADIOLIB_SX126X_PA_RAMP_800U 0x05
+ 255 #define RADIOLIB_SX126X_PA_RAMP_1700U 0x06
+ 256 #define RADIOLIB_SX126X_PA_RAMP_3400U 0x07
+
+
+ 259 #define RADIOLIB_SX126X_GFSK_FILTER_NONE 0x00
+ 260 #define RADIOLIB_SX126X_GFSK_FILTER_GAUSS_0_3 0x08
+ 261 #define RADIOLIB_SX126X_GFSK_FILTER_GAUSS_0_5 0x09
+ 262 #define RADIOLIB_SX126X_GFSK_FILTER_GAUSS_0_7 0x0A
+ 263 #define RADIOLIB_SX126X_GFSK_FILTER_GAUSS_1 0x0B
+ 264 #define RADIOLIB_SX126X_GFSK_RX_BW_4_8 0x1F
+ 265 #define RADIOLIB_SX126X_GFSK_RX_BW_5_8 0x17
+ 266 #define RADIOLIB_SX126X_GFSK_RX_BW_7_3 0x0F
+ 267 #define RADIOLIB_SX126X_GFSK_RX_BW_9_7 0x1E
+ 268 #define RADIOLIB_SX126X_GFSK_RX_BW_11_7 0x16
+ 269 #define RADIOLIB_SX126X_GFSK_RX_BW_14_6 0x0E
+ 270 #define RADIOLIB_SX126X_GFSK_RX_BW_19_5 0x1D
+ 271 #define RADIOLIB_SX126X_GFSK_RX_BW_23_4 0x15
+ 272 #define RADIOLIB_SX126X_GFSK_RX_BW_29_3 0x0D
+ 273 #define RADIOLIB_SX126X_GFSK_RX_BW_39_0 0x1C
+ 274 #define RADIOLIB_SX126X_GFSK_RX_BW_46_9 0x14
+ 275 #define RADIOLIB_SX126X_GFSK_RX_BW_58_6 0x0C
+ 276 #define RADIOLIB_SX126X_GFSK_RX_BW_78_2 0x1B
+ 277 #define RADIOLIB_SX126X_GFSK_RX_BW_93_8 0x13
+ 278 #define RADIOLIB_SX126X_GFSK_RX_BW_117_3 0x0B
+ 279 #define RADIOLIB_SX126X_GFSK_RX_BW_156_2 0x1A
+ 280 #define RADIOLIB_SX126X_GFSK_RX_BW_187_2 0x12
+ 281 #define RADIOLIB_SX126X_GFSK_RX_BW_234_3 0x0A
+ 282 #define RADIOLIB_SX126X_GFSK_RX_BW_312_0 0x19
+ 283 #define RADIOLIB_SX126X_GFSK_RX_BW_373_6 0x11
+ 284 #define RADIOLIB_SX126X_GFSK_RX_BW_467_0 0x09
+ 285 #define RADIOLIB_SX126X_LORA_BW_7_8 0x00
+ 286 #define RADIOLIB_SX126X_LORA_BW_10_4 0x08
+ 287 #define RADIOLIB_SX126X_LORA_BW_15_6 0x01
+ 288 #define RADIOLIB_SX126X_LORA_BW_20_8 0x09
+ 289 #define RADIOLIB_SX126X_LORA_BW_31_25 0x02
+ 290 #define RADIOLIB_SX126X_LORA_BW_41_7 0x0A
+ 291 #define RADIOLIB_SX126X_LORA_BW_62_5 0x03
+ 292 #define RADIOLIB_SX126X_LORA_BW_125_0 0x04
+ 293 #define RADIOLIB_SX126X_LORA_BW_250_0 0x05
+ 294 #define RADIOLIB_SX126X_LORA_BW_500_0 0x06
+ 295 #define RADIOLIB_SX126X_LORA_CR_4_5 0x01
+ 296 #define RADIOLIB_SX126X_LORA_CR_4_6 0x02
+ 297 #define RADIOLIB_SX126X_LORA_CR_4_7 0x03
+ 298 #define RADIOLIB_SX126X_LORA_CR_4_8 0x04
+ 299 #define RADIOLIB_SX126X_LORA_LOW_DATA_RATE_OPTIMIZE_OFF 0x00
+ 300 #define RADIOLIB_SX126X_LORA_LOW_DATA_RATE_OPTIMIZE_ON 0x01
+
+
+ 303 #define RADIOLIB_SX126X_GFSK_PREAMBLE_DETECT_OFF 0x00
+ 304 #define RADIOLIB_SX126X_GFSK_PREAMBLE_DETECT_8 0x04
+ 305 #define RADIOLIB_SX126X_GFSK_PREAMBLE_DETECT_16 0x05
+ 306 #define RADIOLIB_SX126X_GFSK_PREAMBLE_DETECT_24 0x06
+ 307 #define RADIOLIB_SX126X_GFSK_PREAMBLE_DETECT_32 0x07
+ 308 #define RADIOLIB_SX126X_GFSK_ADDRESS_FILT_OFF 0x00
+ 309 #define RADIOLIB_SX126X_GFSK_ADDRESS_FILT_NODE 0x01
+ 310 #define RADIOLIB_SX126X_GFSK_ADDRESS_FILT_NODE_BROADCAST 0x02
+ 311 #define RADIOLIB_SX126X_GFSK_PACKET_FIXED 0x00
+ 312 #define RADIOLIB_SX126X_GFSK_PACKET_VARIABLE 0x01
+ 313 #define RADIOLIB_SX126X_GFSK_CRC_OFF 0x01
+ 314 #define RADIOLIB_SX126X_GFSK_CRC_1_BYTE 0x00
+ 315 #define RADIOLIB_SX126X_GFSK_CRC_2_BYTE 0x02
+ 316 #define RADIOLIB_SX126X_GFSK_CRC_1_BYTE_INV 0x04
+ 317 #define RADIOLIB_SX126X_GFSK_CRC_2_BYTE_INV 0x06
+ 318 #define RADIOLIB_SX126X_GFSK_WHITENING_OFF 0x00
+ 319 #define RADIOLIB_SX126X_GFSK_WHITENING_ON 0x01
+ 320 #define RADIOLIB_SX126X_LORA_HEADER_EXPLICIT 0x00
+ 321 #define RADIOLIB_SX126X_LORA_HEADER_IMPLICIT 0x01
+ 322 #define RADIOLIB_SX126X_LORA_CRC_OFF 0x00
+ 323 #define RADIOLIB_SX126X_LORA_CRC_ON 0x01
+ 324 #define RADIOLIB_SX126X_LORA_IQ_STANDARD 0x00
+ 325 #define RADIOLIB_SX126X_LORA_IQ_INVERTED 0x01
+
+
+ 328 #define RADIOLIB_SX126X_CAD_ON_1_SYMB 0x00
+ 329 #define RADIOLIB_SX126X_CAD_ON_2_SYMB 0x01
+ 330 #define RADIOLIB_SX126X_CAD_ON_4_SYMB 0x02
+ 331 #define RADIOLIB_SX126X_CAD_ON_8_SYMB 0x03
+ 332 #define RADIOLIB_SX126X_CAD_ON_16_SYMB 0x04
+ 333 #define RADIOLIB_SX126X_CAD_GOTO_STDBY 0x00
+ 334 #define RADIOLIB_SX126X_CAD_GOTO_RX 0x01
+ 335 #define RADIOLIB_SX126X_CAD_PARAM_DEFAULT 0xFF
+ 336 #define RADIOLIB_SX126X_CAD_PARAM_DET_MIN 10
+
+
+ 339 #define RADIOLIB_SX126X_STATUS_MODE_STDBY_RC 0b00100000
+ 340 #define RADIOLIB_SX126X_STATUS_MODE_STDBY_XOSC 0b00110000
+ 341 #define RADIOLIB_SX126X_STATUS_MODE_FS 0b01000000
+ 342 #define RADIOLIB_SX126X_STATUS_MODE_RX 0b01010000
+ 343 #define RADIOLIB_SX126X_STATUS_MODE_TX 0b01100000
+ 344 #define RADIOLIB_SX126X_STATUS_DATA_AVAILABLE 0b00000100
+ 345 #define RADIOLIB_SX126X_STATUS_CMD_TIMEOUT 0b00000110
+ 346 #define RADIOLIB_SX126X_STATUS_CMD_INVALID 0b00001000
+ 347 #define RADIOLIB_SX126X_STATUS_CMD_FAILED 0b00001010
+ 348 #define RADIOLIB_SX126X_STATUS_TX_DONE 0b00001100
+ 349 #define RADIOLIB_SX126X_STATUS_SPI_FAILED 0b11111111
+
+
+ 352 #define RADIOLIB_SX126X_GFSK_RX_STATUS_PREAMBLE_ERR 0b10000000
+ 353 #define RADIOLIB_SX126X_GFSK_RX_STATUS_SYNC_ERR 0b01000000
+ 354 #define RADIOLIB_SX126X_GFSK_RX_STATUS_ADRS_ERR 0b00100000
+ 355 #define RADIOLIB_SX126X_GFSK_RX_STATUS_CRC_ERR 0b00010000
+ 356 #define RADIOLIB_SX126X_GFSK_RX_STATUS_LENGTH_ERR 0b00001000
+ 357 #define RADIOLIB_SX126X_GFSK_RX_STATUS_ABORT_ERR 0b00000100
+ 358 #define RADIOLIB_SX126X_GFSK_RX_STATUS_PACKET_RECEIVED 0b00000010
+ 359 #define RADIOLIB_SX126X_GFSK_RX_STATUS_PACKET_SENT 0b00000001
+
+
+ 362 #define RADIOLIB_SX126X_PA_RAMP_ERR 0b100000000
+ 363 #define RADIOLIB_SX126X_PLL_LOCK_ERR 0b001000000
+ 364 #define RADIOLIB_SX126X_XOSC_START_ERR 0b000100000
+ 365 #define RADIOLIB_SX126X_IMG_CALIB_ERR 0b000010000
+ 366 #define RADIOLIB_SX126X_ADC_CALIB_ERR 0b000001000
+ 367 #define RADIOLIB_SX126X_PLL_CALIB_ERR 0b000000100
+ 368 #define RADIOLIB_SX126X_RC13M_CALIB_ERR 0b000000010
+ 369 #define RADIOLIB_SX126X_RC64K_CALIB_ERR 0b000000001
-
-
- 373 #define RADIOLIB_SX126X_HOPPING_ENABLED 0b00000001
- 374 #define RADIOLIB_SX126X_HOPPING_DISABLED 0b00000000
+
+ 372 #define RADIOLIB_SX126X_SCAN_INTERVAL_7_68_US 10
+ 373 #define RADIOLIB_SX126X_SCAN_INTERVAL_8_20_US 11
+ 374 #define RADIOLIB_SX126X_SCAN_INTERVAL_8_68_US 12
-
- 377 #define RADIOLIB_SX126X_SYNC_WORD_PUBLIC 0x34
- 378 #define RADIOLIB_SX126X_SYNC_WORD_PRIVATE 0x12
-
-
- 381 #define RADIOLIB_SX126X_TX_BITBANG_1_DISABLED 0b00000000
- 382 #define RADIOLIB_SX126X_TX_BITBANG_1_ENABLED 0b00010000
-
-
- 385 #define RADIOLIB_SX126X_TX_BITBANG_0_DISABLED 0b00000000
- 386 #define RADIOLIB_SX126X_TX_BITBANG_0_ENABLED 0b00001100
-
-
- 389 #define RADIOLIB_SX126X_DIO1_OUT_DISABLED 0b00000010
- 390 #define RADIOLIB_SX126X_DIO1_OUT_ENABLED 0b00000000
- 391 #define RADIOLIB_SX126X_DIO2_OUT_DISABLED 0b00000100
- 392 #define RADIOLIB_SX126X_DIO2_OUT_ENABLED 0b00000000
- 393 #define RADIOLIB_SX126X_DIO3_OUT_DISABLED 0b00001000
- 394 #define RADIOLIB_SX126X_DIO3_OUT_ENABLED 0b00000000
-
-
- 397 #define RADIOLIB_SX126X_DIO1_IN_DISABLED 0b00000000
- 398 #define RADIOLIB_SX126X_DIO1_IN_ENABLED 0b00000010
- 399 #define RADIOLIB_SX126X_DIO2_IN_DISABLED 0b00000000
- 400 #define RADIOLIB_SX126X_DIO2_IN_ENABLED 0b00000100
- 401 #define RADIOLIB_SX126X_DIO3_IN_DISABLED 0b00000000
- 402 #define RADIOLIB_SX126X_DIO3_IN_ENABLED 0b00001000
-
-
- 405 #define RADIOLIB_SX126X_RX_GAIN_BOOSTED 0x96
- 406 #define RADIOLIB_SX126X_RX_GAIN_POWER_SAVING 0x94
- 407 #define RADIOLIB_SX126X_RX_GAIN_SPECTRAL_SCAN 0xCB
+
+
+ 378 #define RADIOLIB_SX126X_HOPPING_ENABLED 0b00000001
+ 379 #define RADIOLIB_SX126X_HOPPING_DISABLED 0b00000000
+
+
+ 382 #define RADIOLIB_SX126X_SYNC_WORD_PUBLIC 0x34
+ 383 #define RADIOLIB_SX126X_SYNC_WORD_PRIVATE 0x12
+
+
+ 386 #define RADIOLIB_SX126X_TX_BITBANG_1_DISABLED 0b00000000
+ 387 #define RADIOLIB_SX126X_TX_BITBANG_1_ENABLED 0b00010000
+
+
+ 390 #define RADIOLIB_SX126X_TX_BITBANG_0_DISABLED 0b00000000
+ 391 #define RADIOLIB_SX126X_TX_BITBANG_0_ENABLED 0b00001100
+
+
+ 394 #define RADIOLIB_SX126X_DIO1_OUT_DISABLED 0b00000010
+ 395 #define RADIOLIB_SX126X_DIO1_OUT_ENABLED 0b00000000
+ 396 #define RADIOLIB_SX126X_DIO2_OUT_DISABLED 0b00000100
+ 397 #define RADIOLIB_SX126X_DIO2_OUT_ENABLED 0b00000000
+ 398 #define RADIOLIB_SX126X_DIO3_OUT_DISABLED 0b00001000
+ 399 #define RADIOLIB_SX126X_DIO3_OUT_ENABLED 0b00000000
+
+
+ 402 #define RADIOLIB_SX126X_DIO1_IN_DISABLED 0b00000000
+ 403 #define RADIOLIB_SX126X_DIO1_IN_ENABLED 0b00000010
+ 404 #define RADIOLIB_SX126X_DIO2_IN_DISABLED 0b00000000
+ 405 #define RADIOLIB_SX126X_DIO2_IN_ENABLED 0b00000100
+ 406 #define RADIOLIB_SX126X_DIO3_IN_DISABLED 0b00000000
+ 407 #define RADIOLIB_SX126X_DIO3_IN_ENABLED 0b00001000
-
- 410 #define RADIOLIB_SX126X_PATCH_UPDATE_DISABLED 0b00010000
- 411 #define RADIOLIB_SX126X_PATCH_UPDATE_ENABLED 0b00000000
-
-
- 414 #define RADIOLIB_SX126X_SPECTRAL_SCAN_NONE 0x00
- 415 #define RADIOLIB_SX126X_SPECTRAL_SCAN_ONGOING 0x0F
- 416 #define RADIOLIB_SX126X_SPECTRAL_SCAN_ABORTED 0xF0
- 417 #define RADIOLIB_SX126X_SPECTRAL_SCAN_COMPLETED 0xFF
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+ 410 #define RADIOLIB_SX126X_RX_GAIN_BOOSTED 0x96
+ 411 #define RADIOLIB_SX126X_RX_GAIN_POWER_SAVING 0x94
+ 412 #define RADIOLIB_SX126X_RX_GAIN_SPECTRAL_SCAN 0xCB
+
+
+ 415 #define RADIOLIB_SX126X_PATCH_UPDATE_DISABLED 0b00010000
+ 416 #define RADIOLIB_SX126X_PATCH_UPDATE_ENABLED 0b00000000
+
+
+ 419 #define RADIOLIB_SX126X_SPECTRAL_SCAN_NONE 0x00
+ 420 #define RADIOLIB_SX126X_SPECTRAL_SCAN_ONGOING 0x0F
+ 421 #define RADIOLIB_SX126X_SPECTRAL_SCAN_ABORTED 0xF0
+ 422 #define RADIOLIB_SX126X_SPECTRAL_SCAN_COMPLETED 0xFF
+
+
+
+
+
+
+
+
+
+
+
+
-
-
- 464 int16_t
begin(uint8_t cr, uint8_t syncWord, uint16_t preambleLength,
float tcxoVoltage,
bool useRegulatorLDO =
false);
-
- 483 int16_t
beginFSK(
float br,
float freqDev,
float rxBw, uint16_t preambleLength,
float tcxoVoltage,
bool useRegulatorLDO =
false);
-
- 493 int16_t
reset(
bool verify =
true);
-
- 507 int16_t
transmit(uint8_t* data,
size_t len, uint8_t addr = 0)
override;
-
- 519 int16_t
receive(uint8_t* data,
size_t len)
override;
-
-
-
-
-
- 549 int16_t
scanChannel(uint8_t symbolNum = RADIOLIB_SX126X_CAD_PARAM_DEFAULT, uint8_t detPeak = RADIOLIB_SX126X_CAD_PARAM_DEFAULT, uint8_t detMin = RADIOLIB_SX126X_CAD_PARAM_DEFAULT);
-
- 558 int16_t
sleep(
bool retainConfig =
true);
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+ 469 int16_t
begin(uint8_t cr, uint8_t syncWord, uint16_t preambleLength,
float tcxoVoltage,
bool useRegulatorLDO =
false);
+
+ 488 int16_t
beginFSK(
float br,
float freqDev,
float rxBw, uint16_t preambleLength,
float tcxoVoltage,
bool useRegulatorLDO =
false);
+
+ 498 int16_t
reset(
bool verify =
true);
+
+ 512 int16_t
transmit(uint8_t* data,
size_t len, uint8_t addr = 0)
override;
+
+ 524 int16_t
receive(uint8_t* data,
size_t len)
override;
+
+
+
+
+
+ 554 int16_t
scanChannel(uint8_t symbolNum = RADIOLIB_SX126X_CAD_PARAM_DEFAULT, uint8_t detPeak = RADIOLIB_SX126X_CAD_PARAM_DEFAULT, uint8_t detMin = RADIOLIB_SX126X_CAD_PARAM_DEFAULT);
+
+ 563 int16_t
sleep(
bool retainConfig =
true);
+
+
+
+
+
+
+
+
- 602 int16_t
startTransmit(uint8_t* data,
size_t len, uint8_t addr = 0)
override;
-
-
-
- 623 int16_t
startReceive(uint32_t timeout = RADIOLIB_SX126X_RX_TIMEOUT_INF, uint16_t irqFlags = RADIOLIB_SX126X_IRQ_RX_DEFAULT, uint16_t irqMask = RADIOLIB_SX126X_IRQ_RX_DONE);
-
- 639 int16_t
startReceiveDutyCycle(uint32_t rxPeriod, uint32_t sleepPeriod, uint16_t irqFlags = RADIOLIB_SX126X_IRQ_RX_DEFAULT, uint16_t irqMask = RADIOLIB_SX126X_IRQ_RX_DONE);
-
- 656 int16_t
startReceiveDutyCycleAuto(uint16_t senderPreambleLength = 0, uint16_t minSymbols = 8, uint16_t irqFlags = RADIOLIB_SX126X_IRQ_RX_DEFAULT, uint16_t irqMask = RADIOLIB_SX126X_IRQ_RX_DONE);
-
-
-
- 675 int16_t
readData(uint8_t* data,
size_t len)
override;
-
- 688 int16_t
startChannelScan(uint8_t symbolNum = RADIOLIB_SX126X_CAD_PARAM_DEFAULT, uint8_t detPeak = RADIOLIB_SX126X_CAD_PARAM_DEFAULT, uint8_t detMin = RADIOLIB_SX126X_CAD_PARAM_DEFAULT);
-
-
-
-
-
-
-
-
-
-
-
- 735 int16_t
setSyncWord(uint8_t syncWord, uint8_t controlBits = 0x44);
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 820 int16_t
setSyncWord(uint8_t* syncWord, uint8_t len);
-
- 831 int16_t
setSyncBits(uint8_t *syncWord, uint8_t bitsLen);
-
-
-
-
-
-
-
- 871 int16_t
setCRC(uint8_t len, uint16_t initial = 0x1D0F, uint16_t polynomial = 0x1021,
bool inverted =
true);
-
- 882 int16_t
setWhitening(
bool enabled, uint16_t initial = 0x0100);
-
- 894 int16_t
setTCXO(
float voltage, uint32_t delay = 5000);
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 1037 #if !defined(RADIOLIB_EXCLUDE_DIRECT_RECEIVE)
-
-
- 1050 void readBit(RADIOLIB_PIN_TYPE pin);
-
-
-
- 1054 #if !defined(RADIOLIB_GODMODE)
-
-
-
- 1058 int16_t setTx(uint32_t timeout = 0);
- 1059 int16_t setRx(uint32_t timeout);
- 1060 int16_t setCad(uint8_t symbolNum, uint8_t detPeak, uint8_t detMin);
- 1061 int16_t setPaConfig(uint8_t paDutyCycle, uint8_t deviceSel, uint8_t hpMax = RADIOLIB_SX126X_PA_CONFIG_HP_MAX, uint8_t paLut = RADIOLIB_SX126X_PA_CONFIG_PA_LUT);
- 1062 int16_t writeRegister(uint16_t addr, uint8_t* data, uint8_t numBytes);
- 1063 int16_t readRegister(uint16_t addr, uint8_t* data, uint8_t numBytes);
- 1064 int16_t writeBuffer(uint8_t* data, uint8_t numBytes, uint8_t offset = 0x00);
- 1065 int16_t readBuffer(uint8_t* data, uint8_t numBytes);
- 1066 int16_t setDioIrqParams(uint16_t irqMask, uint16_t dio1Mask, uint16_t dio2Mask = RADIOLIB_SX126X_IRQ_NONE, uint16_t dio3Mask = RADIOLIB_SX126X_IRQ_NONE);
- 1067 virtual int16_t clearIrqStatus(uint16_t clearIrqParams = RADIOLIB_SX126X_IRQ_ALL);
- 1068 int16_t setRfFrequency(uint32_t frf);
- 1069 int16_t calibrateImage(uint8_t* data);
- 1070 uint8_t getPacketType();
- 1071 int16_t setTxParams(uint8_t power, uint8_t rampTime = RADIOLIB_SX126X_PA_RAMP_200U);
- 1072 int16_t setModulationParams(uint8_t sf, uint8_t bw, uint8_t cr, uint8_t ldro);
- 1073 int16_t setModulationParamsFSK(uint32_t br, uint8_t pulseShape, uint8_t rxBw, uint32_t freqDev);
- 1074 int16_t setPacketParams(uint16_t preambleLength, uint8_t crcType, uint8_t payloadLength, uint8_t headerType, uint8_t invertIQ = RADIOLIB_SX126X_LORA_IQ_STANDARD);
- 1075 int16_t setPacketParamsFSK(uint16_t preambleLength, uint8_t crcType, uint8_t syncWordLength, uint8_t addrComp, uint8_t whitening, uint8_t packetType = RADIOLIB_SX126X_GFSK_PACKET_VARIABLE, uint8_t payloadLength = 0xFF, uint8_t preambleDetectorLength = RADIOLIB_SX126X_GFSK_PREAMBLE_DETECT_16);
- 1076 int16_t setBufferBaseAddress(uint8_t txBaseAddress = 0x00, uint8_t rxBaseAddress = 0x00);
- 1077 int16_t setRegulatorMode(uint8_t mode);
- 1078 uint8_t getStatus();
- 1079 uint32_t getPacketStatus();
- 1080 uint16_t getDeviceErrors();
- 1081 int16_t clearDeviceErrors();
-
- 1083 int16_t startReceiveCommon(uint32_t timeout = RADIOLIB_SX126X_RX_TIMEOUT_INF, uint16_t irqFlags = RADIOLIB_SX126X_IRQ_RX_DEFAULT, uint16_t irqMask = RADIOLIB_SX126X_IRQ_RX_DONE);
- 1084 int16_t setFrequencyRaw(
float freq);
- 1085 int16_t setPacketMode(uint8_t mode, uint8_t len);
- 1086 int16_t setHeaderType(uint8_t headerType,
size_t len = 0xFF);
- 1087 int16_t directMode();
- 1088 int16_t packetMode();
-
-
- 1091 int16_t fixSensitivity();
- 1092 int16_t fixPaClamping(
bool enable =
true);
- 1093 int16_t fixImplicitTimeout();
- 1094 int16_t fixInvertedIQ(uint8_t iqConfig);
-
- 1096 #if !defined(RADIOLIB_GODMODE) && !defined(RADIOLIB_LOW_LEVEL)
-
-
-
+
+
+ 607 int16_t
startTransmit(uint8_t* data,
size_t len, uint8_t addr = 0)
override;
+
+
+
+ 628 int16_t
startReceive(uint32_t timeout = RADIOLIB_SX126X_RX_TIMEOUT_INF, uint16_t irqFlags = RADIOLIB_SX126X_IRQ_RX_DEFAULT, uint16_t irqMask = RADIOLIB_SX126X_IRQ_RX_DONE);
+
+ 644 int16_t
startReceiveDutyCycle(uint32_t rxPeriod, uint32_t sleepPeriod, uint16_t irqFlags = RADIOLIB_SX126X_IRQ_RX_DEFAULT, uint16_t irqMask = RADIOLIB_SX126X_IRQ_RX_DONE);
+
+ 661 int16_t
startReceiveDutyCycleAuto(uint16_t senderPreambleLength = 0, uint16_t minSymbols = 8, uint16_t irqFlags = RADIOLIB_SX126X_IRQ_RX_DEFAULT, uint16_t irqMask = RADIOLIB_SX126X_IRQ_RX_DONE);
+
+
+
+ 680 int16_t
readData(uint8_t* data,
size_t len)
override;
+
+ 693 int16_t
startChannelScan(uint8_t symbolNum = RADIOLIB_SX126X_CAD_PARAM_DEFAULT, uint8_t detPeak = RADIOLIB_SX126X_CAD_PARAM_DEFAULT, uint8_t detMin = RADIOLIB_SX126X_CAD_PARAM_DEFAULT);
+
+
+
+
+
+
+
+
+
+
+
+ 740 int16_t
setSyncWord(uint8_t syncWord, uint8_t controlBits = 0x44);
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 825 int16_t
setSyncWord(uint8_t* syncWord, uint8_t len);
+
+ 836 int16_t
setSyncBits(uint8_t *syncWord, uint8_t bitsLen);
+
+
+
+
+
+
+
+ 876 int16_t
setCRC(uint8_t len, uint16_t initial = 0x1D0F, uint16_t polynomial = 0x1021,
bool inverted =
true);
+
+ 887 int16_t
setWhitening(
bool enabled, uint16_t initial = 0x0100);
+
+ 899 int16_t
setTCXO(
float voltage, uint32_t delay = 5000);
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1042 #if !defined(RADIOLIB_EXCLUDE_DIRECT_RECEIVE)
+
+
+ 1055 void readBit(RADIOLIB_PIN_TYPE pin);
+
+
+
+ 1059 #if !defined(RADIOLIB_GODMODE)
+
+
+
+ 1063 int16_t setTx(uint32_t timeout = 0);
+ 1064 int16_t setRx(uint32_t timeout);
+ 1065 int16_t setCad(uint8_t symbolNum, uint8_t detPeak, uint8_t detMin);
+ 1066 int16_t setPaConfig(uint8_t paDutyCycle, uint8_t deviceSel, uint8_t hpMax = RADIOLIB_SX126X_PA_CONFIG_HP_MAX, uint8_t paLut = RADIOLIB_SX126X_PA_CONFIG_PA_LUT);
+ 1067 int16_t writeRegister(uint16_t addr, uint8_t* data, uint8_t numBytes);
+ 1068 int16_t readRegister(uint16_t addr, uint8_t* data, uint8_t numBytes);
+ 1069 int16_t writeBuffer(uint8_t* data, uint8_t numBytes, uint8_t offset = 0x00);
+ 1070 int16_t readBuffer(uint8_t* data, uint8_t numBytes);
+ 1071 int16_t setDioIrqParams(uint16_t irqMask, uint16_t dio1Mask, uint16_t dio2Mask = RADIOLIB_SX126X_IRQ_NONE, uint16_t dio3Mask = RADIOLIB_SX126X_IRQ_NONE);
+ 1072 virtual int16_t clearIrqStatus(uint16_t clearIrqParams = RADIOLIB_SX126X_IRQ_ALL);
+ 1073 int16_t setRfFrequency(uint32_t frf);
+ 1074 int16_t calibrateImage(uint8_t* data);
+ 1075 uint8_t getPacketType();
+ 1076 int16_t setTxParams(uint8_t power, uint8_t rampTime = RADIOLIB_SX126X_PA_RAMP_200U);
+ 1077 int16_t setModulationParams(uint8_t sf, uint8_t bw, uint8_t cr, uint8_t ldro);
+ 1078 int16_t setModulationParamsFSK(uint32_t br, uint8_t pulseShape, uint8_t rxBw, uint32_t freqDev);
+ 1079 int16_t setPacketParams(uint16_t preambleLength, uint8_t crcType, uint8_t payloadLength, uint8_t headerType, uint8_t invertIQ = RADIOLIB_SX126X_LORA_IQ_STANDARD);
+ 1080 int16_t setPacketParamsFSK(uint16_t preambleLength, uint8_t crcType, uint8_t syncWordLength, uint8_t addrComp, uint8_t whitening, uint8_t packetType = RADIOLIB_SX126X_GFSK_PACKET_VARIABLE, uint8_t payloadLength = 0xFF, uint8_t preambleDetectorLength = RADIOLIB_SX126X_GFSK_PREAMBLE_DETECT_16);
+ 1081 int16_t setBufferBaseAddress(uint8_t txBaseAddress = 0x00, uint8_t rxBaseAddress = 0x00);
+ 1082 int16_t setRegulatorMode(uint8_t mode);
+ 1083 uint8_t getStatus();
+ 1084 uint32_t getPacketStatus();
+ 1085 uint16_t getDeviceErrors();
+ 1086 int16_t clearDeviceErrors();
+
+ 1088 int16_t startReceiveCommon(uint32_t timeout = RADIOLIB_SX126X_RX_TIMEOUT_INF, uint16_t irqFlags = RADIOLIB_SX126X_IRQ_RX_DEFAULT, uint16_t irqMask = RADIOLIB_SX126X_IRQ_RX_DONE);
+ 1089 int16_t setFrequencyRaw(
float freq);
+ 1090 int16_t setPacketMode(uint8_t mode, uint8_t len);
+ 1091 int16_t setHeaderType(uint8_t headerType,
size_t len = 0xFF);
+ 1092 int16_t directMode();
+ 1093 int16_t packetMode();
+
+
+ 1096 int16_t fixSensitivity();
+ 1097 int16_t fixPaClamping(
bool enable =
true);
+ 1098 int16_t fixImplicitTimeout();
+ 1099 int16_t fixInvertedIQ(uint8_t iqConfig);
-
- 1102 static int16_t SPIparseStatus(uint8_t in);
-
- 1104 #if !defined(RADIOLIB_GODMODE)
-
-
-
- 1108 uint8_t _bw = 0, _sf = 0, _cr = 0, _ldro = 0, _crcType = 0, _headerType = 0;
- 1109 uint16_t _preambleLength = 0;
-
- 1111 bool _ldroAuto =
true;
+ 1101 #if !defined(RADIOLIB_GODMODE) && !defined(RADIOLIB_LOW_LEVEL)
+
+
+
+
+
+ 1107 static int16_t SPIparseStatus(uint8_t in);
+
+ 1109 #if !defined(RADIOLIB_GODMODE)
+
+
- 1113 uint32_t _br = 0, _freqDev = 0;
- 1114 uint8_t _rxBw = 0, _pulseShape = 0, _crcTypeFSK = 0, _syncWordLength = 0, _addrComp = 0, _whitening = 0, _packetType = 0;
- 1115 uint16_t _preambleLengthFSK = 0;
-
+ 1113 uint8_t _bw = 0, _sf = 0, _cr = 0, _ldro = 0, _crcType = 0, _headerType = 0;
+ 1114 uint16_t _preambleLength = 0;
+
+ 1116 bool _ldroAuto =
true;
- 1118 float _dataRate = 0;
-
- 1120 uint32_t _tcxoDelay = 0;
-
- 1122 size_t _implicitLen = 0;
- 1123 uint8_t _chipType = 0;
+ 1118 uint32_t _br = 0, _freqDev = 0;
+ 1119 uint8_t _rxBw = 0, _pulseShape = 0, _crcTypeFSK = 0, _syncWordLength = 0, _addrComp = 0, _whitening = 0, _packetType = 0;
+ 1120 uint16_t _preambleLengthFSK = 0;
+
+
+ 1123 float _dataRate = 0;
-
-
-
- 1128 int16_t config(uint8_t modem);
- 1129 bool findChip(uint8_t type);
-
-
-
-
-
+ 1125 uint32_t _tcxoDelay = 0;
+
+ 1127 size_t _implicitLen = 0;
+ 1128 uint8_t _chipType = 0;
+
+
+
+
+ 1133 int16_t config(uint8_t modem);
+ 1134 bool findChip(uint8_t type);
+
+
+
+
+
Implements all common low-level methods to control the wireless module. Every module class contains o...
Definition: Module.h:16
static const size_t RFSWITCH_MAX_PINS
The maximum number of pins supported by the RF switch code.
Definition: Module.h:27
@ MODE_TX
Definition: Module.h:56
@@ -742,7 +747,7 @@ $(document).ready(function(){initNavTree('_s_x126x_8h_source.html',''); initResi
int16_t readData(String &str, size_t len=0)
Reads data that was received after calling startReceive method.
Definition: PhysicalLayer.cpp:141
int16_t startTransmit(String &str, uint8_t addr=0)
Interrupt-driven Arduino String transmit method. Unlike the standard transmit method,...
Definition: PhysicalLayer.cpp:122
int16_t receive(String &str, size_t len=0)
Arduino String receive method.
Definition: PhysicalLayer.cpp:60
-Base class for SX126x series. All derived classes for SX126x (e.g. SX1262 or SX1268) inherit from thi...
Definition: SX126x.h:425
+Base class for SX126x series. All derived classes for SX126x (e.g. SX1262 or SX1268) inherit from thi...
Definition: SX126x.h:430
int16_t startReceiveDutyCycleAuto(uint16_t senderPreambleLength=0, uint16_t minSymbols=8, uint16_t irqFlags=RADIOLIB_SX126X_IRQ_RX_DEFAULT, uint16_t irqMask=RADIOLIB_SX126X_IRQ_RX_DONE)
Calls startReceiveDutyCycle with rxPeriod and sleepPeriod set so the unit shouldn't miss any messages...
Definition: SX126x.cpp:576
void setDio1Action(void(*func)(void))
Sets interrupt service routine to call when DIO1 activates.
Definition: SX126x.cpp:459
float getRSSI()
Gets RSSI (Recorded Signal Strength Indicator) of the last received packet.
Definition: SX126x.cpp:1221
@@ -793,7 +798,7 @@ $(document).ready(function(){initNavTree('_s_x126x_8h_source.html',''); initResi
int16_t setSyncBits(uint8_t *syncWord, uint8_t bitsLen)
Sets FSK sync word in the form of array of up to 8 bytes.
Definition: SX126x.cpp:1049
float getDataRate() const
Gets effective data rate for the last transmitted packet. The value is calculated only for payload by...
Definition: SX126x.cpp:1217
void setRfSwitchTable(const RADIOLIB_PIN_TYPE(&pins)[Module::RFSWITCH_MAX_PINS], const Module::RfSwitchMode_t table[])
Some modules contain external RF switch controlled by pins. This function gives RadioLib control over...
Definition: SX126x.cpp:1325
-bool XTAL
Whether the module has an XTAL (true) or TCXO (false). Defaults to false.
Definition: SX126x.h:445
+bool XTAL
Whether the module has an XTAL (true) or TCXO (false). Defaults to false.
Definition: SX126x.h:450
int16_t implicitHeader(size_t len)
Set implicit header mode for future reception/transmission.
Definition: SX126x.cpp:1301
float getRSSIInst()
Get instantaneous RSSI value during recption of the packet. Should switch to FSK receive mode for LBT...
Definition: SX126x.cpp:1294
float getSNR()
Gets SNR (Signal to Noise Ratio) of the last received packet. Only available for LoRa modem.
Definition: SX126x.cpp:1228