From 44b427c51480243c14e71eaad8fd2b6a0122761e Mon Sep 17 00:00:00 2001 From: jgromes Date: Wed, 27 Oct 2021 19:17:55 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20=20@=2068eeb?= =?UTF-8?q?adf1d42099f9407c776d299deb91976a4b2=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _build_opt_8h_source.html | 937 ++++++++++++++++++++------------------ _i_serial_8h_source.html | 88 ++-- _module_8h_source.html | 54 +-- _r_f_m22_8h_source.html | 2 +- _r_f_m23_8h_source.html | 2 +- _r_f_m96_8h_source.html | 2 +- 6 files changed, 565 insertions(+), 520 deletions(-) diff --git a/_build_opt_8h_source.html b/_build_opt_8h_source.html index 2f3d64d9..cbbc330a 100644 --- a/_build_opt_8h_source.html +++ b/_build_opt_8h_source.html @@ -107,458 +107,501 @@ $(document).ready(function(){initNavTree('_build_opt_8h_source.html',''); initRe
19  * RADIOLIB_NC - alias for unused pin, usually the largest possible value of RADIOLIB_PIN_TYPE.
20  * RADIOLIB_DEFAULT_SPI - default SPIClass instance to use.
21  * RADIOLIB_PROGMEM - macro to place variable into program storage (usually Flash).
-
22  * RADIOLIB_PROGMEM_READ_BYTE - function/macro to read variables saved in program storage (usually Flash).
-
23  * RADIOLIB_SOFTWARE_SERIAL_UNSUPPORTED - defined if the specific platform does not support SoftwareSerial.
-
24  * RADIOLIB_HARDWARE_SERIAL_PORT - which hardware serial port should be used on platform that do not have SoftwareSerial support.
-
25  * RADIOLIB_TONE_UNSUPPORTED - some platforms do not have tone()/noTone(), which is required for AFSK.
-
26  *
-
27  * In addition, some platforms may require RadioLib to disable specific drivers (such as ESP8266).
-
28  *
-
29  * Users may also specify their own configuration by uncommenting the RADIOLIB_CUSTOM_PLATFORM,
-
30  * and then specifying all platform parameters in the section below. This will override automatic
-
31  * platform detection.
-
32  */
-
33 
-
34 // uncomment to enable custom platform definition
-
35 //#define RADIOLIB_CUSTOM_PLATFORM
-
36 
-
37 #if defined(RADIOLIB_CUSTOM_PLATFORM)
-
38  // name for your platform
-
39  #define RADIOLIB_PLATFORM "Custom"
-
40 
-
41  // the following parameters must always be defined
-
42  #define RADIOLIB_PIN_TYPE uint8_t
-
43  #define RADIOLIB_PIN_MODE uint8_t
-
44  #define RADIOLIB_PIN_STATUS uint8_t
-
45  #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS
-
46  #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p)
-
47  #define RADIOLIB_NC (0xFF)
-
48  #define RADIOLIB_DEFAULT_SPI SPI
-
49  #define RADIOLIB_PROGMEM PROGMEM
-
50  #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr)
-
51 
-
52  // the following must be defined if the Arduino core does not support SoftwareSerial library
-
53  //#define RADIOLIB_SOFTWARE_SERIAL_UNSUPPORTED
-
54  //#define RADIOLIB_HARDWARE_SERIAL_PORT Serial1
-
55 
-
56  // the following must be defined if the Arduino core does not support tone function
-
57  //#define RADIOLIB_TONE_UNSUPPORTED
-
58 
-
59  // some platforms seem to have issues with SPI modules that use a command interface
-
60  // this can be mitigated by adding delays into SPI communication
-
61  // (see https://github.com/jgromes/RadioLib/issues/158 for details)
-
62  //#define RADIOLIB_SPI_SLOWDOWN
-
63 
-
64  // some of RadioLib drivers may be excluded, to prevent collisions with platforms (or to speed up build process)
-
65  // the following is a complete list of all possible exclusion macros, uncomment any of them to disable that driver
-
66  // NOTE: Some of the exclusion macros are dependent on each other. For example, it is not possible to exclude RF69
-
67  // while keeping SX1231 (because RF69 is the base class for SX1231). The dependency is always uni-directional,
-
68  // so excluding SX1231 and keeping RF69 is valid.
-
69  //#define RADIOLIB_EXCLUDE_CC1101
-
70  //#define RADIOLIB_EXCLUDE_ESP8266
-
71  //#define RADIOLIB_EXCLUDE_HC05
-
72  //#define RADIOLIB_EXCLUDE_JDY08
-
73  //#define RADIOLIB_EXCLUDE_NRF24
-
74  //#define RADIOLIB_EXCLUDE_RF69
-
75  //#define RADIOLIB_EXCLUDE_SX1231 // dependent on RADIOLIB_EXCLUDE_RF69
-
76  //#define RADIOLIB_EXCLUDE_SI443X
-
77  //#define RADIOLIB_EXCLUDE_RFM2X // dependent on RADIOLIB_EXCLUDE_SI443X
-
78  //#define RADIOLIB_EXCLUDE_SX127X
-
79  //#define RADIOLIB_EXCLUDE_RFM9X // dependent on RADIOLIB_EXCLUDE_SX127X
-
80  //#define RADIOLIB_EXCLUDE_SX126X
-
81  //#define RADIOLIB_EXCLUDE_SX128X
-
82  //#define RADIOLIB_EXCLUDE_XBEE
-
83  //#define RADIOLIB_EXCLUDE_AFSK
-
84  //#define RADIOLIB_EXCLUDE_AX25
-
85  //#define RADIOLIB_EXCLUDE_HELLSCHREIBER
-
86  //#define RADIOLIB_EXCLUDE_HTTP
-
87  //#define RADIOLIB_EXCLUDE_MORSE
-
88  //#define RADIOLIB_EXCLUDE_MQTT
-
89  //#define RADIOLIB_EXCLUDE_RTTY
-
90  //#define RADIOLIB_EXCLUDE_SSTV
-
91 
-
92 #else
-
93  #if defined(__AVR__) && !(defined(ARDUINO_AVR_UNO_WIFI_REV2) || defined(ARDUINO_AVR_NANO_EVERY) || defined(ARDUINO_ARCH_MEGAAVR))
-
94  // Arduino AVR boards (except for megaAVR) - Uno, Mega etc.
-
95  #define RADIOLIB_PLATFORM "Arduino AVR"
-
96  #define RADIOLIB_PIN_TYPE uint8_t
-
97  #define RADIOLIB_PIN_MODE uint8_t
-
98  #define RADIOLIB_PIN_STATUS uint8_t
-
99  #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS
-
100  #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p)
-
101  #define RADIOLIB_NC (0xFF)
-
102  #define RADIOLIB_DEFAULT_SPI SPI
-
103  #define RADIOLIB_PROGMEM PROGMEM
-
104  #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr)
-
105 
-
106  #elif defined(ESP8266)
-
107  // ESP8266 boards
-
108  #define RADIOLIB_PLATFORM "ESP8266"
-
109  #define RADIOLIB_PIN_TYPE uint8_t
-
110  #define RADIOLIB_PIN_MODE uint8_t
-
111  #define RADIOLIB_PIN_STATUS uint8_t
-
112  #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS
-
113  #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p)
-
114  #define RADIOLIB_NC (0xFF)
-
115  #define RADIOLIB_DEFAULT_SPI SPI
-
116  #define RADIOLIB_PROGMEM PROGMEM
-
117  #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr)
-
118 
-
119  // RadioLib has ESP8266 driver, this must be disabled to use ESP8266 as platform
-
120  #define RADIOLIB_EXCLUDE_ESP8266
-
121  #define RADIOLIB_EXCLUDE_HTTP
+
22  * RADIOLIB_PROGMEM_READ_BYTE - function/macro to read variables saved in program storage (usually Flash).
+
23  * RADIOLIB_TYPE_ALIAS - construct to create an alias for a type, usually vai the `using` keyword.
+
24  * RADIOLIB_SOFTWARE_SERIAL_UNSUPPORTED - defined if the specific platform does not support SoftwareSerial.
+
25  * RADIOLIB_HARDWARE_SERIAL_PORT - which hardware serial port should be used on platform that do not have SoftwareSerial support.
+
26  * RADIOLIB_TONE_UNSUPPORTED - some platforms do not have tone()/noTone(), which is required for AFSK.
+
27  *
+
28  * In addition, some platforms may require RadioLib to disable specific drivers (such as ESP8266).
+
29  *
+
30  * Users may also specify their own configuration by uncommenting the RADIOLIB_CUSTOM_PLATFORM,
+
31  * and then specifying all platform parameters in the section below. This will override automatic
+
32  * platform detection.
+
33  */
+
34 
+
35 // uncomment to enable custom platform definition
+
36 //#define RADIOLIB_CUSTOM_PLATFORM
+
37 
+
38 #if defined(RADIOLIB_CUSTOM_PLATFORM)
+
39  // name for your platform
+
40  #define RADIOLIB_PLATFORM "Custom"
+
41 
+
42  // the following parameters must always be defined
+
43  #define RADIOLIB_PIN_TYPE uint8_t
+
44  #define RADIOLIB_PIN_MODE uint8_t
+
45  #define RADIOLIB_PIN_STATUS uint8_t
+
46  #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS
+
47  #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p)
+
48  #define RADIOLIB_NC (0xFF)
+
49  #define RADIOLIB_DEFAULT_SPI SPI
+
50  #define RADIOLIB_PROGMEM PROGMEM
+
51  #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr)
+
52  #define RADIOLIB_TYPE_ALIAS(type, alias) using alias = type;
+
53 
+
54  // the following must be defined if the Arduino core does not support SoftwareSerial library
+
55  //#define RADIOLIB_SOFTWARE_SERIAL_UNSUPPORTED
+
56  //#define RADIOLIB_HARDWARE_SERIAL_PORT Serial1
+
57 
+
58  // the following must be defined if the Arduino core does not support tone function
+
59  //#define RADIOLIB_TONE_UNSUPPORTED
+
60 
+
61  // some platforms seem to have issues with SPI modules that use a command interface
+
62  // this can be mitigated by adding delays into SPI communication
+
63  // (see https://github.com/jgromes/RadioLib/issues/158 for details)
+
64  //#define RADIOLIB_SPI_SLOWDOWN
+
65 
+
66  // some of RadioLib drivers may be excluded, to prevent collisions with platforms (or to speed up build process)
+
67  // the following is a complete list of all possible exclusion macros, uncomment any of them to disable that driver
+
68  // NOTE: Some of the exclusion macros are dependent on each other. For example, it is not possible to exclude RF69
+
69  // while keeping SX1231 (because RF69 is the base class for SX1231). The dependency is always uni-directional,
+
70  // so excluding SX1231 and keeping RF69 is valid.
+
71  //#define RADIOLIB_EXCLUDE_CC1101
+
72  //#define RADIOLIB_EXCLUDE_ESP8266
+
73  //#define RADIOLIB_EXCLUDE_HC05
+
74  //#define RADIOLIB_EXCLUDE_JDY08
+
75  //#define RADIOLIB_EXCLUDE_NRF24
+
76  //#define RADIOLIB_EXCLUDE_RF69
+
77  //#define RADIOLIB_EXCLUDE_SX1231 // dependent on RADIOLIB_EXCLUDE_RF69
+
78  //#define RADIOLIB_EXCLUDE_SI443X
+
79  //#define RADIOLIB_EXCLUDE_RFM2X // dependent on RADIOLIB_EXCLUDE_SI443X
+
80  //#define RADIOLIB_EXCLUDE_SX127X
+
81  //#define RADIOLIB_EXCLUDE_RFM9X // dependent on RADIOLIB_EXCLUDE_SX127X
+
82  //#define RADIOLIB_EXCLUDE_SX126X
+
83  //#define RADIOLIB_EXCLUDE_SX128X
+
84  //#define RADIOLIB_EXCLUDE_XBEE
+
85  //#define RADIOLIB_EXCLUDE_AFSK
+
86  //#define RADIOLIB_EXCLUDE_AX25
+
87  //#define RADIOLIB_EXCLUDE_HELLSCHREIBER
+
88  //#define RADIOLIB_EXCLUDE_HTTP
+
89  //#define RADIOLIB_EXCLUDE_MORSE
+
90  //#define RADIOLIB_EXCLUDE_MQTT
+
91  //#define RADIOLIB_EXCLUDE_RTTY
+
92  //#define RADIOLIB_EXCLUDE_SSTV
+
93 
+
94 #else
+
95  #if defined(__AVR__) && !(defined(ARDUINO_AVR_UNO_WIFI_REV2) || defined(ARDUINO_AVR_NANO_EVERY) || defined(ARDUINO_ARCH_MEGAAVR))
+
96  // Arduino AVR boards (except for megaAVR) - Uno, Mega etc.
+
97  #define RADIOLIB_PLATFORM "Arduino AVR"
+
98  #define RADIOLIB_PIN_TYPE uint8_t
+
99  #define RADIOLIB_PIN_MODE uint8_t
+
100  #define RADIOLIB_PIN_STATUS uint8_t
+
101  #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS
+
102  #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p)
+
103  #define RADIOLIB_NC (0xFF)
+
104  #define RADIOLIB_DEFAULT_SPI SPI
+
105  #define RADIOLIB_PROGMEM PROGMEM
+
106  #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr)
+
107  #define RADIOLIB_TYPE_ALIAS(type, alias) using alias = type;
+
108 
+
109  #elif defined(ESP8266)
+
110  // ESP8266 boards
+
111  #define RADIOLIB_PLATFORM "ESP8266"
+
112  #define RADIOLIB_PIN_TYPE uint8_t
+
113  #define RADIOLIB_PIN_MODE uint8_t
+
114  #define RADIOLIB_PIN_STATUS uint8_t
+
115  #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS
+
116  #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p)
+
117  #define RADIOLIB_NC (0xFF)
+
118  #define RADIOLIB_DEFAULT_SPI SPI
+
119  #define RADIOLIB_PROGMEM PROGMEM
+
120  #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr)
+
121  #define RADIOLIB_TYPE_ALIAS(type, alias) using alias = type;
122 
-
123  #elif defined(ESP32)
-
124  // ESP32 boards
-
125  #define RADIOLIB_PLATFORM "ESP32"
-
126  #define RADIOLIB_PIN_TYPE uint8_t
-
127  #define RADIOLIB_PIN_MODE uint8_t
-
128  #define RADIOLIB_PIN_STATUS uint8_t
-
129  #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS
-
130  #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p)
-
131  #define RADIOLIB_NC (0xFF)
-
132  #define RADIOLIB_DEFAULT_SPI SPI
-
133  #define RADIOLIB_PROGMEM PROGMEM
-
134  #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr)
-
135  #define RADIOLIB_SOFTWARE_SERIAL_UNSUPPORTED
-
136  #define RADIOLIB_HARDWARE_SERIAL_PORT Serial1
-
137 
-
138  // ESP32 doesn't support tone(), but it can be emulated via LED control peripheral
-
139  #define RADIOLIB_TONE_UNSUPPORTED
-
140  #define RADIOLIB_TONE_ESP32_CHANNEL (1)
-
141 
-
142  #elif defined(ARDUINO_ARCH_STM32)
-
143  // official STM32 Arduino core (https://github.com/stm32duino/Arduino_Core_STM32)
-
144  #define RADIOLIB_PLATFORM "Arduino STM32 (official)"
-
145  #define RADIOLIB_PIN_TYPE uint32_t
-
146  #define RADIOLIB_PIN_MODE uint32_t
-
147  #define RADIOLIB_PIN_STATUS uint32_t
-
148  #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS
-
149  #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p)
-
150  #define RADIOLIB_NC (0xFFFFFFFF)
-
151  #define RADIOLIB_DEFAULT_SPI SPI
-
152  #define RADIOLIB_PROGMEM PROGMEM
-
153  #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr)
-
154  #define RADIOLIB_SOFTWARE_SERIAL_UNSUPPORTED
-
155  #define RADIOLIB_HARDWARE_SERIAL_PORT Serial1
-
156 
-
157  // slow down SX126x/8x SPI on this platform
-
158  #define RADIOLIB_SPI_SLOWDOWN
-
159 
-
160  #elif defined(SAMD_SERIES)
-
161  // Adafruit SAMD boards (M0 and M4)
-
162  #define RADIOLIB_PLATFORM "Adafruit SAMD"
-
163  #define RADIOLIB_PIN_TYPE uint32_t
-
164  #define RADIOLIB_PIN_MODE uint32_t
-
165  #define RADIOLIB_PIN_STATUS uint32_t
-
166  #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS
-
167  #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p)
-
168  #define RADIOLIB_NC (0xFFFFFFFF)
-
169  #define RADIOLIB_DEFAULT_SPI SPI
-
170  #define RADIOLIB_PROGMEM PROGMEM
-
171  #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr)
-
172  #define RADIOLIB_SOFTWARE_SERIAL_UNSUPPORTED
-
173  #define RADIOLIB_HARDWARE_SERIAL_PORT Serial1
-
174 
-
175  // slow down SX126x/8x SPI on this platform
-
176  #define RADIOLIB_SPI_SLOWDOWN
-
177 
-
178  #elif defined(ARDUINO_ARCH_SAMD)
-
179  // Arduino SAMD (Zero, MKR, etc.)
-
180  #define RADIOLIB_PLATFORM "Arduino SAMD"
-
181  #define RADIOLIB_PIN_TYPE pin_size_t
-
182  #define RADIOLIB_PIN_MODE PinMode
-
183  #define RADIOLIB_PIN_STATUS PinStatus
-
184  #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS
-
185  #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p)
-
186  #define RADIOLIB_NC (0xFF)
-
187  #define RADIOLIB_DEFAULT_SPI SPI
-
188  #define RADIOLIB_PROGMEM PROGMEM
-
189  #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr)
-
190  #define RADIOLIB_SOFTWARE_SERIAL_UNSUPPORTED
-
191  #define RADIOLIB_HARDWARE_SERIAL_PORT Serial1
-
192 
-
193  #elif defined(__SAM3X8E__)
-
194  // Arduino Due
-
195  #define RADIOLIB_PLATFORM "Arduino Due"
-
196  #define RADIOLIB_PIN_TYPE uint32_t
-
197  #define RADIOLIB_PIN_MODE uint32_t
-
198  #define RADIOLIB_PIN_STATUS uint32_t
-
199  #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS
-
200  #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p)
-
201  #define RADIOLIB_NC (0xFFFFFFFF)
-
202  #define RADIOLIB_DEFAULT_SPI SPI
-
203  #define RADIOLIB_PROGMEM PROGMEM
-
204  #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr)
-
205  #define RADIOLIB_SOFTWARE_SERIAL_UNSUPPORTED
-
206  #define RADIOLIB_HARDWARE_SERIAL_PORT Serial1
-
207  #define RADIOLIB_TONE_UNSUPPORTED
-
208 
-
209  #elif (defined(NRF52832_XXAA) || defined(NRF52840_XXAA)) && !defined(ARDUINO_ARDUINO_NANO33BLE)
-
210  // Adafruit nRF52 boards
-
211  #define RADIOLIB_PLATFORM "Adafruit nRF52"
-
212  #define RADIOLIB_PIN_TYPE uint32_t
-
213  #define RADIOLIB_PIN_MODE uint32_t
-
214  #define RADIOLIB_PIN_STATUS uint32_t
-
215  #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS
-
216  #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p)
-
217  #define RADIOLIB_NC (0xFFFFFFFF)
-
218  #define RADIOLIB_DEFAULT_SPI SPI
-
219  #define RADIOLIB_PROGMEM PROGMEM
-
220  #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr)
-
221 
-
222  #elif defined(ARDUINO_ARC32_TOOLS)
-
223  // Intel Curie
-
224  #define RADIOLIB_PLATFORM "Intel Curie"
-
225  #define RADIOLIB_PIN_TYPE uint8_t
-
226  #define RADIOLIB_PIN_MODE uint8_t
-
227  #define RADIOLIB_PIN_STATUS uint8_t
-
228  #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS
-
229  #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p)
-
230  #define RADIOLIB_NC (0xFF)
-
231  #define RADIOLIB_DEFAULT_SPI SPI
-
232  #define RADIOLIB_PROGMEM PROGMEM
-
233  #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr)
-
234 
-
235  #elif defined(ARDUINO_AVR_UNO_WIFI_REV2) || defined(ARDUINO_AVR_NANO_EVERY)
-
236  // Arduino megaAVR boards - Uno Wifi Rev.2, Nano Every
-
237  #define RADIOLIB_PLATFORM "Arduino megaAVR"
-
238  #define RADIOLIB_PIN_TYPE uint8_t
-
239  #define RADIOLIB_PIN_MODE PinMode
-
240  #define RADIOLIB_PIN_STATUS PinStatus
-
241  #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS
-
242  #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p)
-
243  #define RADIOLIB_NC (0xFF)
-
244  #define RADIOLIB_DEFAULT_SPI SPI
-
245  #define RADIOLIB_PROGMEM PROGMEM
-
246  #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr)
-
247 
-
248  #elif defined(ARDUINO_ARCH_APOLLO3)
-
249  // Sparkfun Apollo3 boards
-
250  #define RADIOLIB_PLATFORM "Sparkfun Apollo3"
-
251  #define RADIOLIB_PIN_TYPE pin_size_t
-
252  #define RADIOLIB_PIN_MODE Arduino_PinMode
-
253  #define RADIOLIB_PIN_STATUS PinStatus
-
254  #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS
-
255  #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p)
-
256  #define RADIOLIB_NC (0xFF)
-
257  #define RADIOLIB_DEFAULT_SPI SPI
-
258  #define RADIOLIB_PROGMEM PROGMEM
-
259  #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr)
-
260  #define RADIOLIB_SOFTWARE_SERIAL_UNSUPPORTED
-
261  #define RADIOLIB_HARDWARE_SERIAL_PORT Serial1
-
262 
-
263  // Apollo3 uses mbed libraries, which already contain ESP8266 driver
-
264  #define RADIOLIB_EXCLUDE_ESP8266
-
265 
-
266  // slow down SX126x/8x SPI on this platform
-
267  #define RADIOLIB_SPI_SLOWDOWN
-
268 
-
269  #elif defined(ARDUINO_ARDUINO_NANO33BLE)
-
270  // Arduino Nano 33 BLE
-
271  #define RADIOLIB_PLATFORM "Arduino Nano 33 BLE"
-
272  #define RADIOLIB_PIN_TYPE pin_size_t
-
273  #define RADIOLIB_PIN_MODE PinMode
-
274  #define RADIOLIB_PIN_STATUS PinStatus
-
275  #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS
-
276  #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p)
-
277  #define RADIOLIB_NC (0xFF)
-
278  #define RADIOLIB_DEFAULT_SPI SPI
-
279  #define RADIOLIB_PROGMEM PROGMEM
-
280  #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr)
-
281  #define RADIOLIB_SOFTWARE_SERIAL_UNSUPPORTED
-
282  #define RADIOLIB_HARDWARE_SERIAL_PORT Serial1
-
283 
-
284  // Nano 33 BLE uses mbed libraries, which already contain ESP8266 driver
-
285  #define RADIOLIB_EXCLUDE_ESP8266
-
286 
-
287  #elif defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_PORTENTA_H7_M4)
-
288  // Arduino Portenta H7
-
289  #define RADIOLIB_PLATFORM "Portenta H7"
-
290  #define RADIOLIB_PIN_TYPE pin_size_t
-
291  #define RADIOLIB_PIN_MODE PinMode
-
292  #define RADIOLIB_PIN_STATUS PinStatus
-
293  #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS
-
294  #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p)
-
295  #define RADIOLIB_NC (0xFF)
-
296  #define RADIOLIB_DEFAULT_SPI SPI
-
297  #define RADIOLIB_PROGMEM PROGMEM
-
298  #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr)
-
299  #define RADIOLIB_SOFTWARE_SERIAL_UNSUPPORTED
-
300  #define RADIOLIB_HARDWARE_SERIAL_PORT Serial1
-
301 
-
302  // Arduino Portenta H7 uses mbed libraries, which already contain ESP8266 driver
-
303  #define RADIOLIB_EXCLUDE_ESP8266
-
304 
-
305  #elif defined(__STM32F4__) || defined(__STM32F1__)
-
306  // Arduino STM32 core by Roger Clark (https://github.com/rogerclarkmelbourne/Arduino_STM32)
-
307  #define RADIOLIB_PLATFORM "STM32duino (unofficial)"
-
308  #define RADIOLIB_PIN_TYPE uint8_t
-
309  #define RADIOLIB_PIN_MODE WiringPinMode
-
310  #define RADIOLIB_PIN_STATUS uint8_t
-
311  #define RADIOLIB_INTERRUPT_STATUS ExtIntTriggerMode
-
312  #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p)
-
313  #define RADIOLIB_NC (0xFF)
-
314  #define RADIOLIB_DEFAULT_SPI SPI
-
315  #define RADIOLIB_PROGMEM PROGMEM
-
316  #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr)
-
317  #define RADIOLIB_SOFTWARE_SERIAL_UNSUPPORTED
-
318  #define RADIOLIB_HARDWARE_SERIAL_PORT Serial1
-
319 
-
320  #elif defined(ARDUINO_ARCH_MEGAAVR)
-
321  // MegaCoreX by MCUdude (https://github.com/MCUdude/MegaCoreX)
-
322  #define RADIOLIB_PLATFORM "MegaCoreX"
-
323  #define RADIOLIB_PIN_TYPE uint8_t
-
324  #define RADIOLIB_PIN_MODE uint8_t
-
325  #define RADIOLIB_PIN_STATUS uint8_t
-
326  #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS
-
327  #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p)
-
328  #define RADIOLIB_NC (0xFF)
-
329  #define RADIOLIB_DEFAULT_SPI SPI
-
330  #define RADIOLIB_PROGMEM PROGMEM
-
331  #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr)
-
332 
-
333  #elif defined(ARDUINO_ARCH_RP2040)
-
334  // Raspberry Pi Pico
-
335  #define RADIOLIB_PLATFORM "Raspberry Pi Pico"
-
336  #define RADIOLIB_PIN_TYPE pin_size_t
-
337  #define RADIOLIB_PIN_MODE PinMode
-
338  #define RADIOLIB_PIN_STATUS PinStatus
-
339  #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS
-
340  #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p)
-
341  #define RADIOLIB_NC (0xFF)
-
342  #define RADIOLIB_DEFAULT_SPI SPI
-
343  #define RADIOLIB_PROGMEM PROGMEM
-
344  #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr)
-
345  #define RADIOLIB_SOFTWARE_SERIAL_UNSUPPORTED
-
346  #define RADIOLIB_HARDWARE_SERIAL_PORT Serial1
-
347  #define RADIOLIB_EXCLUDE_ESP8266
+
123  // RadioLib has ESP8266 driver, this must be disabled to use ESP8266 as platform
+
124  #define RADIOLIB_EXCLUDE_ESP8266
+
125  #define RADIOLIB_EXCLUDE_HTTP
+
126 
+
127  #elif defined(ESP32)
+
128  // ESP32 boards
+
129  #define RADIOLIB_PLATFORM "ESP32"
+
130  #define RADIOLIB_PIN_TYPE uint8_t
+
131  #define RADIOLIB_PIN_MODE uint8_t
+
132  #define RADIOLIB_PIN_STATUS uint8_t
+
133  #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS
+
134  #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p)
+
135  #define RADIOLIB_NC (0xFF)
+
136  #define RADIOLIB_DEFAULT_SPI SPI
+
137  #define RADIOLIB_PROGMEM PROGMEM
+
138  #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr)
+
139  #define RADIOLIB_TYPE_ALIAS(type, alias) using alias = type;
+
140  #define RADIOLIB_SOFTWARE_SERIAL_UNSUPPORTED
+
141  #define RADIOLIB_HARDWARE_SERIAL_PORT Serial1
+
142 
+
143  // ESP32 doesn't support tone(), but it can be emulated via LED control peripheral
+
144  #define RADIOLIB_TONE_UNSUPPORTED
+
145  #define RADIOLIB_TONE_ESP32_CHANNEL (1)
+
146 
+
147  #elif defined(ARDUINO_ARCH_STM32)
+
148  // official STM32 Arduino core (https://github.com/stm32duino/Arduino_Core_STM32)
+
149  #define RADIOLIB_PLATFORM "Arduino STM32 (official)"
+
150  #define RADIOLIB_PIN_TYPE uint32_t
+
151  #define RADIOLIB_PIN_MODE uint32_t
+
152  #define RADIOLIB_PIN_STATUS uint32_t
+
153  #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS
+
154  #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p)
+
155  #define RADIOLIB_NC (0xFFFFFFFF)
+
156  #define RADIOLIB_DEFAULT_SPI SPI
+
157  #define RADIOLIB_PROGMEM PROGMEM
+
158  #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr)
+
159  #define RADIOLIB_TYPE_ALIAS(type, alias) using alias = type;
+
160  #define RADIOLIB_SOFTWARE_SERIAL_UNSUPPORTED
+
161  #define RADIOLIB_HARDWARE_SERIAL_PORT Serial1
+
162 
+
163  // slow down SX126x/8x SPI on this platform
+
164  #define RADIOLIB_SPI_SLOWDOWN
+
165 
+
166  #elif defined(SAMD_SERIES)
+
167  // Adafruit SAMD boards (M0 and M4)
+
168  #define RADIOLIB_PLATFORM "Adafruit SAMD"
+
169  #define RADIOLIB_PIN_TYPE uint32_t
+
170  #define RADIOLIB_PIN_MODE uint32_t
+
171  #define RADIOLIB_PIN_STATUS uint32_t
+
172  #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS
+
173  #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p)
+
174  #define RADIOLIB_NC (0xFFFFFFFF)
+
175  #define RADIOLIB_DEFAULT_SPI SPI
+
176  #define RADIOLIB_PROGMEM PROGMEM
+
177  #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr)
+
178  #define RADIOLIB_TYPE_ALIAS(type, alias) using alias = type;
+
179  #define RADIOLIB_SOFTWARE_SERIAL_UNSUPPORTED
+
180  #define RADIOLIB_HARDWARE_SERIAL_PORT Serial1
+
181 
+
182  // slow down SX126x/8x SPI on this platform
+
183  #define RADIOLIB_SPI_SLOWDOWN
+
184 
+
185  #elif defined(ARDUINO_ARCH_SAMD)
+
186  // Arduino SAMD (Zero, MKR, etc.)
+
187  #define RADIOLIB_PLATFORM "Arduino SAMD"
+
188  #define RADIOLIB_PIN_TYPE pin_size_t
+
189  #define RADIOLIB_PIN_MODE PinMode
+
190  #define RADIOLIB_PIN_STATUS PinStatus
+
191  #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS
+
192  #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p)
+
193  #define RADIOLIB_NC (0xFF)
+
194  #define RADIOLIB_DEFAULT_SPI SPI
+
195  #define RADIOLIB_PROGMEM PROGMEM
+
196  #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr)
+
197  #define RADIOLIB_TYPE_ALIAS(type, alias) using alias = type;
+
198  #define RADIOLIB_SOFTWARE_SERIAL_UNSUPPORTED
+
199  #define RADIOLIB_HARDWARE_SERIAL_PORT Serial1
+
200 
+
201  #elif defined(__SAM3X8E__)
+
202  // Arduino Due
+
203  #define RADIOLIB_PLATFORM "Arduino Due"
+
204  #define RADIOLIB_PIN_TYPE uint32_t
+
205  #define RADIOLIB_PIN_MODE uint32_t
+
206  #define RADIOLIB_PIN_STATUS uint32_t
+
207  #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS
+
208  #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p)
+
209  #define RADIOLIB_NC (0xFFFFFFFF)
+
210  #define RADIOLIB_DEFAULT_SPI SPI
+
211  #define RADIOLIB_PROGMEM PROGMEM
+
212  #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr)
+
213  #define RADIOLIB_TYPE_ALIAS(type, alias) using alias = type;
+
214  #define RADIOLIB_SOFTWARE_SERIAL_UNSUPPORTED
+
215  #define RADIOLIB_HARDWARE_SERIAL_PORT Serial1
+
216  #define RADIOLIB_TONE_UNSUPPORTED
+
217 
+
218  #elif (defined(NRF52832_XXAA) || defined(NRF52840_XXAA)) && !defined(ARDUINO_ARDUINO_NANO33BLE)
+
219  // Adafruit nRF52 boards
+
220  #define RADIOLIB_PLATFORM "Adafruit nRF52"
+
221  #define RADIOLIB_PIN_TYPE uint32_t
+
222  #define RADIOLIB_PIN_MODE uint32_t
+
223  #define RADIOLIB_PIN_STATUS uint32_t
+
224  #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS
+
225  #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p)
+
226  #define RADIOLIB_NC (0xFFFFFFFF)
+
227  #define RADIOLIB_DEFAULT_SPI SPI
+
228  #define RADIOLIB_PROGMEM PROGMEM
+
229  #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr)
+
230  #define RADIOLIB_TYPE_ALIAS(type, alias) using alias = type;
+
231 
+
232  #elif defined(ARDUINO_ARC32_TOOLS)
+
233  // Intel Curie
+
234  #define RADIOLIB_PLATFORM "Intel Curie"
+
235  #define RADIOLIB_PIN_TYPE uint8_t
+
236  #define RADIOLIB_PIN_MODE uint8_t
+
237  #define RADIOLIB_PIN_STATUS uint8_t
+
238  #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS
+
239  #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p)
+
240  #define RADIOLIB_NC (0xFF)
+
241  #define RADIOLIB_DEFAULT_SPI SPI
+
242  #define RADIOLIB_PROGMEM PROGMEM
+
243  #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr)
+
244 
+
245  #elif defined(ARDUINO_AVR_UNO_WIFI_REV2) || defined(ARDUINO_AVR_NANO_EVERY)
+
246  // Arduino megaAVR boards - Uno Wifi Rev.2, Nano Every
+
247  #define RADIOLIB_PLATFORM "Arduino megaAVR"
+
248  #define RADIOLIB_PIN_TYPE uint8_t
+
249  #define RADIOLIB_PIN_MODE PinMode
+
250  #define RADIOLIB_PIN_STATUS PinStatus
+
251  #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS
+
252  #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p)
+
253  #define RADIOLIB_NC (0xFF)
+
254  #define RADIOLIB_DEFAULT_SPI SPI
+
255  #define RADIOLIB_PROGMEM PROGMEM
+
256  #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr)
+
257  #define RADIOLIB_TYPE_ALIAS(type, alias) using alias = type;
+
258 
+
259  #elif defined(ARDUINO_ARCH_APOLLO3)
+
260  // Sparkfun Apollo3 boards
+
261  #define RADIOLIB_PLATFORM "Sparkfun Apollo3"
+
262  #define RADIOLIB_PIN_TYPE pin_size_t
+
263  #define RADIOLIB_PIN_MODE Arduino_PinMode
+
264  #define RADIOLIB_PIN_STATUS PinStatus
+
265  #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS
+
266  #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p)
+
267  #define RADIOLIB_NC (0xFF)
+
268  #define RADIOLIB_DEFAULT_SPI SPI
+
269  #define RADIOLIB_PROGMEM PROGMEM
+
270  #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr)
+
271  #define RADIOLIB_TYPE_ALIAS(type, alias) using alias = type;
+
272  #define RADIOLIB_SOFTWARE_SERIAL_UNSUPPORTED
+
273  #define RADIOLIB_HARDWARE_SERIAL_PORT Serial1
+
274 
+
275  // Apollo3 uses mbed libraries, which already contain ESP8266 driver
+
276  #define RADIOLIB_EXCLUDE_ESP8266
+
277 
+
278  // slow down SX126x/8x SPI on this platform
+
279  #define RADIOLIB_SPI_SLOWDOWN
+
280 
+
281  #elif defined(ARDUINO_ARDUINO_NANO33BLE)
+
282  // Arduino Nano 33 BLE
+
283  #define RADIOLIB_PLATFORM "Arduino Nano 33 BLE"
+
284  #define RADIOLIB_PIN_TYPE pin_size_t
+
285  #define RADIOLIB_PIN_MODE PinMode
+
286  #define RADIOLIB_PIN_STATUS PinStatus
+
287  #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS
+
288  #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p)
+
289  #define RADIOLIB_NC (0xFF)
+
290  #define RADIOLIB_DEFAULT_SPI SPI
+
291  #define RADIOLIB_PROGMEM PROGMEM
+
292  #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr)
+
293  #define RADIOLIB_TYPE_ALIAS(type, alias) using alias = type;
+
294  #define RADIOLIB_SOFTWARE_SERIAL_UNSUPPORTED
+
295  #define RADIOLIB_HARDWARE_SERIAL_PORT Serial1
+
296 
+
297  // Nano 33 BLE uses mbed libraries, which already contain ESP8266 driver
+
298  #define RADIOLIB_EXCLUDE_ESP8266
+
299 
+
300  #elif defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_PORTENTA_H7_M4)
+
301  // Arduino Portenta H7
+
302  #define RADIOLIB_PLATFORM "Portenta H7"
+
303  #define RADIOLIB_PIN_TYPE pin_size_t
+
304  #define RADIOLIB_PIN_MODE PinMode
+
305  #define RADIOLIB_PIN_STATUS PinStatus
+
306  #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS
+
307  #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p)
+
308  #define RADIOLIB_NC (0xFF)
+
309  #define RADIOLIB_DEFAULT_SPI SPI
+
310  #define RADIOLIB_PROGMEM PROGMEM
+
311  #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr)
+
312  #define RADIOLIB_TYPE_ALIAS(type, alias) using alias = type;
+
313  #define RADIOLIB_SOFTWARE_SERIAL_UNSUPPORTED
+
314  #define RADIOLIB_HARDWARE_SERIAL_PORT Serial1
+
315 
+
316  // Arduino Portenta H7 uses mbed libraries, which already contain ESP8266 driver
+
317  #define RADIOLIB_EXCLUDE_ESP8266
+
318 
+
319  #elif defined(__STM32F4__) || defined(__STM32F1__)
+
320  // Arduino STM32 core by Roger Clark (https://github.com/rogerclarkmelbourne/Arduino_STM32)
+
321  #define RADIOLIB_PLATFORM "STM32duino (unofficial)"
+
322  #define RADIOLIB_PIN_TYPE uint8_t
+
323  #define RADIOLIB_PIN_MODE WiringPinMode
+
324  #define RADIOLIB_PIN_STATUS uint8_t
+
325  #define RADIOLIB_INTERRUPT_STATUS ExtIntTriggerMode
+
326  #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p)
+
327  #define RADIOLIB_NC (0xFF)
+
328  #define RADIOLIB_DEFAULT_SPI SPI
+
329  #define RADIOLIB_PROGMEM PROGMEM
+
330  #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr)
+
331  #define RADIOLIB_TYPE_ALIAS(type, alias) using alias = type;
+
332  #define RADIOLIB_SOFTWARE_SERIAL_UNSUPPORTED
+
333  #define RADIOLIB_HARDWARE_SERIAL_PORT Serial1
+
334 
+
335  #elif defined(ARDUINO_ARCH_MEGAAVR)
+
336  // MegaCoreX by MCUdude (https://github.com/MCUdude/MegaCoreX)
+
337  #define RADIOLIB_PLATFORM "MegaCoreX"
+
338  #define RADIOLIB_PIN_TYPE uint8_t
+
339  #define RADIOLIB_PIN_MODE uint8_t
+
340  #define RADIOLIB_PIN_STATUS uint8_t
+
341  #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS
+
342  #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p)
+
343  #define RADIOLIB_NC (0xFF)
+
344  #define RADIOLIB_DEFAULT_SPI SPI
+
345  #define RADIOLIB_PROGMEM PROGMEM
+
346  #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr)
+
347  #define RADIOLIB_TYPE_ALIAS(type, alias) using alias = type;
348 
-
349  #else
-
350  // other platforms not covered by the above list - this may or may not work
-
351  #define RADIOLIB_PLATFORM "Unknown"
-
352  #define RADIOLIB_UNKNOWN_PLATFORM
-
353  #define RADIOLIB_PIN_TYPE uint8_t
-
354  #define RADIOLIB_PIN_MODE uint8_t
-
355  #define RADIOLIB_PIN_STATUS uint8_t
-
356  #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS
-
357  #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p)
-
358  #define RADIOLIB_NC (0xFF)
-
359  #define RADIOLIB_DEFAULT_SPI SPI
-
360  #define RADIOLIB_PROGMEM PROGMEM
-
361  #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr)
-
362 
-
363  #endif
-
364 #endif
+
349  #elif defined(ARDUINO_ARCH_RP2040)
+
350  // Raspberry Pi Pico
+
351  #define RADIOLIB_PLATFORM "Raspberry Pi Pico"
+
352  #define RADIOLIB_PIN_TYPE pin_size_t
+
353  #define RADIOLIB_PIN_MODE PinMode
+
354  #define RADIOLIB_PIN_STATUS PinStatus
+
355  #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS
+
356  #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p)
+
357  #define RADIOLIB_NC (0xFF)
+
358  #define RADIOLIB_DEFAULT_SPI SPI
+
359  #define RADIOLIB_PROGMEM PROGMEM
+
360  #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr)
+
361  #define RADIOLIB_TYPE_ALIAS(type, alias) using alias = type;
+
362  #define RADIOLIB_SOFTWARE_SERIAL_UNSUPPORTED
+
363  #define RADIOLIB_HARDWARE_SERIAL_PORT Serial1
+
364  #define RADIOLIB_EXCLUDE_ESP8266
365 
-
366 /*
-
367  * Uncomment to enable debug output.
-
368  * Warning: Debug output will slow down the whole system significantly.
-
369  * Also, it will result in larger compiled binary.
-
370  * Levels: debug - only main info
-
371  * verbose - full transcript of all SPI/UART communication
-
372  */
-
373 
-
374 //#define RADIOLIB_DEBUG
-
375 //#define RADIOLIB_VERBOSE
-
376 
-
377 // set which Serial port should be used for debug output
-
378 #define RADIOLIB_DEBUG_PORT Serial
-
379 
-
380 #if defined(RADIOLIB_DEBUG)
-
381  #define RADIOLIB_DEBUG_PRINT(...) { RADIOLIB_DEBUG_PORT.print(__VA_ARGS__); }
-
382  #define RADIOLIB_DEBUG_PRINTLN(...) { RADIOLIB_DEBUG_PORT.println(__VA_ARGS__); }
-
383 #else
-
384  #define RADIOLIB_DEBUG_PRINT(...) {}
-
385  #define RADIOLIB_DEBUG_PRINTLN(...) {}
-
386 #endif
+
366  #elif defined(__ASR6501__)
+
367  // CubeCell
+
368  #define RADIOLIB_PLATFORM "CubeCell"
+
369  #define RADIOLIB_PIN_TYPE uint8_t
+
370  #define RADIOLIB_PIN_MODE PINMODE
+
371  #define RADIOLIB_PIN_STATUS uint8_t
+
372  #define RADIOLIB_INTERRUPT_STATUS IrqModes
+
373  #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p)
+
374  #define RADIOLIB_NC (0xFF)
+
375  #define RADIOLIB_DEFAULT_SPI SPI
+
376  #define RADIOLIB_PROGMEM PROGMEM
+
377  #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr)
+
378 
+
379  // CubeCell doesn't seem to define nullptr, let's do something like that now
+
380  #define nullptr NULL
+
381 
+
382  // ... and also defines pinMode() as a macro, which is by far the stupidest thing I have seen on Arduino
+
383  #undef pinMode
+
384 
+
385  // ... and uses an outdated GCC which does not support type aliases
+
386  #define RADIOLIB_TYPE_ALIAS(type, alias) typedef class type alias;
387 
-
388 #if defined(RADIOLIB_VERBOSE)
-
389  #define RADIOLIB_VERBOSE_PRINT(...) { RADIOLIB_DEBUG_PORT.print(__VA_ARGS__); }
-
390  #define RADIOLIB_VERBOSE_PRINTLN(...) { RADIOLIB_DEBUG_PORT.println(__VA_ARGS__); }
-
391 #else
-
392  #define RADIOLIB_VERBOSE_PRINT(...) {}
-
393  #define RADIOLIB_VERBOSE_PRINTLN(...) {}
-
394 #endif
-
395 
-
396 /*
-
397  * Uncomment to enable "paranoid" SPI mode
-
398  * Every write to an SPI register using SPI set function will be verified by a subsequent read operation.
-
399  * This improves reliablility, but slightly slows down communication.
-
400  * Note: Enabled by default.
-
401  */
-
402 #define RADIOLIB_SPI_PARANOID
-
403 
-
404 /*
-
405  * Uncomment to enable parameter range checking
-
406  * RadioLib will check provided parameters (such as frequency) against limits determined by the device manufacturer.
-
407  * It is highly advised to keep this macro defined, removing it will allow invalid values to be set,
-
408  * possibly leading to bricked module and/or program crashing.
-
409  * Note: Enabled by default.
-
410  */
-
411 #define RADIOLIB_CHECK_PARAMS
-
412 
-
413 /*
-
414  * Uncomment to enable SX127x errata fix
-
415  * Warning: SX127x errata fix has been reported to cause issues with LoRa bandwidths lower than 62.5 kHz.
-
416  * It should only be enabled if you really are observing some errata-related issue.
-
417  * Note: Disabled by default.
-
418  */
-
419 //#define RADIOLIB_FIX_ERRATA_SX127X
-
420 
-
421 #if defined(RADIOLIB_FIX_ERRATA_SX127X)
-
422  #define RADIOLIB_ERRATA_SX127X(...) { errataFix(__VA_ARGS__); }
-
423 #else
-
424  #define RADIOLIB_ERRATA_SX127X(...) {}
-
425 #endif
-
426 
-
427 /*
-
428  * Uncomment to enable god mode - all methods and member variables in all classes will be made public, thus making them accessible from Arduino code.
-
429  * Warning: Come on, it's called GOD mode - obviously only use this if you know what you're doing.
-
430  * Failure to heed the above warning may result in bricked module.
-
431  */
-
432 //#define RADIOLIB_GODMODE
-
433 
-
434 /*
-
435  * Uncomment to enable low-level hardware access
-
436  * This will make some hardware methods like SPI get/set accessible from the user sketch - think of it as "god mode lite"
-
437  * Warning: RadioLib won't stop you from writing invalid stuff into your device, so it's quite easy to brick your module with this.
-
438  */
-
439 //#define RADIOLIB_LOW_LEVEL
-
440 
-
441 /*
-
442  * Uncomment to enable pre-defined modules when using RadioShield.
-
443  */
-
444 //#define RADIOLIB_RADIOSHIELD
-
445 
-
446 /*
-
447  * Uncomment to enable static-only memory management: no dynamic allocation will be performed.
-
448  * Warning: Large static arrays will be created in some methods. It is not advised to send large packets in this mode.
-
449  */
-
450 //#define RADIOLIB_STATIC_ONLY
-
451 
-
452 // set the size of static arrays to use
-
453 #if !defined(RADIOLIB_STATIC_ARRAY_SIZE)
-
454 #define RADIOLIB_STATIC_ARRAY_SIZE 256
-
455 #endif
-
456 
-
460 #define RADIOLIB_ASSERT(STATEVAR) { if((STATEVAR) != ERR_NONE) { return(STATEVAR); } }
-
461 
-
465 #if defined(RADIOLIB_CHECK_PARAMS)
-
466 #define RADIOLIB_CHECK_RANGE(VAR, MIN, MAX, ERR) { if(!(((VAR) >= (MIN)) && ((VAR) <= (MAX)))) { return(ERR); } }
-
467 #else
-
468 #define RADIOLIB_CHECK_RANGE(VAR, MIN, MAX, ERR) {}
-
469 #endif
-
470 
-
471 // version definitions
-
472 #define RADIOLIB_VERSION_MAJOR (0x04)
-
473 #define RADIOLIB_VERSION_MINOR (0x05)
-
474 #define RADIOLIB_VERSION_PATCH (0x00)
-
475 #define RADIOLIB_VERSION_EXTRA (0x00)
+
388  // ... and it also has no tone(). This platform was designed by an idiot.
+
389  #define RADIOLIB_TONE_UNSUPPORTED
+
390 
+
391  #else
+
392  // other platforms not covered by the above list - this may or may not work
+
393  #define RADIOLIB_PLATFORM "Unknown"
+
394  #define RADIOLIB_UNKNOWN_PLATFORM
+
395  #define RADIOLIB_PIN_TYPE uint8_t
+
396  #define RADIOLIB_PIN_MODE uint8_t
+
397  #define RADIOLIB_PIN_STATUS uint8_t
+
398  #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS
+
399  #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p)
+
400  #define RADIOLIB_NC (0xFF)
+
401  #define RADIOLIB_DEFAULT_SPI SPI
+
402  #define RADIOLIB_PROGMEM PROGMEM
+
403  #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr)
+
404  #define RADIOLIB_TYPE_ALIAS(type, alias) using alias = type;
+
405 
+
406  #endif
+
407 #endif
+
408 
+
409 /*
+
410  * Uncomment to enable debug output.
+
411  * Warning: Debug output will slow down the whole system significantly.
+
412  * Also, it will result in larger compiled binary.
+
413  * Levels: debug - only main info
+
414  * verbose - full transcript of all SPI/UART communication
+
415  */
+
416 
+
417 //#define RADIOLIB_DEBUG
+
418 //#define RADIOLIB_VERBOSE
+
419 
+
420 // set which Serial port should be used for debug output
+
421 #define RADIOLIB_DEBUG_PORT Serial
+
422 
+
423 #if defined(RADIOLIB_DEBUG)
+
424  #define RADIOLIB_DEBUG_PRINT(...) { RADIOLIB_DEBUG_PORT.print(__VA_ARGS__); }
+
425  #define RADIOLIB_DEBUG_PRINTLN(...) { RADIOLIB_DEBUG_PORT.println(__VA_ARGS__); }
+
426 #else
+
427  #define RADIOLIB_DEBUG_PRINT(...) {}
+
428  #define RADIOLIB_DEBUG_PRINTLN(...) {}
+
429 #endif
+
430 
+
431 #if defined(RADIOLIB_VERBOSE)
+
432  #define RADIOLIB_VERBOSE_PRINT(...) { RADIOLIB_DEBUG_PORT.print(__VA_ARGS__); }
+
433  #define RADIOLIB_VERBOSE_PRINTLN(...) { RADIOLIB_DEBUG_PORT.println(__VA_ARGS__); }
+
434 #else
+
435  #define RADIOLIB_VERBOSE_PRINT(...) {}
+
436  #define RADIOLIB_VERBOSE_PRINTLN(...) {}
+
437 #endif
+
438 
+
439 /*
+
440  * Uncomment to enable "paranoid" SPI mode
+
441  * Every write to an SPI register using SPI set function will be verified by a subsequent read operation.
+
442  * This improves reliablility, but slightly slows down communication.
+
443  * Note: Enabled by default.
+
444  */
+
445 #define RADIOLIB_SPI_PARANOID
+
446 
+
447 /*
+
448  * Uncomment to enable parameter range checking
+
449  * RadioLib will check provided parameters (such as frequency) against limits determined by the device manufacturer.
+
450  * It is highly advised to keep this macro defined, removing it will allow invalid values to be set,
+
451  * possibly leading to bricked module and/or program crashing.
+
452  * Note: Enabled by default.
+
453  */
+
454 #define RADIOLIB_CHECK_PARAMS
+
455 
+
456 /*
+
457  * Uncomment to enable SX127x errata fix
+
458  * Warning: SX127x errata fix has been reported to cause issues with LoRa bandwidths lower than 62.5 kHz.
+
459  * It should only be enabled if you really are observing some errata-related issue.
+
460  * Note: Disabled by default.
+
461  */
+
462 //#define RADIOLIB_FIX_ERRATA_SX127X
+
463 
+
464 #if defined(RADIOLIB_FIX_ERRATA_SX127X)
+
465  #define RADIOLIB_ERRATA_SX127X(...) { errataFix(__VA_ARGS__); }
+
466 #else
+
467  #define RADIOLIB_ERRATA_SX127X(...) {}
+
468 #endif
+
469 
+
470 /*
+
471  * Uncomment to enable god mode - all methods and member variables in all classes will be made public, thus making them accessible from Arduino code.
+
472  * Warning: Come on, it's called GOD mode - obviously only use this if you know what you're doing.
+
473  * Failure to heed the above warning may result in bricked module.
+
474  */
+
475 //#define RADIOLIB_GODMODE
476 
-
477 #define RADIOLIB_VERSION ((RADIOLIB_VERSION_MAJOR << 24) | (RADIOLIB_VERSION_MINOR << 16) | (RADIOLIB_VERSION_PATCH << 8) | (RADIOLIB_VERSION_EXTRA))
-
478 
-
479 #endif
+
477 /*
+
478  * Uncomment to enable low-level hardware access
+
479  * This will make some hardware methods like SPI get/set accessible from the user sketch - think of it as "god mode lite"
+
480  * Warning: RadioLib won't stop you from writing invalid stuff into your device, so it's quite easy to brick your module with this.
+
481  */
+
482 //#define RADIOLIB_LOW_LEVEL
+
483 
+
484 /*
+
485  * Uncomment to enable pre-defined modules when using RadioShield.
+
486  */
+
487 //#define RADIOLIB_RADIOSHIELD
+
488 
+
489 /*
+
490  * Uncomment to enable static-only memory management: no dynamic allocation will be performed.
+
491  * Warning: Large static arrays will be created in some methods. It is not advised to send large packets in this mode.
+
492  */
+
493 //#define RADIOLIB_STATIC_ONLY
+
494 
+
495 // set the size of static arrays to use
+
496 #if !defined(RADIOLIB_STATIC_ARRAY_SIZE)
+
497 #define RADIOLIB_STATIC_ARRAY_SIZE 256
+
498 #endif
+
499 
+
503 #define RADIOLIB_ASSERT(STATEVAR) { if((STATEVAR) != ERR_NONE) { return(STATEVAR); } }
+
504 
+
508 #if defined(RADIOLIB_CHECK_PARAMS)
+
509 #define RADIOLIB_CHECK_RANGE(VAR, MIN, MAX, ERR) { if(!(((VAR) >= (MIN)) && ((VAR) <= (MAX)))) { return(ERR); } }
+
510 #else
+
511 #define RADIOLIB_CHECK_RANGE(VAR, MIN, MAX, ERR) {}
+
512 #endif
+
513 
+
514 // version definitions
+
515 #define RADIOLIB_VERSION_MAJOR (0x04)
+
516 #define RADIOLIB_VERSION_MINOR (0x05)
+
517 #define RADIOLIB_VERSION_PATCH (0x00)
+
518 #define RADIOLIB_VERSION_EXTRA (0x00)
+
519 
+
520 #define RADIOLIB_VERSION ((RADIOLIB_VERSION_MAJOR << 24) | (RADIOLIB_VERSION_MINOR << 16) | (RADIOLIB_VERSION_PATCH << 8) | (RADIOLIB_VERSION_EXTRA))
+
521 
+
522 #endif
diff --git a/_i_serial_8h_source.html b/_i_serial_8h_source.html index 506ff222..16253410 100644 --- a/_i_serial_8h_source.html +++ b/_i_serial_8h_source.html @@ -96,49 +96,51 @@ $(document).ready(function(){initNavTree('_i_serial_8h_source.html',''); initRes
13  explicit ISerial(Module* mod);
14 
15  void begin(long);
-
16  void end();
-
17  int peek();
-
18  size_t write(uint8_t);
-
19  int read();
-
20  int available();
-
21  void flush();
-
22 
-
23  #if !defined(ARDUINO_ARCH_MEGAAVR)
-
24  size_t print(const __FlashStringHelper *);
-
25  #endif
-
26  size_t print(const String &);
-
27  size_t print(const char[]);
-
28  size_t print(char);
-
29  size_t print(unsigned char, int = DEC);
-
30  size_t print(int, int = DEC);
-
31  size_t print(unsigned int, int = DEC);
-
32  size_t print(long, int = DEC);
-
33  size_t print(unsigned long, int = DEC);
-
34  size_t print(double, int = 2);
-
35  size_t print(const Printable&);
-
36 
-
37  #if !defined(ARDUINO_ARCH_MEGAAVR)
-
38  size_t println(const __FlashStringHelper *);
-
39  #endif
-
40  size_t println(const String &s);
-
41  size_t println(const char[]);
-
42  size_t println(char);
-
43  size_t println(unsigned char, int = DEC);
-
44  size_t println(int, int = DEC);
-
45  size_t println(unsigned int, int = DEC);
-
46  size_t println(long, int = DEC);
-
47  size_t println(unsigned long, int = DEC);
-
48  size_t println(double, int = 2);
-
49  size_t println(const Printable&);
-
50  size_t println(void);
-
51 
-
52 #if !(defined(RADIOLIB_LOW_LEVEL) || defined(RADIOLIB_GODMODE))
-
53  protected:
-
54 #endif
-
55  Module* _mod;
-
56 };
-
57 
-
58 #endif
+
16  #if !defined(__ASR6501__)
+
17  void end();
+
18  #endif
+
19  int peek();
+
20  size_t write(uint8_t);
+
21  int read();
+
22  int available();
+
23  void flush();
+
24 
+
25  #if !defined(ARDUINO_ARCH_MEGAAVR)
+
26  size_t print(const __FlashStringHelper *);
+
27  #endif
+
28  size_t print(const String &);
+
29  size_t print(const char[]);
+
30  size_t print(char);
+
31  size_t print(unsigned char, int = DEC);
+
32  size_t print(int, int = DEC);
+
33  size_t print(unsigned int, int = DEC);
+
34  size_t print(long, int = DEC);
+
35  size_t print(unsigned long, int = DEC);
+
36  size_t print(double, int = 2);
+
37  size_t print(const Printable&);
+
38 
+
39  #if !defined(ARDUINO_ARCH_MEGAAVR)
+
40  size_t println(const __FlashStringHelper *);
+
41  #endif
+
42  size_t println(const String &s);
+
43  size_t println(const char[]);
+
44  size_t println(char);
+
45  size_t println(unsigned char, int = DEC);
+
46  size_t println(int, int = DEC);
+
47  size_t println(unsigned int, int = DEC);
+
48  size_t println(long, int = DEC);
+
49  size_t println(unsigned long, int = DEC);
+
50  size_t println(double, int = 2);
+
51  size_t println(const Printable&);
+
52  size_t println(void);
+
53 
+
54 #if !(defined(RADIOLIB_LOW_LEVEL) || defined(RADIOLIB_GODMODE))
+
55  protected:
+
56 #endif
+
57  Module* _mod;
+
58 };
+
59 
+
60 #endif
Interface class for Arduino Serial. Only calls the appropriate methods for the active UART interface.
Definition: ISerial.h:11
diff --git a/_module_8h_source.html b/_module_8h_source.html index fc50428b..fb95b563 100644 --- a/_module_8h_source.html +++ b/_module_8h_source.html @@ -257,52 +257,52 @@ $(document).ready(function(){initNavTree('_module_8h_source.html',''); initResiz
517 #endif
-
static void pinMode(RADIOLIB_PIN_TYPE pin, RADIOLIB_PIN_MODE mode)
Arduino core pinMode override that checks RADIOLIB_NC as alias for unused pin.
Definition: Module.cpp:318
+
static void pinMode(RADIOLIB_PIN_TYPE pin, RADIOLIB_PIN_MODE mode)
Arduino core pinMode override that checks RADIOLIB_NC as alias for unused pin.
Definition: Module.cpp:320
RADIOLIB_PIN_TYPE getIrq() const
Access method to get the pin number of interrupt/GPIO.
Definition: Module.h:298
RADIOLIB_PIN_TYPE getRx() const
Access method to get the pin number of UART Rx.
Definition: Module.h:319
-
static RADIOLIB_PIN_STATUS digitalRead(RADIOLIB_PIN_TYPE pin)
Arduino core digitalWrite override that checks RADIOLIB_NC as alias for unused pin.
Definition: Module.cpp:330
-
void SPItransfer(uint8_t cmd, uint8_t reg, uint8_t *dataOut, uint8_t *dataIn, uint8_t numBytes)
SPI single transfer method.
Definition: Module.cpp:271
-
int16_t SPIgetRegValue(uint8_t reg, uint8_t msb=7, uint8_t lsb=0)
SPI read method that automatically masks unused bits. This method is the preferred SPI read mechanism...
Definition: Module.cpp:194
+
static RADIOLIB_PIN_STATUS digitalRead(RADIOLIB_PIN_TYPE pin)
Arduino core digitalWrite override that checks RADIOLIB_NC as alias for unused pin.
Definition: Module.cpp:332
+
void SPItransfer(uint8_t cmd, uint8_t reg, uint8_t *dataOut, uint8_t *dataIn, uint8_t numBytes)
SPI single transfer method.
Definition: Module.cpp:273
+
int16_t SPIgetRegValue(uint8_t reg, uint8_t msb=7, uint8_t lsb=0)
SPI read method that automatically masks unused bits. This method is the preferred SPI read mechanism...
Definition: Module.cpp:196
SPIClass * getSpi() const
Access method to get the SPI interface.
Definition: Module.h:333
SoftwareSerial * ModuleSerial
Internal SoftwareSerial instance.
Definition: Module.h:122
char AtLineFeed[3]
Line feed to be used when sending AT commands. Defaults to CR+LF.
Definition: Module.h:133
-
bool ATgetResponse()
Get response after sending AT command.
Definition: Module.cpp:170
+
bool ATgetResponse()
Get response after sending AT command.
Definition: Module.cpp:172
RADIOLIB_PIN_TYPE getRst() const
Access method to get the pin number of hardware reset pin.
Definition: Module.h:305
uint8_t SPIwriteCommand
Basic SPI write command. Defaults to 0x80.
Definition: Module.h:143
-
bool ATsendData(uint8_t *data, uint32_t len)
Send raw AT data. Will also call ATgetResponse.
Definition: Module.cpp:160
-
static void delay(uint32_t ms)
Arduino core delay override.
Definition: Module.cpp:380
-
static void yield()
Arduino core yield override.
Definition: Module.cpp:376
-
static void digitalWrite(RADIOLIB_PIN_TYPE pin, RADIOLIB_PIN_STATUS value)
Arduino core digitalWrite override that checks RADIOLIB_NC as alias for unused pin.
Definition: Module.cpp:324
-
static uint32_t micros()
Arduino core micros override.
Definition: Module.cpp:392
+
bool ATsendData(uint8_t *data, uint32_t len)
Send raw AT data. Will also call ATgetResponse.
Definition: Module.cpp:162
+
static void delay(uint32_t ms)
Arduino core delay override.
Definition: Module.cpp:384
+
static void yield()
Arduino core yield override.
Definition: Module.cpp:378
+
static void digitalWrite(RADIOLIB_PIN_TYPE pin, RADIOLIB_PIN_STATUS value)
Arduino core digitalWrite override that checks RADIOLIB_NC as alias for unused pin.
Definition: Module.cpp:326
+
static uint32_t micros()
Arduino core micros override.
Definition: Module.cpp:396
RADIOLIB_PIN_TYPE getCs() const
Access method to get the pin number of SPI chip select.
Definition: Module.h:291
-
int16_t SPIsetRegValue(uint8_t reg, uint8_t value, uint8_t msb=7, uint8_t lsb=0, uint8_t checkInterval=2, uint8_t checkMask=0xFF)
Overwrite-safe SPI write method with verification. This method is the preferred SPI write mechanism.
Definition: Module.cpp:204
-
void ATemptyBuffer()
Empty internal AT buffer.
Definition: Module.cpp:147
-
void SPIwriteRegister(uint8_t reg, uint8_t data)
SPI basic write method. Use of this method is reserved for special cases, SPIsetRegValue should be us...
Definition: Module.cpp:267
+
int16_t SPIsetRegValue(uint8_t reg, uint8_t value, uint8_t msb=7, uint8_t lsb=0, uint8_t checkInterval=2, uint8_t checkMask=0xFF)
Overwrite-safe SPI write method with verification. This method is the preferred SPI write mechanism.
Definition: Module.cpp:206
+
void ATemptyBuffer()
Empty internal AT buffer.
Definition: Module.cpp:149
+
void SPIwriteRegister(uint8_t reg, uint8_t data)
SPI basic write method. Use of this method is reserved for special cases, SPIsetRegValue should be us...
Definition: Module.cpp:269
void term(uint8_t interface)
Terminate low-level module control.
Definition: Module.cpp:132
-
static void noTone(RADIOLIB_PIN_TYPE pin)
Arduino core noTone override that checks RADIOLIB_NC as alias for unused pin and RADIOLIB_TONE_UNSUPP...
Definition: Module.cpp:353
-
void setRfSwitchPins(RADIOLIB_PIN_TYPE rxEn, RADIOLIB_PIN_TYPE txEn)
Some modules contain external RF switch controlled by two pins. This function gives RadioLib control ...
Definition: Module.cpp:411
+
static void noTone(RADIOLIB_PIN_TYPE pin)
Arduino core noTone override that checks RADIOLIB_NC as alias for unused pin and RADIOLIB_TONE_UNSUPP...
Definition: Module.cpp:355
+
void setRfSwitchPins(RADIOLIB_PIN_TYPE rxEn, RADIOLIB_PIN_TYPE txEn)
Some modules contain external RF switch controlled by two pins. This function gives RadioLib control ...
Definition: Module.cpp:415
RADIOLIB_PIN_TYPE getTx() const
Access method to get the pin number of UART Rx.
Definition: Module.h:326
RADIOLIB_PIN_TYPE getGpio() const
Access method to get the pin number of second interrupt/GPIO.
Definition: Module.h:312
-
static uint16_t flipBits16(uint16_t i)
Function to reflect bits within an integer.
Definition: Module.cpp:403
-
uint8_t SPIreadRegister(uint8_t reg)
SPI basic read method. Use of this method is reserved for special cases, SPIgetRegValue should be use...
Definition: Module.cpp:257
+
static uint16_t flipBits16(uint16_t i)
Function to reflect bits within an integer.
Definition: Module.cpp:407
+
uint8_t SPIreadRegister(uint8_t reg)
SPI basic read method. Use of this method is reserved for special cases, SPIgetRegValue should be use...
Definition: Module.cpp:259
Implements all common low-level SPI/UART methods to control the wireless module. Every module class c...
Definition: Module.h:17
Module(RADIOLIB_PIN_TYPE cs, RADIOLIB_PIN_TYPE irq, RADIOLIB_PIN_TYPE rst)
SPI-based module constructor. Will use the default SPI interface automatically initialize it.
Definition: Module.cpp:16
Module & operator=(const Module &mod)
Overload for assignment operator.
Definition: Module.cpp:91
void init(uint8_t interface)
Initialize low-level module control.
Definition: Module.cpp:108
uint8_t SPIreadCommand
Basic SPI read command. Defaults to 0x00.
Definition: Module.h:138
-
static void detachInterrupt(RADIOLIB_PIN_TYPE interruptNum)
Arduino core detachInterrupt override.
Definition: Module.cpp:372
+
static void detachInterrupt(RADIOLIB_PIN_TYPE interruptNum)
Arduino core detachInterrupt override.
Definition: Module.cpp:374
SPISettings getSpiSettings() const
Access method to get the SPI interface settings.
Definition: Module.h:340
-
void setRfSwitchState(RADIOLIB_PIN_STATUS rxPinState, RADIOLIB_PIN_STATUS txPinState)
Set RF switch state.
Definition: Module.cpp:419
-
void SPIreadRegisterBurst(uint8_t reg, uint8_t numBytes, uint8_t *inBytes)
SPI burst read method.
Definition: Module.cpp:253
-
static void tone(RADIOLIB_PIN_TYPE pin, uint16_t value)
Arduino core tone override that checks RADIOLIB_NC as alias for unused pin and RADIOLIB_TONE_UNSUPPOR...
Definition: Module.cpp:337
-
static uint8_t flipBits(uint8_t b)
Function to reflect bits within a byte.
Definition: Module.cpp:396
+
void setRfSwitchState(RADIOLIB_PIN_STATUS rxPinState, RADIOLIB_PIN_STATUS txPinState)
Set RF switch state.
Definition: Module.cpp:423
+
void SPIreadRegisterBurst(uint8_t reg, uint8_t numBytes, uint8_t *inBytes)
SPI burst read method.
Definition: Module.cpp:255
+
static void tone(RADIOLIB_PIN_TYPE pin, uint16_t value)
Arduino core tone override that checks RADIOLIB_NC as alias for unused pin and RADIOLIB_TONE_UNSUPPOR...
Definition: Module.cpp:339
+
static uint8_t flipBits(uint8_t b)
Function to reflect bits within a byte.
Definition: Module.cpp:400
Extension of Module class for UART-based modules, only exists to distinguish the UART constructor.
Definition: Module.h:497
uint32_t baudrate
Baud rate of SoftwareSerial UART communication. Defaults to 9600 baud.
Definition: Module.h:128
-
static uint32_t millis()
Arduino core millis override.
Definition: Module.cpp:388
-
bool ATsendCommand(const char *cmd)
Send AT command. Will also call ATgetResponse.
Definition: Module.cpp:153
-
static void delayMicroseconds(uint32_t us)
Arduino core delayMicroseconds override.
Definition: Module.cpp:384
-
static void attachInterrupt(RADIOLIB_PIN_TYPE interruptNum, void(*userFunc)(void), RADIOLIB_INTERRUPT_STATUS mode)
Arduino core attachInterrupt override.
Definition: Module.cpp:368
-
void SPIwriteRegisterBurst(uint8_t reg, uint8_t *data, uint8_t numBytes)
SPI burst write method.
Definition: Module.cpp:263
+
static uint32_t millis()
Arduino core millis override.
Definition: Module.cpp:392
+
bool ATsendCommand(const char *cmd)
Send AT command. Will also call ATgetResponse.
Definition: Module.cpp:155
+
static void delayMicroseconds(uint32_t us)
Arduino core delayMicroseconds override.
Definition: Module.cpp:388
+
static void attachInterrupt(RADIOLIB_PIN_TYPE interruptNum, void(*userFunc)(void), RADIOLIB_INTERRUPT_STATUS mode)
Arduino core attachInterrupt override.
Definition: Module.cpp:370
+
void SPIwriteRegisterBurst(uint8_t reg, uint8_t *data, uint8_t numBytes)
SPI burst write method.
Definition: Module.cpp:265