diff --git a/_build_opt_8h_source.html b/_build_opt_8h_source.html
index 110c3a2c..e1c9febf 100644
--- a/_build_opt_8h_source.html
+++ b/_build_opt_8h_source.html
@@ -84,7 +84,7 @@ $(document).ready(function(){initNavTree('_build_opt_8h_source.html','');});
BuildOpt.h
-
1 #ifndef _RADIOLIB_BUILD_OPTIONS_H 2 #define _RADIOLIB_BUILD_OPTIONS_H 7 #error "Unsupported Arduino version (< 1.0.0)" 37 #if defined(RADIOLIB_CUSTOM_PLATFORM) 39 #define RADIOLIB_PLATFORM "Custom" 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) 88 #if defined(__AVR__) && !(defined(ARDUINO_AVR_UNO_WIFI_REV2) || defined(ARDUINO_AVR_NANO_EVERY)) 90 #define RADIOLIB_PLATFORM "Arduino AVR" 91 #define RADIOLIB_PIN_TYPE uint8_t 92 #define RADIOLIB_PIN_MODE uint8_t 93 #define RADIOLIB_PIN_STATUS uint8_t 94 #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS 95 #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p) 96 #define RADIOLIB_NC (0xFF) 97 #define RADIOLIB_DEFAULT_SPI SPI 98 #define RADIOLIB_PROGMEM PROGMEM 99 #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr) 101 #elif defined(ESP8266) 103 #define RADIOLIB_PLATFORM "ESP8266" 104 #define RADIOLIB_PIN_TYPE uint8_t 105 #define RADIOLIB_PIN_MODE uint8_t 106 #define RADIOLIB_PIN_STATUS uint8_t 107 #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS 108 #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p) 109 #define RADIOLIB_NC (0xFF) 110 #define RADIOLIB_DEFAULT_SPI SPI 111 #define RADIOLIB_PROGMEM PROGMEM 112 #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr) 115 #define RADIOLIB_EXCLUDE_ESP8266 119 #define RADIOLIB_PLATFORM "ESP32" 120 #define RADIOLIB_PIN_TYPE uint8_t 121 #define RADIOLIB_PIN_MODE uint8_t 122 #define RADIOLIB_PIN_STATUS uint8_t 123 #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS 124 #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p) 125 #define RADIOLIB_NC (0xFF) 126 #define RADIOLIB_DEFAULT_SPI SPI 127 #define RADIOLIB_PROGMEM PROGMEM 128 #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr) 129 #define RADIOLIB_SOFTWARE_SERIAL_UNSUPPORTED 130 #define RADIOLIB_HARDWARE_SERIAL_PORT Serial1 133 #define RADIOLIB_TONE_UNSUPPORTED 134 #define RADIOLIB_TONE_ESP32_CHANNEL (1) 136 #elif defined(ARDUINO_ARCH_STM32) 138 #define RADIOLIB_PLATFORM "Arduino STM32 (official)" 139 #define RADIOLIB_PIN_TYPE uint32_t 140 #define RADIOLIB_PIN_MODE uint32_t 141 #define RADIOLIB_PIN_STATUS uint32_t 142 #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS 143 #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(digitalPinToPinName(p)) 144 #define RADIOLIB_NC (0xFFFFFFFF) 145 #define RADIOLIB_DEFAULT_SPI SPI 146 #define RADIOLIB_PROGMEM PROGMEM 147 #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr) 148 #define RADIOLIB_SOFTWARE_SERIAL_UNSUPPORTED 149 #define RADIOLIB_HARDWARE_SERIAL_PORT Serial1 151 #elif defined(SAMD_SERIES) 153 #define RADIOLIB_PLATFORM "Arduino/Adafruit SAMD" 154 #define RADIOLIB_PIN_TYPE uint32_t 155 #define RADIOLIB_PIN_MODE uint32_t 156 #define RADIOLIB_PIN_STATUS uint32_t 157 #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS 158 #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p) 159 #define RADIOLIB_NC (0xFFFFFFFF) 160 #define RADIOLIB_DEFAULT_SPI SPI 161 #define RADIOLIB_PROGMEM PROGMEM 162 #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr) 163 #define RADIOLIB_SOFTWARE_SERIAL_UNSUPPORTED 164 #define RADIOLIB_HARDWARE_SERIAL_PORT Serial1 166 #elif defined(__SAM3X8E__) 168 #define RADIOLIB_PLATFORM "Arduino Due" 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_SOFTWARE_SERIAL_UNSUPPORTED 179 #define RADIOLIB_HARDWARE_SERIAL_PORT Serial1 180 #define RADIOLIB_TONE_UNSUPPORTED 182 #elif (defined(NRF52832_XXAA) || defined(NRF52840_XXAA)) && !defined(ARDUINO_ARDUINO_NANO33BLE) 184 #define RADIOLIB_PLATFORM "Adafruit nRF52" 185 #define RADIOLIB_PIN_TYPE uint32_t 186 #define RADIOLIB_PIN_MODE uint32_t 187 #define RADIOLIB_PIN_STATUS uint32_t 188 #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS 189 #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p) 190 #define RADIOLIB_NC (0xFFFFFFFF) 191 #define RADIOLIB_DEFAULT_SPI SPI 192 #define RADIOLIB_PROGMEM PROGMEM 193 #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr) 195 #elif defined(ARDUINO_ARC32_TOOLS) 197 #define RADIOLIB_PLATFORM "Intel Curie" 198 #define RADIOLIB_PIN_TYPE uint8_t 199 #define RADIOLIB_PIN_MODE uint8_t 200 #define RADIOLIB_PIN_STATUS uint8_t 201 #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS 202 #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p) 203 #define RADIOLIB_NC (0xFF) 204 #define RADIOLIB_DEFAULT_SPI SPI 205 #define RADIOLIB_PROGMEM PROGMEM 206 #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr) 208 #elif defined(ARDUINO_AVR_UNO_WIFI_REV2) || defined(ARDUINO_AVR_NANO_EVERY) 210 #define RADIOLIB_PLATFORM "Arduino megaAVR" 211 #define RADIOLIB_PIN_TYPE uint8_t 212 #define RADIOLIB_PIN_MODE PinMode 213 #define RADIOLIB_PIN_STATUS PinStatus 214 #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS 215 #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p) 216 #define RADIOLIB_NC (0xFF) 217 #define RADIOLIB_DEFAULT_SPI SPI 218 #define RADIOLIB_PROGMEM PROGMEM 219 #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr) 221 #elif defined(AM_PART_APOLLO3) 223 #define RADIOLIB_PLATFORM "Sparkfun Artemis" 224 #define RADIOLIB_PIN_TYPE uint8_t 225 #define RADIOLIB_PIN_MODE uint8_t 226 #define RADIOLIB_PIN_STATUS uint8_t 227 #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS 228 #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p) 229 #define RADIOLIB_NC (0xFF) 230 #define RADIOLIB_DEFAULT_SPI SPI 231 #define RADIOLIB_PROGMEM PROGMEM 232 #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr) 233 #define RADIOLIB_SOFTWARE_SERIAL_UNSUPPORTED 234 #define RADIOLIB_HARDWARE_SERIAL_PORT Serial1 236 #elif defined(ARDUINO_ARDUINO_NANO33BLE) 238 #define RADIOLIB_PLATFORM "Arduino Nano 33 BLE" 239 #define RADIOLIB_PIN_TYPE pin_size_t 240 #define RADIOLIB_PIN_MODE PinMode 241 #define RADIOLIB_PIN_STATUS PinStatus 242 #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS 243 #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p) 244 #define RADIOLIB_NC (0xFF) 245 #define RADIOLIB_DEFAULT_SPI SPI 246 #define RADIOLIB_PROGMEM PROGMEM 247 #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr) 248 #define RADIOLIB_SOFTWARE_SERIAL_UNSUPPORTED 249 #define RADIOLIB_HARDWARE_SERIAL_PORT Serial1 252 #define RADIOLIB_EXCLUDE_ESP8266 254 #elif defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_PORTENTA_H7_M4) 256 #define RADIOLIB_PLATFORM "Portenta H7" 257 #define RADIOLIB_PIN_TYPE pin_size_t 258 #define RADIOLIB_PIN_MODE PinMode 259 #define RADIOLIB_PIN_STATUS PinStatus 260 #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS 261 #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p) 262 #define RADIOLIB_NC (0xFF) 263 #define RADIOLIB_DEFAULT_SPI SPI 264 #define RADIOLIB_PROGMEM PROGMEM 265 #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr) 266 #define RADIOLIB_SOFTWARE_SERIAL_UNSUPPORTED 267 #define RADIOLIB_HARDWARE_SERIAL_PORT Serial1 270 #define RADIOLIB_EXCLUDE_ESP8266 272 #elif defined(__STM32F4__) || defined(__STM32F1__) 274 #define RADIOLIB_PLATFORM "STM32duino (unofficial)" 275 #define RADIOLIB_PIN_TYPE uint8_t 276 #define RADIOLIB_PIN_MODE WiringPinMode 277 #define RADIOLIB_PIN_STATUS uint8_t 278 #define RADIOLIB_INTERRUPT_STATUS ExtIntTriggerMode 279 #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p) 280 #define RADIOLIB_NC (0xFF) 281 #define RADIOLIB_DEFAULT_SPI SPI 282 #define RADIOLIB_PROGMEM PROGMEM 283 #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr) 284 #define RADIOLIB_SOFTWARE_SERIAL_UNSUPPORTED 285 #define RADIOLIB_HARDWARE_SERIAL_PORT Serial1 289 #define RADIOLIB_PLATFORM "Unknown" 290 #define RADIOLIB_UNKNOWN_PLATFORM 291 #define RADIOLIB_PIN_TYPE uint8_t 292 #define RADIOLIB_PIN_MODE uint8_t 293 #define RADIOLIB_PIN_STATUS uint8_t 294 #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS 295 #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p) 296 #define RADIOLIB_NC (0xFF) 297 #define RADIOLIB_DEFAULT_SPI SPI 298 #define RADIOLIB_PROGMEM PROGMEM 299 #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr) 316 #define RADIOLIB_DEBUG_PORT Serial 318 #if defined(RADIOLIB_DEBUG) 319 #define RADIOLIB_DEBUG_PRINT(...) { RADIOLIB_DEBUG_PORT.print(__VA_ARGS__); } 320 #define RADIOLIB_DEBUG_PRINTLN(...) { RADIOLIB_DEBUG_PORT.println(__VA_ARGS__); } 322 #define RADIOLIB_DEBUG_PRINT(...) {} 323 #define RADIOLIB_DEBUG_PRINTLN(...) {} 326 #if defined(RADIOLIB_VERBOSE) 327 #define RADIOLIB_VERBOSE_PRINT(...) { RADIOLIB_DEBUG_PORT.print(__VA_ARGS__); } 328 #define RADIOLIB_VERBOSE_PRINTLN(...) { RADIOLIB_DEBUG_PORT.println(__VA_ARGS__); } 330 #define RADIOLIB_VERBOSE_PRINT(...) {} 331 #define RADIOLIB_VERBOSE_PRINTLN(...) {} 354 #if !defined(RADIOLIB_STATIC_ARRAY_SIZE) 355 #define RADIOLIB_STATIC_ARRAY_SIZE 256 361 #define RADIOLIB_ASSERT(STATEVAR) { if((STATEVAR) != ERR_NONE) { return(STATEVAR); } } 366 #define RADIOLIB_CHECK_RANGE(VAR, MIN, MAX, ERR) { if(!(((VAR) >= (MIN)) && ((VAR) <= (MAX)))) { return(ERR); } } 370 #define RADIOLIB_VERSION_MAJOR (0x04) 371 #define RADIOLIB_VERSION_MINOR (0x00) 372 #define RADIOLIB_VERSION_PATCH (0x06) 373 #define RADIOLIB_VERSION_EXTRA (0x00) 375 #define RADIOLIB_VERSION ((RADIOLIB_VERSION_MAJOR << 24) | (RADIOLIB_VERSION_MINOR << 16) | (RADIOLIB_VERSION_PATCH << 8) | (RADIOLIB_VERSION_EXTRA))
+ 1 #ifndef _RADIOLIB_BUILD_OPTIONS_H 2 #define _RADIOLIB_BUILD_OPTIONS_H 7 #error "Unsupported Arduino version (< 1.0.0)" 37 #if defined(RADIOLIB_CUSTOM_PLATFORM) 39 #define RADIOLIB_PLATFORM "Custom" 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) 88 #if defined(__AVR__) && !(defined(ARDUINO_AVR_UNO_WIFI_REV2) || defined(ARDUINO_AVR_NANO_EVERY) || defined(ARDUINO_ARCH_MEGAAVR)) 90 #define RADIOLIB_PLATFORM "Arduino AVR" 91 #define RADIOLIB_PIN_TYPE uint8_t 92 #define RADIOLIB_PIN_MODE uint8_t 93 #define RADIOLIB_PIN_STATUS uint8_t 94 #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS 95 #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p) 96 #define RADIOLIB_NC (0xFF) 97 #define RADIOLIB_DEFAULT_SPI SPI 98 #define RADIOLIB_PROGMEM PROGMEM 99 #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr) 101 #elif defined(ESP8266) 103 #define RADIOLIB_PLATFORM "ESP8266" 104 #define RADIOLIB_PIN_TYPE uint8_t 105 #define RADIOLIB_PIN_MODE uint8_t 106 #define RADIOLIB_PIN_STATUS uint8_t 107 #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS 108 #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p) 109 #define RADIOLIB_NC (0xFF) 110 #define RADIOLIB_DEFAULT_SPI SPI 111 #define RADIOLIB_PROGMEM PROGMEM 112 #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr) 115 #define RADIOLIB_EXCLUDE_ESP8266 119 #define RADIOLIB_PLATFORM "ESP32" 120 #define RADIOLIB_PIN_TYPE uint8_t 121 #define RADIOLIB_PIN_MODE uint8_t 122 #define RADIOLIB_PIN_STATUS uint8_t 123 #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS 124 #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p) 125 #define RADIOLIB_NC (0xFF) 126 #define RADIOLIB_DEFAULT_SPI SPI 127 #define RADIOLIB_PROGMEM PROGMEM 128 #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr) 129 #define RADIOLIB_SOFTWARE_SERIAL_UNSUPPORTED 130 #define RADIOLIB_HARDWARE_SERIAL_PORT Serial1 133 #define RADIOLIB_TONE_UNSUPPORTED 134 #define RADIOLIB_TONE_ESP32_CHANNEL (1) 136 #elif defined(ARDUINO_ARCH_STM32) 138 #define RADIOLIB_PLATFORM "Arduino STM32 (official)" 139 #define RADIOLIB_PIN_TYPE uint32_t 140 #define RADIOLIB_PIN_MODE uint32_t 141 #define RADIOLIB_PIN_STATUS uint32_t 142 #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS 143 #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(digitalPinToPinName(p)) 144 #define RADIOLIB_NC (0xFFFFFFFF) 145 #define RADIOLIB_DEFAULT_SPI SPI 146 #define RADIOLIB_PROGMEM PROGMEM 147 #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr) 148 #define RADIOLIB_SOFTWARE_SERIAL_UNSUPPORTED 149 #define RADIOLIB_HARDWARE_SERIAL_PORT Serial1 151 #elif defined(SAMD_SERIES) 153 #define RADIOLIB_PLATFORM "Arduino/Adafruit SAMD" 154 #define RADIOLIB_PIN_TYPE uint32_t 155 #define RADIOLIB_PIN_MODE uint32_t 156 #define RADIOLIB_PIN_STATUS uint32_t 157 #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS 158 #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p) 159 #define RADIOLIB_NC (0xFFFFFFFF) 160 #define RADIOLIB_DEFAULT_SPI SPI 161 #define RADIOLIB_PROGMEM PROGMEM 162 #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr) 163 #define RADIOLIB_SOFTWARE_SERIAL_UNSUPPORTED 164 #define RADIOLIB_HARDWARE_SERIAL_PORT Serial1 166 #elif defined(__SAM3X8E__) 168 #define RADIOLIB_PLATFORM "Arduino Due" 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_SOFTWARE_SERIAL_UNSUPPORTED 179 #define RADIOLIB_HARDWARE_SERIAL_PORT Serial1 180 #define RADIOLIB_TONE_UNSUPPORTED 182 #elif (defined(NRF52832_XXAA) || defined(NRF52840_XXAA)) && !defined(ARDUINO_ARDUINO_NANO33BLE) 184 #define RADIOLIB_PLATFORM "Adafruit nRF52" 185 #define RADIOLIB_PIN_TYPE uint32_t 186 #define RADIOLIB_PIN_MODE uint32_t 187 #define RADIOLIB_PIN_STATUS uint32_t 188 #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS 189 #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p) 190 #define RADIOLIB_NC (0xFFFFFFFF) 191 #define RADIOLIB_DEFAULT_SPI SPI 192 #define RADIOLIB_PROGMEM PROGMEM 193 #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr) 195 #elif defined(ARDUINO_ARC32_TOOLS) 197 #define RADIOLIB_PLATFORM "Intel Curie" 198 #define RADIOLIB_PIN_TYPE uint8_t 199 #define RADIOLIB_PIN_MODE uint8_t 200 #define RADIOLIB_PIN_STATUS uint8_t 201 #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS 202 #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p) 203 #define RADIOLIB_NC (0xFF) 204 #define RADIOLIB_DEFAULT_SPI SPI 205 #define RADIOLIB_PROGMEM PROGMEM 206 #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr) 208 #elif defined(ARDUINO_AVR_UNO_WIFI_REV2) || defined(ARDUINO_AVR_NANO_EVERY) 210 #define RADIOLIB_PLATFORM "Arduino megaAVR" 211 #define RADIOLIB_PIN_TYPE uint8_t 212 #define RADIOLIB_PIN_MODE PinMode 213 #define RADIOLIB_PIN_STATUS PinStatus 214 #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS 215 #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p) 216 #define RADIOLIB_NC (0xFF) 217 #define RADIOLIB_DEFAULT_SPI SPI 218 #define RADIOLIB_PROGMEM PROGMEM 219 #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr) 221 #elif defined(AM_PART_APOLLO3) 223 #define RADIOLIB_PLATFORM "Sparkfun Artemis" 224 #define RADIOLIB_PIN_TYPE uint8_t 225 #define RADIOLIB_PIN_MODE uint8_t 226 #define RADIOLIB_PIN_STATUS uint8_t 227 #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS 228 #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p) 229 #define RADIOLIB_NC (0xFF) 230 #define RADIOLIB_DEFAULT_SPI SPI 231 #define RADIOLIB_PROGMEM PROGMEM 232 #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr) 233 #define RADIOLIB_SOFTWARE_SERIAL_UNSUPPORTED 234 #define RADIOLIB_HARDWARE_SERIAL_PORT Serial1 236 #elif defined(ARDUINO_ARDUINO_NANO33BLE) 238 #define RADIOLIB_PLATFORM "Arduino Nano 33 BLE" 239 #define RADIOLIB_PIN_TYPE pin_size_t 240 #define RADIOLIB_PIN_MODE PinMode 241 #define RADIOLIB_PIN_STATUS PinStatus 242 #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS 243 #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p) 244 #define RADIOLIB_NC (0xFF) 245 #define RADIOLIB_DEFAULT_SPI SPI 246 #define RADIOLIB_PROGMEM PROGMEM 247 #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr) 248 #define RADIOLIB_SOFTWARE_SERIAL_UNSUPPORTED 249 #define RADIOLIB_HARDWARE_SERIAL_PORT Serial1 252 #define RADIOLIB_EXCLUDE_ESP8266 254 #elif defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_PORTENTA_H7_M4) 256 #define RADIOLIB_PLATFORM "Portenta H7" 257 #define RADIOLIB_PIN_TYPE pin_size_t 258 #define RADIOLIB_PIN_MODE PinMode 259 #define RADIOLIB_PIN_STATUS PinStatus 260 #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS 261 #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p) 262 #define RADIOLIB_NC (0xFF) 263 #define RADIOLIB_DEFAULT_SPI SPI 264 #define RADIOLIB_PROGMEM PROGMEM 265 #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr) 266 #define RADIOLIB_SOFTWARE_SERIAL_UNSUPPORTED 267 #define RADIOLIB_HARDWARE_SERIAL_PORT Serial1 270 #define RADIOLIB_EXCLUDE_ESP8266 272 #elif defined(__STM32F4__) || defined(__STM32F1__) 274 #define RADIOLIB_PLATFORM "STM32duino (unofficial)" 275 #define RADIOLIB_PIN_TYPE uint8_t 276 #define RADIOLIB_PIN_MODE WiringPinMode 277 #define RADIOLIB_PIN_STATUS uint8_t 278 #define RADIOLIB_INTERRUPT_STATUS ExtIntTriggerMode 279 #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p) 280 #define RADIOLIB_NC (0xFF) 281 #define RADIOLIB_DEFAULT_SPI SPI 282 #define RADIOLIB_PROGMEM PROGMEM 283 #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr) 284 #define RADIOLIB_SOFTWARE_SERIAL_UNSUPPORTED 285 #define RADIOLIB_HARDWARE_SERIAL_PORT Serial1 287 #elif defined(ARDUINO_ARCH_MEGAAVR) 289 #define RADIOLIB_PLATFORM "MegaCoreX" 290 #define RADIOLIB_PIN_TYPE uint8_t 291 #define RADIOLIB_PIN_MODE uint8_t 292 #define RADIOLIB_PIN_STATUS uint8_t 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) 302 #define RADIOLIB_PLATFORM "Unknown" 303 #define RADIOLIB_UNKNOWN_PLATFORM 304 #define RADIOLIB_PIN_TYPE uint8_t 305 #define RADIOLIB_PIN_MODE uint8_t 306 #define RADIOLIB_PIN_STATUS uint8_t 307 #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS 308 #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p) 309 #define RADIOLIB_NC (0xFF) 310 #define RADIOLIB_DEFAULT_SPI SPI 311 #define RADIOLIB_PROGMEM PROGMEM 312 #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr) 329 #define RADIOLIB_DEBUG_PORT Serial 331 #if defined(RADIOLIB_DEBUG) 332 #define RADIOLIB_DEBUG_PRINT(...) { RADIOLIB_DEBUG_PORT.print(__VA_ARGS__); } 333 #define RADIOLIB_DEBUG_PRINTLN(...) { RADIOLIB_DEBUG_PORT.println(__VA_ARGS__); } 335 #define RADIOLIB_DEBUG_PRINT(...) {} 336 #define RADIOLIB_DEBUG_PRINTLN(...) {} 339 #if defined(RADIOLIB_VERBOSE) 340 #define RADIOLIB_VERBOSE_PRINT(...) { RADIOLIB_DEBUG_PORT.print(__VA_ARGS__); } 341 #define RADIOLIB_VERBOSE_PRINTLN(...) { RADIOLIB_DEBUG_PORT.println(__VA_ARGS__); } 343 #define RADIOLIB_VERBOSE_PRINT(...) {} 344 #define RADIOLIB_VERBOSE_PRINTLN(...) {} 367 #if !defined(RADIOLIB_STATIC_ARRAY_SIZE) 368 #define RADIOLIB_STATIC_ARRAY_SIZE 256 374 #define RADIOLIB_ASSERT(STATEVAR) { if((STATEVAR) != ERR_NONE) { return(STATEVAR); } } 379 #define RADIOLIB_CHECK_RANGE(VAR, MIN, MAX, ERR) { if(!(((VAR) >= (MIN)) && ((VAR) <= (MAX)))) { return(ERR); } } 383 #define RADIOLIB_VERSION_MAJOR (0x04) 384 #define RADIOLIB_VERSION_MINOR (0x00) 385 #define RADIOLIB_VERSION_PATCH (0x06) 386 #define RADIOLIB_VERSION_EXTRA (0x00) 388 #define RADIOLIB_VERSION ((RADIOLIB_VERSION_MAJOR << 24) | (RADIOLIB_VERSION_MINOR << 16) | (RADIOLIB_VERSION_PATCH << 8) | (RADIOLIB_VERSION_EXTRA))
diff --git a/_h_c05_8h_source.html b/_h_c05_8h_source.html
index 2d476aa7..cda37e15 100644
--- a/_h_c05_8h_source.html
+++ b/_h_c05_8h_source.html
@@ -87,7 +87,7 @@ $(document).ready(function(){initNavTree('_h_c05_8h_source.html','');});
1 #if !defined(_RADIOLIB_HC05_H) && !defined(RADIOLIB_EXCLUDE_HC05) 2 #define _RADIOLIB_HC05_H 4 #include "../../ISerial.h" 26 void begin(
long speed);
HC05(Module *mod)
Default constructor.
Definition: HC05.cpp:4
void begin(long speed)
Initialization method.
Definition: HC05.cpp:8
Implements all common low-level SPI/UART/I2C methods to control the wireless module. Every module class contains one private instance of this class.
Definition: Module.h:17
-
Interface class for Arduino Serial. Only calls the appropriate methods for the active UART interface...
Definition: ISerial.h:16
+
Interface class for Arduino Serial. Only calls the appropriate methods for the active UART interface...
Definition: ISerial.h:11
Control class for HC05 module. Most methods supported by this module are implemented in ISerial inter...
Definition: HC05.h:12
diff --git a/_i_serial_8h_source.html b/_i_serial_8h_source.html
index e302bdfd..535b4c1f 100644
--- a/_i_serial_8h_source.html
+++ b/_i_serial_8h_source.html
@@ -84,8 +84,8 @@ $(document).ready(function(){initNavTree('_i_serial_8h_source.html','');});
ISerial.h
-
1 #ifndef _RADIOLIB_ISERIAL_H 2 #define _RADIOLIB_ISERIAL_H 23 size_t write(uint8_t);
28 size_t print(
const __FlashStringHelper *);
29 size_t print(
const String &);
30 size_t print(
const char[]);
32 size_t print(
unsigned char,
int = DEC);
33 size_t print(
int,
int = DEC);
34 size_t print(
unsigned int,
int = DEC);
35 size_t print(
long,
int = DEC);
36 size_t print(
unsigned long,
int = DEC);
37 size_t print(
double,
int = 2);
38 size_t print(
const Printable&);
40 size_t println(
const __FlashStringHelper *);
41 size_t println(
const String &s);
42 size_t println(
const char[]);
44 size_t println(
unsigned char,
int = DEC);
45 size_t println(
int,
int = DEC);
46 size_t println(
unsigned int,
int = DEC);
47 size_t println(
long,
int = DEC);
48 size_t println(
unsigned long,
int = DEC);
49 size_t println(
double,
int = 2);
50 size_t println(
const Printable&);
53 #ifndef RADIOLIB_GODMODE Implements all common low-level SPI/UART/I2C methods to control the wireless module. Every module class contains one private instance of this class.
Definition: Module.h:17
-
Interface class for Arduino Serial. Only calls the appropriate methods for the active UART interface...
Definition: ISerial.h:16
+
1 #ifndef _RADIOLIB_ISERIAL_H 2 #define _RADIOLIB_ISERIAL_H 18 size_t write(uint8_t);
23 #ifndef ARDUINO_ARCH_MEGAAVR 24 size_t print(
const __FlashStringHelper *);
26 size_t print(
const String &);
27 size_t print(
const 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&);
37 #ifndef ARDUINO_ARCH_MEGAAVR 38 size_t println(
const __FlashStringHelper *);
40 size_t println(
const String &s);
41 size_t println(
const 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&);
52 #ifndef RADIOLIB_GODMODE Implements all common low-level SPI/UART/I2C methods to control the wireless module. Every module class contains one private instance of this class.
Definition: Module.h:17
+
Interface class for Arduino Serial. Only calls the appropriate methods for the active UART interface...
Definition: ISerial.h:11
diff --git a/_j_d_y08_8h_source.html b/_j_d_y08_8h_source.html
index 9a36b0b9..ec3d9b93 100644
--- a/_j_d_y08_8h_source.html
+++ b/_j_d_y08_8h_source.html
@@ -88,7 +88,7 @@ $(document).ready(function(){initNavTree('_j_d_y08_8h_source.html','');});
void begin(long speed)
Initialization method.
Definition: JDY08.cpp:8
JDY08(Module *mod)
Default constructor.
Definition: JDY08.cpp:4
Implements all common low-level SPI/UART/I2C methods to control the wireless module. Every module class contains one private instance of this class.
Definition: Module.h:17
-Interface class for Arduino Serial. Only calls the appropriate methods for the active UART interface...
Definition: ISerial.h:16
+Interface class for Arduino Serial. Only calls the appropriate methods for the active UART interface...
Definition: ISerial.h:11
diff --git a/_x_bee_8h_source.html b/_x_bee_8h_source.html
index 9732776f..8fd897f2 100644
--- a/_x_bee_8h_source.html
+++ b/_x_bee_8h_source.html
@@ -88,7 +88,7 @@ $(document).ready(function(){initNavTree('_x_bee_8h_source.html','');});
int16_t setDestinationAddress(const char *destinationAddressHigh, const char *destinationAddressLow)
Sets destination XBee address.
Definition: XBee.cpp:226
XBee Serial interface. This class is used for XBees in transparent mode, i.e. when two XBees act as a...
Definition: XBee.h:39
Implements all common low-level SPI/UART/I2C methods to control the wireless module. Every module class contains one private instance of this class.
Definition: Module.h:17
-Interface class for Arduino Serial. Only calls the appropriate methods for the active UART interface...
Definition: ISerial.h:16
+Interface class for Arduino Serial. Only calls the appropriate methods for the active UART interface...
Definition: ISerial.h:11
XBeeSerial(Module *mod)
Default constructor.
Definition: XBee.cpp:180
Control class for XBee modules.
Definition: XBee.h:96
void reset()
Resets module using interrupt/GPIO pin 1.
Definition: XBee.cpp:218