diff --git a/_a_f_s_k_8h_source.html b/_a_f_s_k_8h_source.html index d11b287c..a375bb5a 100644 --- a/_a_f_s_k_8h_source.html +++ b/_a_f_s_k_8h_source.html @@ -91,7 +91,7 @@ $(document).ready(function(){initNavTree('_a_f_s_k_8h_source.html',''); initResi
3 
4 #include "../../TypeDef.h"
5 
-
6 #if !defined(RADIOLIB_EXCLUDE_AFSK)
+
6 #if !RADIOLIB_EXCLUDE_AFSK
7 
8 #include "../../Module.h"
9 
@@ -109,7 +109,7 @@ $(document).ready(function(){initNavTree('_a_f_s_k_8h_source.html',''); initResi
44 
50  int16_t noTone(bool keepOn = false);
51 
-
52 #if !defined(RADIOLIB_GODMODE)
+
52 #if !RADIOLIB_GODMODE
53  private:
54 #endif
55  PhysicalLayer* phyLayer;
diff --git a/_a_p_r_s_8h_source.html b/_a_p_r_s_8h_source.html index 35c9021a..4c0520fd 100644 --- a/_a_p_r_s_8h_source.html +++ b/_a_p_r_s_8h_source.html @@ -91,7 +91,7 @@ $(document).ready(function(){initNavTree('_a_p_r_s_8h_source.html',''); initResi
3 
4 #include "../../TypeDef.h"
5 
-
6 #if !defined(RADIOLIB_EXCLUDE_APRS)
+
6 #if !RADIOLIB_EXCLUDE_APRS
7 
8 #include "../PhysicalLayer/PhysicalLayer.h"
9 #include "../AX25/AX25.h"
@@ -157,7 +157,7 @@ $(document).ready(function(){initNavTree('_a_p_r_s_8h_source.html',''); initResi
121 
129  int16_t sendFrame(char* destCallsign, uint8_t destSSID, char* info);
130 
-
131 #if !defined(RADIOLIB_GODMODE)
+
131 #if !RADIOLIB_GODMODE
132  private:
133 #endif
134  AX25Client* axClient;
diff --git a/_a_x25_8h_source.html b/_a_x25_8h_source.html index c79f1be2..60e2dd33 100644 --- a/_a_x25_8h_source.html +++ b/_a_x25_8h_source.html @@ -91,7 +91,7 @@ $(document).ready(function(){initNavTree('_a_x25_8h_source.html',''); initResiza
3 
4 #include "../../TypeDef.h"
5 
-
6 #if !defined(RADIOLIB_EXCLUDE_AX25)
+
6 #if !RADIOLIB_EXCLUDE_AX25
7 
8 #include "../PhysicalLayer/PhysicalLayer.h"
9 #include "../AFSK/AFSK.h"
@@ -179,7 +179,7 @@ $(document).ready(function(){initNavTree('_a_x25_8h_source.html',''); initResiza
122 
126  uint16_t sendSeqNumber;
127 
-
128  #if !defined(RADIOLIB_STATIC_ONLY)
+
128  #if !RADIOLIB_STATIC_ONLY
132  uint8_t* info;
133 
137  char** repeaterCallsigns;
@@ -216,7 +216,7 @@ $(document).ready(function(){initNavTree('_a_x25_8h_source.html',''); initResiza
239  public:
244  explicit AX25Client(PhysicalLayer* phy);
245 
-
246  #if !defined(RADIOLIB_EXCLUDE_AFSK)
+
246  #if !RADIOLIB_EXCLUDE_AFSK
251  explicit AX25Client(AFSKClient* audio);
252 
261  int16_t setCorrection(int16_t mark, int16_t space, float length = 1.0f);
@@ -234,13 +234,13 @@ $(document).ready(function(){initNavTree('_a_x25_8h_source.html',''); initResiza
298 
304  int16_t sendFrame(AX25Frame* frame);
305 
-
306 #if !defined(RADIOLIB_GODMODE)
+
306 #if !RADIOLIB_GODMODE
307  private:
308 #endif
309  friend class APRSClient;
310 
311  PhysicalLayer* phyLayer;
-
312  #if !defined(RADIOLIB_EXCLUDE_AFSK)
+
312  #if !RADIOLIB_EXCLUDE_AFSK
313  BellClient* bellModem;
314  #endif
315 
diff --git a/_arduino_hal_8h_source.html b/_arduino_hal_8h_source.html index a8d397ab..df50e681 100644 --- a/_arduino_hal_8h_source.html +++ b/_arduino_hal_8h_source.html @@ -137,7 +137,7 @@ $(document).ready(function(){initNavTree('_arduino_hal_8h_source.html',''); init
62  void yield() override;
63  uint32_t pinToInterrupt(uint32_t pin) override;
64 
-
65 #if !defined(RADIOLIB_GODMODE)
+
65 #if !RADIOLIB_GODMODE
66  private:
67 #endif
68  SPIClass* spi = NULL;
diff --git a/_bell_modem_8h_source.html b/_bell_modem_8h_source.html index fb4921ce..d6531da1 100644 --- a/_bell_modem_8h_source.html +++ b/_bell_modem_8h_source.html @@ -95,7 +95,7 @@ $(document).ready(function(){initNavTree('_bell_modem_8h_source.html',''); initR
7 #include "../../ArduinoHal.h"
8 #endif
9 
-
10 #if !defined(RADIOLIB_EXCLUDE_BELL)
+
10 #if !RADIOLIB_EXCLUDE_BELL
11 
12 #include "../PhysicalLayer/PhysicalLayer.h"
13 #include "../AFSK/AFSK.h"
@@ -141,7 +141,7 @@ $(document).ready(function(){initNavTree('_bell_modem_8h_source.html',''); initR
113 
117  int16_t standby();
118 
-
119 #if !defined(RADIOLIB_GODMODE)
+
119 #if !RADIOLIB_GODMODE
120  private:
121 #endif
122  BellModem_t modemType;
diff --git a/_build_opt_8h_source.html b/_build_opt_8h_source.html index e726c46b..1c7a1642 100644 --- a/_build_opt_8h_source.html +++ b/_build_opt_8h_source.html @@ -89,532 +89,534 @@ $(document).ready(function(){initNavTree('_build_opt_8h_source.html',''); initRe
1 #if !defined(_RADIOLIB_BUILD_OPTIONS_H)
2 #define _RADIOLIB_BUILD_OPTIONS_H
3 
-
4 #if ARDUINO >= 100
-
5  // Arduino build
-
6  #include "Arduino.h"
-
7  #define RADIOLIB_BUILD_ARDUINO
-
8 #else
-
9  // generic build
-
10  #include <stdio.h>
-
11  #define RADIOLIB_BUILD_GENERIC
-
12 #endif
-
13 
-
14 #if defined(RADIOLIB_BUILD_ARDUINO)
-
15 /*
-
16  * Platform-specific configuration.
-
17  *
-
18  * RADIOLIB_PLATFORM - platform name, used in debugging to quickly check the correct platform is detected.
-
19  * RADIOLIB_NC - alias for unused pin, usually the largest possible value of uint8_t.
-
20  * RADIOLIB_DEFAULT_SPI - default SPIClass instance to use.
-
21  * RADIOLIB_NONVOLATILE - macro to place variable into program storage (usually Flash).
-
22  * RADIOLIB_NONVOLATILE_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_TONE_UNSUPPORTED - some platforms do not have tone()/noTone(), which is required for AFSK.
-
25  * RADIOLIB_BUILTIN_MODULE - some platforms have a builtin radio module on fixed pins, this macro is used to specify that pinout.
-
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_ARDUINO,
-
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_ARDUINO
-
36 
-
37 #if defined(RADIOLIB_CUSTOM_ARDUINO)
-
38  // name for your platform
-
39  #define RADIOLIB_PLATFORM "Custom"
-
40 
-
41  // the following must be defined if the Arduino core does not support tone or yield function
-
42  //#define RADIOLIB_TONE_UNSUPPORTED
-
43  //#define RADIOLIB_YIELD_UNSUPPORTED
-
44 
-
45  // in addition, the following macros may be defined if the Arduino core differs from the defaults
-
46  #define RADIOLIB_NC (0xFFFFFFFF)
-
47  #define RADIOLIB_DEFAULT_SPI SPI
-
48  #define RADIOLIB_DEFAULT_SPI_SETTINGS SPISettings(2000000, MSBFIRST, SPI_MODE0)
-
49  #define RADIOLIB_NONVOLATILE PROGMEM
-
50  #define RADIOLIB_NONVOLATILE_READ_BYTE(addr) pgm_read_byte(addr)
-
51  #define RADIOLIB_NONVOLATILE_READ_DWORD(addr) pgm_read_dword(addr)
-
52  #define RADIOLIB_TYPE_ALIAS(type, alias) using alias = type;
-
53 
-
54  // you might also have to define these if the Arduino core has some uncommon pin mode/status types
-
55  #define RADIOLIB_ARDUINOHAL_PIN_MODE_CAST
-
56  #define RADIOLIB_ARDUINOHAL_PIN_STATUS_CAST
-
57  #define RADIOLIB_ARDUINOHAL_INTERRUPT_MODE_CAST
-
58 
-
59  // some of RadioLib drivers may be excluded, to prevent collisions with platforms (or to speed up build process)
-
60  // the following is a complete list of all possible exclusion macros, uncomment any of them to disable that driver
-
61  // NOTE: Some of the exclusion macros are dependent on each other. For example, it is not possible to exclude RF69
-
62  // while keeping SX1231 (because RF69 is the base class for SX1231). The dependency is always uni-directional,
-
63  // so excluding SX1231 and keeping RF69 is valid.
-
64  //#define RADIOLIB_EXCLUDE_CC1101
-
65  //#define RADIOLIB_EXCLUDE_NRF24
-
66  //#define RADIOLIB_EXCLUDE_RF69
-
67  //#define RADIOLIB_EXCLUDE_SX1231 // dependent on RADIOLIB_EXCLUDE_RF69
-
68  //#define RADIOLIB_EXCLUDE_SI443X
-
69  //#define RADIOLIB_EXCLUDE_RFM2X // dependent on RADIOLIB_EXCLUDE_SI443X
-
70  //#define RADIOLIB_EXCLUDE_SX127X
-
71  //#define RADIOLIB_EXCLUDE_SX126X
-
72  //#define RADIOLIB_EXCLUDE_STM32WLX // dependent on RADIOLIB_EXCLUDE_SX126X
-
73  //#define RADIOLIB_EXCLUDE_SX128X
-
74  //#define RADIOLIB_EXCLUDE_AFSK
-
75  //#define RADIOLIB_EXCLUDE_AX25
-
76  //#define RADIOLIB_EXCLUDE_HELLSCHREIBER
-
77  //#define RADIOLIB_EXCLUDE_MORSE
-
78  //#define RADIOLIB_EXCLUDE_RTTY
-
79  //#define RADIOLIB_EXCLUDE_SSTV
-
80  //#define RADIOLIB_EXCLUDE_DIRECT_RECEIVE
+
4 /* RadioLib build configuration options */
+
5 
+
6 /*
+
7  * Debug output enable.
+
8  * Warning: Debug output will slow down the whole system significantly.
+
9  * Also, it will result in larger compiled binary.
+
10  * Levels: debug - only main info
+
11  * verbose - full transcript of all SPI communication
+
12  */
+
13 #if !defined(RADIOLIB_DEBUG)
+
14  #define RADIOLIB_DEBUG (0)
+
15 #endif
+
16 #if !defined(RADIOLIB_VERBOSE)
+
17  #define RADIOLIB_VERBOSE (0)
+
18 #endif
+
19 
+
20 // set which output port should be used for debug output
+
21 // may be Serial port (on Arduino) or file like stdout or stderr (on generic platforms)
+
22 #if !defined(RADIOLIB_DEBUG_PORT)
+
23  #define RADIOLIB_DEBUG_PORT Serial
+
24 #endif
+
25 
+
26 /*
+
27  * Comment to disable "paranoid" SPI mode, or set RADIOLIB_SPI_PARANOID to 0
+
28  * Every write to an SPI register using SPI set function will be verified by a subsequent read operation.
+
29  * This improves reliability, but slightly slows down communication.
+
30  * Note: Enabled by default.
+
31  */
+
32 #if !defined(RADIOLIB_SPI_PARANOID)
+
33  #define RADIOLIB_SPI_PARANOID (1)
+
34 #endif
+
35 
+
36 /*
+
37  * Comment to disable parameter range checking
+
38  * RadioLib will check provided parameters (such as frequency) against limits determined by the device manufacturer.
+
39  * It is highly advised to keep this macro defined, removing it will allow invalid values to be set,
+
40  * possibly leading to bricked module and/or program crashing.
+
41  * Note: Enabled by default.
+
42  */
+
43 #if !defined(RADIOLIB_CHECK_PARAMS)
+
44  #define RADIOLIB_CHECK_PARAMS (1)
+
45 #endif
+
46 
+
47 /*
+
48  * SX127x errata fix enable
+
49  * Warning: SX127x errata fix has been reported to cause issues with LoRa bandwidths lower than 62.5 kHz.
+
50  * It should only be enabled if you really are observing some errata-related issue.
+
51  * Note: Disabled by default.
+
52  */
+
53 #if !defined(RADIOLIB_FIX_ERRATA_SX127X)
+
54  #define RADIOLIB_FIX_ERRATA_SX127X (0)
+
55 #endif
+
56 
+
57 /*
+
58  * God mode enable - all methods and member variables in all classes will be made public, thus making them accessible from Arduino code.
+
59  * Warning: Come on, it's called GOD mode - obviously only use this if you know what you're doing.
+
60  * Failure to heed the above warning may result in bricked module.
+
61  */
+
62 #if !defined(RADIOLIB_GODMODE)
+
63  #define RADIOLIB_GODMODE (0)
+
64 #endif
+
65 
+
66 /*
+
67  * Low-level hardware access enable
+
68  * This will make some hardware methods like SPI get/set accessible from the user sketch - think of it as "god mode lite"
+
69  * Warning: RadioLib won't stop you from writing invalid stuff into your device, so it's quite easy to brick your module with this.
+
70  */
+
71 #if !defined(RADIOLIB_LOW_LEVEL)
+
72  #define RADIOLIB_LOW_LEVEL (0)
+
73 #endif
+
74 
+
75 /*
+
76  * Enable pre-defined modules when using RadioShield, disabled by default.
+
77  */
+
78 #if !defined(RADIOLIB_RADIOSHIELD)
+
79  #define RADIOLIB_RADIOSHIELD (0)
+
80 #endif
81 
-
82 #elif defined(__AVR__) && !(defined(ARDUINO_AVR_UNO_WIFI_REV2) || defined(ARDUINO_AVR_NANO_EVERY) || defined(ARDUINO_ARCH_MEGAAVR))
-
83  // Arduino AVR boards (except for megaAVR) - Uno, Mega etc.
-
84  #define RADIOLIB_PLATFORM "Arduino AVR"
-
85 
-
86  #if !(defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__) || defined(__AVR_ATmega1284__) || defined(__AVR_ATmega1284P__))
-
87  #define RADIOLIB_LOWEND_PLATFORM
-
88  #endif
+
82 /*
+
83  * Enable interrupt-based timing control
+
84  * For details, see https://github.com/jgromes/RadioLib/wiki/Interrupt-Based-Timing
+
85  */
+
86 #if !defined(RADIOLIB_INTERRUPT_TIMING)
+
87  #define RADIOLIB_INTERRUPT_TIMING (0)
+
88 #endif
89 
-
90 #elif defined(ESP8266)
-
91  // ESP8266 boards
-
92  #define RADIOLIB_PLATFORM "ESP8266"
-
93 
-
94 #elif defined(ESP32) || defined(ARDUINO_ARCH_ESP32)
-
95  #define RADIOLIB_ESP32
-
96 
-
97  // ESP32 boards
-
98  #define RADIOLIB_PLATFORM "ESP32"
-
99 
-
100  // ESP32 doesn't support tone(), but it can be emulated via LED control peripheral
-
101  #define RADIOLIB_TONE_UNSUPPORTED
-
102  #define RADIOLIB_TONE_ESP32_CHANNEL (1)
-
103 
-
104 #elif defined(ARDUINO_ARCH_STM32)
-
105  // official STM32 Arduino core (https://github.com/stm32duino/Arduino_Core_STM32)
-
106  #define RADIOLIB_PLATFORM "Arduino STM32 (official)"
-
107 
-
108 #elif defined(SAMD_SERIES)
-
109  // Adafruit SAMD boards (M0 and M4)
-
110  #define RADIOLIB_PLATFORM "Adafruit SAMD"
-
111  #define RADIOLIB_EEPROM_UNSUPPORTED
+
90 /*
+
91  * Enable static-only memory management: no dynamic allocation will be performed.
+
92  * Warning: Large static arrays will be created in some methods. It is not advised to send large packets in this mode.
+
93  */
+
94 #if !defined(RADIOLIB_STATIC_ONLY)
+
95  #define RADIOLIB_STATIC_ONLY (0)
+
96 #endif
+
97 
+
98 // set the size of static arrays to use
+
99 #if !defined(RADIOLIB_STATIC_ARRAY_SIZE)
+
100  #define RADIOLIB_STATIC_ARRAY_SIZE (256)
+
101 #endif
+
102 
+
103 // the base address for persistent storage
+
104 // some protocols (e.g. LoRaWAN) require a method
+
105 // to store some data persistently
+
106 // on Arduino, this will use EEPROM, on non-Arduino platform,
+
107 // it will use anything provided by the hardware abstraction layer
+
108 // RadioLib will place these starting at this address
+
109 #if !defined(RADIOLIB_HAL_PERSISTENT_STORAGE_BASE)
+
110  #define RADIOLIB_HAL_PERSISTENT_STORAGE_BASE (0)
+
111 #endif
112 
-
113 #elif defined(ARDUINO_ARCH_SAMD)
-
114  // Arduino SAMD (Zero, MKR, etc.)
-
115  #define RADIOLIB_PLATFORM "Arduino SAMD"
-
116  #define RADIOLIB_ARDUINOHAL_PIN_MODE_CAST (PinMode)
-
117  #define RADIOLIB_ARDUINOHAL_PIN_STATUS_CAST (PinStatus)
-
118  #define RADIOLIB_ARDUINOHAL_INTERRUPT_MODE_CAST (PinStatus)
-
119  #define RADIOLIB_EEPROM_UNSUPPORTED
-
120 
-
121 #elif defined(__SAM3X8E__)
-
122  // Arduino Due
-
123  #define RADIOLIB_PLATFORM "Arduino Due"
-
124  #define RADIOLIB_TONE_UNSUPPORTED
-
125  #define RADIOLIB_EEPROM_UNSUPPORTED
-
126 
-
127 #elif (defined(NRF52832_XXAA) || defined(NRF52840_XXAA)) && !defined(ARDUINO_ARDUINO_NANO33BLE)
-
128  // Adafruit nRF52 boards
-
129  #define RADIOLIB_PLATFORM "Adafruit nRF52"
-
130  #define RADIOLIB_EEPROM_UNSUPPORTED
-
131 
-
132 #elif defined(ARDUINO_ARC32_TOOLS)
-
133  // Intel Curie
-
134  #define RADIOLIB_PLATFORM "Intel Curie"
-
135 
-
136 #elif defined(ARDUINO_AVR_UNO_WIFI_REV2) || defined(ARDUINO_AVR_NANO_EVERY) || defined(PORTDUINO)
-
137  // Arduino megaAVR boards - Uno Wifi Rev.2, Nano Every
-
138  #define RADIOLIB_PLATFORM "Arduino megaAVR"
+
113 // the amount of space allocated to the persistent storage
+
114 #if !defined(RADIOLIB_HAL_PERSISTENT_STORAGE_SIZE)
+
115  #define RADIOLIB_HAL_PERSISTENT_STORAGE_SIZE (0x0180)
+
116 #endif
+
117 
+
118 /*
+
119  * Uncomment on boards whose clock runs too slow or too fast
+
120  * Set the value according to the following scheme:
+
121  * Enable timestamps on your terminal
+
122  * Print something to terminal, wait 1000 milliseconds, print something again
+
123  * If the difference is e.g. 1014 milliseconds between the prints, set this value to 14
+
124  * Or, for more accuracy, wait for 100,000 milliseconds and divide the total drift by 100
+
125  */
+
126 #if !defined(RADIOLIB_CLOCK_DRIFT_MS)
+
127  //#define RADIOLIB_CLOCK_DRIFT_MS (0)
+
128 #endif
+
129 
+
130 #if ARDUINO >= 100
+
131  // Arduino build
+
132  #include "Arduino.h"
+
133  #define RADIOLIB_BUILD_ARDUINO
+
134 #else
+
135  // generic build
+
136  #include <stdio.h>
+
137  #define RADIOLIB_BUILD_GENERIC
+
138 #endif
139 
-
140 #elif defined(ARDUINO_ARCH_APOLLO3)
-
141  // Sparkfun Apollo3 boards
-
142  #define RADIOLIB_PLATFORM "Sparkfun Apollo3"
-
143  #define RADIOLIB_ARDUINOHAL_PIN_MODE_CAST (Arduino_PinMode)
-
144  #define RADIOLIB_ARDUINOHAL_PIN_STATUS_CAST (PinStatus)
-
145  #define RADIOLIB_ARDUINOHAL_INTERRUPT_MODE_CAST (PinStatus)
-
146 
-
147 #elif defined(ARDUINO_ARDUINO_NANO33BLE)
-
148  // Arduino Nano 33 BLE
-
149  #define RADIOLIB_PLATFORM "Arduino Nano 33 BLE"
-
150  #define RADIOLIB_ARDUINOHAL_PIN_MODE_CAST (PinMode)
-
151  #define RADIOLIB_ARDUINOHAL_PIN_STATUS_CAST (PinStatus)
-
152  #define RADIOLIB_ARDUINOHAL_INTERRUPT_MODE_CAST (PinStatus)
-
153  #define RADIOLIB_EEPROM_UNSUPPORTED
-
154 
-
155  // Arduino mbed OS boards have a really bad tone implementation which will crash after a couple seconds
-
156  #define RADIOLIB_TONE_UNSUPPORTED
-
157  #define RADIOLIB_MBED_TONE_OVERRIDE
-
158 
-
159 #elif defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_PORTENTA_H7_M4)
-
160  // Arduino Portenta H7
-
161  #define RADIOLIB_PLATFORM "Portenta H7"
-
162  #define RADIOLIB_ARDUINOHAL_PIN_MODE_CAST (PinMode)
-
163  #define RADIOLIB_ARDUINOHAL_PIN_STATUS_CAST (PinStatus)
-
164  #define RADIOLIB_ARDUINOHAL_INTERRUPT_MODE_CAST (PinStatus)
-
165  #define RADIOLIB_EEPROM_UNSUPPORTED
+
140 #if defined(RADIOLIB_BUILD_ARDUINO)
+
141 /*
+
142  * Platform-specific configuration.
+
143  *
+
144  * RADIOLIB_PLATFORM - platform name, used in debugging to quickly check the correct platform is detected.
+
145  * RADIOLIB_NC - alias for unused pin, usually the largest possible value of uint8_t.
+
146  * RADIOLIB_DEFAULT_SPI - default SPIClass instance to use.
+
147  * RADIOLIB_NONVOLATILE - macro to place variable into program storage (usually Flash).
+
148  * RADIOLIB_NONVOLATILE_READ_BYTE - function/macro to read variables saved in program storage (usually Flash).
+
149  * RADIOLIB_TYPE_ALIAS - construct to create an alias for a type, usually vai the `using` keyword.
+
150  * RADIOLIB_TONE_UNSUPPORTED - some platforms do not have tone()/noTone(), which is required for AFSK.
+
151  * RADIOLIB_BUILTIN_MODULE - some platforms have a builtin radio module on fixed pins, this macro is used to specify that pinout.
+
152  *
+
153  * In addition, some platforms may require RadioLib to disable specific drivers (such as ESP8266).
+
154  *
+
155  * Users may also specify their own configuration by uncommenting the RADIOLIB_CUSTOM_ARDUINO,
+
156  * and then specifying all platform parameters in the section below. This will override automatic
+
157  * platform detection.
+
158  */
+
159 
+
160  // uncomment to enable custom platform definition
+
161  //#define RADIOLIB_CUSTOM_ARDUINO
+
162 
+
163 #if defined(RADIOLIB_CUSTOM_ARDUINO)
+
164  // name for your platform
+
165  #define RADIOLIB_PLATFORM "Custom"
166 
-
167  // Arduino mbed OS boards have a really bad tone implementation which will crash after a couple seconds
-
168  #define RADIOLIB_TONE_UNSUPPORTED
-
169  #define RADIOLIB_MBED_TONE_OVERRIDE
+
167  // the following must be defined if the Arduino core does not support tone or yield function
+
168  //#define RADIOLIB_TONE_UNSUPPORTED
+
169  //#define RADIOLIB_YIELD_UNSUPPORTED
170 
-
171 #elif defined(__STM32F4__) || defined(__STM32F1__)
-
172  // Arduino STM32 core by Roger Clark (https://github.com/rogerclarkmelbourne/Arduino_STM32)
-
173  #define RADIOLIB_PLATFORM "STM32duino (unofficial)"
-
174  #define RADIOLIB_ARDUINOHAL_PIN_MODE_CAST (WiringPinMode)
-
175  #define RADIOLIB_ARDUINOHAL_INTERRUPT_MODE_CAST (ExtIntTriggerMode)
-
176 
-
177 #elif defined(ARDUINO_ARCH_MEGAAVR)
-
178  // MegaCoreX by MCUdude (https://github.com/MCUdude/MegaCoreX)
-
179  #define RADIOLIB_PLATFORM "MegaCoreX"
-
180 
-
181 #elif defined(ARDUINO_ARCH_MBED_RP2040)
-
182  // Raspberry Pi Pico (official mbed core)
-
183  #define RADIOLIB_PLATFORM "Raspberry Pi Pico"
-
184  #define RADIOLIB_ARDUINOHAL_PIN_MODE_CAST (PinMode)
-
185  #define RADIOLIB_ARDUINOHAL_PIN_STATUS_CAST (PinStatus)
-
186  #define RADIOLIB_ARDUINOHAL_INTERRUPT_MODE_CAST (PinStatus)
-
187  #define RADIOLIB_EEPROM_UNSUPPORTED
-
188 
-
189  // Arduino mbed OS boards have a really bad tone implementation which will crash after a couple seconds
-
190  #define RADIOLIB_TONE_UNSUPPORTED
-
191  #define RADIOLIB_MBED_TONE_OVERRIDE
-
192 
-
193 #elif defined(ARDUINO_ARCH_RP2040)
-
194  // Raspberry Pi Pico (unofficial core)
-
195  #define RADIOLIB_PLATFORM "Raspberry Pi Pico (unofficial)"
-
196  #define RADIOLIB_ARDUINOHAL_PIN_MODE_CAST (PinMode)
-
197  #define RADIOLIB_ARDUINOHAL_PIN_STATUS_CAST (PinStatus)
-
198  #define RADIOLIB_ARDUINOHAL_INTERRUPT_MODE_CAST (PinStatus)
-
199 
-
200 #elif defined(__ASR6501__) || defined(ARDUINO_ARCH_ASR650X) || defined(DARDUINO_ARCH_ASR6601)
-
201  // CubeCell
-
202  #define RADIOLIB_PLATFORM "CubeCell"
-
203  #define RADIOLIB_DEFAULT_SPI_SETTINGS SPISettings(1000000, MSBFIRST, SPI_MODE0) // see issue #709
-
204  #define RADIOLIB_ARDUINOHAL_PIN_MODE_CAST (PINMODE)
-
205  #define RADIOLIB_ARDUINOHAL_INTERRUPT_MODE_CAST (IrqModes)
-
206 
-
207  // provide an easy access to the on-board module
-
208  #include "board-config.h"
-
209  #define RADIOLIB_BUILTIN_MODULE RADIO_NSS, RADIO_DIO_1, RADIO_RESET, RADIO_BUSY
-
210 
-
211  // CubeCell doesn't seem to define nullptr, let's do something like that now
-
212  #define nullptr NULL
-
213 
-
214  // ... and also defines pinMode() as a macro, which is by far the stupidest thing I have seen on Arduino
-
215  #undef pinMode
-
216 
-
217  // ... and uses an outdated GCC which does not support type aliases
-
218  #define RADIOLIB_TYPE_ALIAS(type, alias) typedef class type alias;
+
171  // in addition, the following macros may be defined if the Arduino core differs from the defaults
+
172  #define RADIOLIB_NC (0xFFFFFFFF)
+
173  #define RADIOLIB_DEFAULT_SPI SPI
+
174  #define RADIOLIB_DEFAULT_SPI_SETTINGS SPISettings(2000000, MSBFIRST, SPI_MODE0)
+
175  #define RADIOLIB_NONVOLATILE PROGMEM
+
176  #define RADIOLIB_NONVOLATILE_READ_BYTE(addr) pgm_read_byte(addr)
+
177  #define RADIOLIB_NONVOLATILE_READ_DWORD(addr) pgm_read_dword(addr)
+
178  #define RADIOLIB_TYPE_ALIAS(type, alias) using alias = type;
+
179 
+
180  // you might also have to define these if the Arduino core has some uncommon pin mode/status types
+
181  #define RADIOLIB_ARDUINOHAL_PIN_MODE_CAST
+
182  #define RADIOLIB_ARDUINOHAL_PIN_STATUS_CAST
+
183  #define RADIOLIB_ARDUINOHAL_INTERRUPT_MODE_CAST
+
184 
+
185  // some of RadioLib drivers may be excluded, to prevent collisions with platforms (or to speed up build process)
+
186  // the following is a complete list of all possible exclusion macros, uncomment any of them to disable that driver
+
187  // NOTE: Some of the exclusion macros are dependent on each other. For example, it is not possible to exclude RF69
+
188  // while keeping SX1231 (because RF69 is the base class for SX1231). The dependency is always uni-directional,
+
189  // so excluding SX1231 and keeping RF69 is valid.
+
190  //#define RADIOLIB_EXCLUDE_CC1101 (1)
+
191  //#define RADIOLIB_EXCLUDE_NRF24 (1)
+
192  //#define RADIOLIB_EXCLUDE_RF69 (1)
+
193  //#define RADIOLIB_EXCLUDE_SX1231 (1) // dependent on RADIOLIB_EXCLUDE_RF69
+
194  //#define RADIOLIB_EXCLUDE_SI443X (1)
+
195  //#define RADIOLIB_EXCLUDE_RFM2X (1) // dependent on RADIOLIB_EXCLUDE_SI443X
+
196  //#define RADIOLIB_EXCLUDE_SX127X (1)
+
197  //#define RADIOLIB_EXCLUDE_SX126X (1)
+
198  //#define RADIOLIB_EXCLUDE_STM32WLX (1) // dependent on RADIOLIB_EXCLUDE_SX126X
+
199  //#define RADIOLIB_EXCLUDE_SX128X (1)
+
200  //#define RADIOLIB_EXCLUDE_AFSK (1)
+
201  //#define RADIOLIB_EXCLUDE_AX25 (1)
+
202  //#define RADIOLIB_EXCLUDE_HELLSCHREIBER (1)
+
203  //#define RADIOLIB_EXCLUDE_MORSE (1)
+
204  //#define RADIOLIB_EXCLUDE_RTTY (1)
+
205  //#define RADIOLIB_EXCLUDE_SSTV (1)
+
206  //#define RADIOLIB_EXCLUDE_DIRECT_RECEIVE (1)
+
207 
+
208 #elif defined(__AVR__) && !(defined(ARDUINO_AVR_UNO_WIFI_REV2) || defined(ARDUINO_AVR_NANO_EVERY) || defined(ARDUINO_ARCH_MEGAAVR))
+
209  // Arduino AVR boards (except for megaAVR) - Uno, Mega etc.
+
210  #define RADIOLIB_PLATFORM "Arduino AVR"
+
211 
+
212  #if !(defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__) || defined(__AVR_ATmega1284__) || defined(__AVR_ATmega1284P__))
+
213  #define RADIOLIB_LOWEND_PLATFORM
+
214  #endif
+
215 
+
216 #elif defined(ESP8266)
+
217  // ESP8266 boards
+
218  #define RADIOLIB_PLATFORM "ESP8266"
219 
-
220  // ... and it also has no tone(). This platform was designed by an idiot.
-
221  #define RADIOLIB_TONE_UNSUPPORTED
+
220 #elif defined(ESP32) || defined(ARDUINO_ARCH_ESP32)
+
221  #define RADIOLIB_ESP32
222 
-
223  // ... AND as the (hopefully) final nail in the coffin, IT F*CKING DEFINES YIELD() AS A MACRO THAT DOES NOTHING!!!
-
224  #define RADIOLIB_YIELD_UNSUPPORTED
-
225  #if defined(yield)
-
226  #undef yield
-
227  #endif
-
228 
-
229 #elif defined(RASPI)
-
230  // RaspiDuino framework (https://github.com/me-no-dev/RasPiArduino)
-
231  #define RADIOLIB_PLATFORM "RasPiArduino"
-
232 
-
233  // let's start off easy - no tone on this platform, that can happen
-
234  #define RADIOLIB_TONE_UNSUPPORTED
-
235 
-
236  // hmm, no yield either - weird on something like Raspberry PI, but sure, we can handle it
-
237  #define RADIOLIB_YIELD_UNSUPPORTED
+
223  // ESP32 boards
+
224  #define RADIOLIB_PLATFORM "ESP32"
+
225 
+
226  // ESP32 doesn't support tone(), but it can be emulated via LED control peripheral
+
227  #define RADIOLIB_TONE_UNSUPPORTED
+
228  #define RADIOLIB_TONE_ESP32_CHANNEL (1)
+
229 
+
230 #elif defined(ARDUINO_ARCH_STM32)
+
231  // official STM32 Arduino core (https://github.com/stm32duino/Arduino_Core_STM32)
+
232  #define RADIOLIB_PLATFORM "Arduino STM32 (official)"
+
233 
+
234 #elif defined(SAMD_SERIES)
+
235  // Adafruit SAMD boards (M0 and M4)
+
236  #define RADIOLIB_PLATFORM "Adafruit SAMD"
+
237  #define RADIOLIB_EEPROM_UNSUPPORTED
238 
-
239  // aight, getting to the juicy stuff - PGM_P seems missing, that's the first time
-
240  #define PGM_P const char *
-
241 
-
242  // ... and for the grand finale, we have millis() and micros() DEFINED AS MACROS!
-
243  #if defined(millis)
-
244  #undef millis
-
245  inline unsigned long millis() { return((unsigned long)(STCV / 1000)); };
-
246  #endif
-
247 
-
248  #if defined(micros)
-
249  #undef micros
-
250  inline unsigned long micros() { return((unsigned long)(STCV)); };
-
251  #endif
+
239 #elif defined(ARDUINO_ARCH_SAMD)
+
240  // Arduino SAMD (Zero, MKR, etc.)
+
241  #define RADIOLIB_PLATFORM "Arduino SAMD"
+
242  #define RADIOLIB_ARDUINOHAL_PIN_MODE_CAST (PinMode)
+
243  #define RADIOLIB_ARDUINOHAL_PIN_STATUS_CAST (PinStatus)
+
244  #define RADIOLIB_ARDUINOHAL_INTERRUPT_MODE_CAST (PinStatus)
+
245  #define RADIOLIB_EEPROM_UNSUPPORTED
+
246 
+
247 #elif defined(__SAM3X8E__)
+
248  // Arduino Due
+
249  #define RADIOLIB_PLATFORM "Arduino Due"
+
250  #define RADIOLIB_TONE_UNSUPPORTED
+
251  #define RADIOLIB_EEPROM_UNSUPPORTED
252 
-
253 #elif defined(TEENSYDUINO)
-
254  // Teensy
-
255  #define RADIOLIB_PLATFORM "Teensy"
-
256 
-
257 #elif defined(ARDUINO_ARCH_RENESAS)
-
258  // Arduino Renesas (UNO R4)
-
259  #define RADIOLIB_PLATFORM "Arduino Renesas (UNO R4)"
-
260  #define RADIOLIB_ARDUINOHAL_PIN_MODE_CAST (PinMode)
-
261  #define RADIOLIB_ARDUINOHAL_PIN_STATUS_CAST (PinStatus)
-
262  #define RADIOLIB_ARDUINOHAL_INTERRUPT_MODE_CAST (PinStatus)
-
263 
-
264 #else
-
265  // other Arduino platforms not covered by the above list - this may or may not work
-
266  #define RADIOLIB_PLATFORM "Unknown Arduino"
-
267  #define RADIOLIB_UNKNOWN_PLATFORM
-
268 
-
269 #endif
-
270 
-
271  // set the default values for all macros
-
272  // these will be applied if they were not defined above
-
273  #if !defined(RADIOLIB_NC)
-
274  #define RADIOLIB_NC (0xFFFFFFFF)
-
275  #endif
-
276 
-
277  #if !defined(RADIOLIB_DEFAULT_SPI)
-
278  #define RADIOLIB_DEFAULT_SPI SPI
-
279  #endif
+
253 #elif (defined(NRF52832_XXAA) || defined(NRF52840_XXAA)) && !defined(ARDUINO_ARDUINO_NANO33BLE)
+
254  // Adafruit nRF52 boards
+
255  #define RADIOLIB_PLATFORM "Adafruit nRF52"
+
256  #define RADIOLIB_EEPROM_UNSUPPORTED
+
257 
+
258 #elif defined(ARDUINO_ARC32_TOOLS)
+
259  // Intel Curie
+
260  #define RADIOLIB_PLATFORM "Intel Curie"
+
261 
+
262 #elif defined(ARDUINO_AVR_UNO_WIFI_REV2) || defined(ARDUINO_AVR_NANO_EVERY) || defined(PORTDUINO)
+
263  // Arduino megaAVR boards - Uno Wifi Rev.2, Nano Every
+
264  #define RADIOLIB_PLATFORM "Arduino megaAVR"
+
265 
+
266 #elif defined(ARDUINO_ARCH_APOLLO3)
+
267  // Sparkfun Apollo3 boards
+
268  #define RADIOLIB_PLATFORM "Sparkfun Apollo3"
+
269  #define RADIOLIB_ARDUINOHAL_PIN_MODE_CAST (Arduino_PinMode)
+
270  #define RADIOLIB_ARDUINOHAL_PIN_STATUS_CAST (PinStatus)
+
271  #define RADIOLIB_ARDUINOHAL_INTERRUPT_MODE_CAST (PinStatus)
+
272 
+
273 #elif defined(ARDUINO_ARDUINO_NANO33BLE)
+
274  // Arduino Nano 33 BLE
+
275  #define RADIOLIB_PLATFORM "Arduino Nano 33 BLE"
+
276  #define RADIOLIB_ARDUINOHAL_PIN_MODE_CAST (PinMode)
+
277  #define RADIOLIB_ARDUINOHAL_PIN_STATUS_CAST (PinStatus)
+
278  #define RADIOLIB_ARDUINOHAL_INTERRUPT_MODE_CAST (PinStatus)
+
279  #define RADIOLIB_EEPROM_UNSUPPORTED
280 
-
281  #if !defined(RADIOLIB_DEFAULT_SPI_SETTINGS)
-
282  #define RADIOLIB_DEFAULT_SPI_SETTINGS SPISettings(2000000, MSBFIRST, SPI_MODE0)
-
283  #endif
+
281  // Arduino mbed OS boards have a really bad tone implementation which will crash after a couple seconds
+
282  #define RADIOLIB_TONE_UNSUPPORTED
+
283  #define RADIOLIB_MBED_TONE_OVERRIDE
284 
-
285  #if !defined(RADIOLIB_NONVOLATILE)
-
286  #define RADIOLIB_NONVOLATILE PROGMEM
-
287  #endif
-
288 
-
289  #if !defined(RADIOLIB_NONVOLATILE_PTR)
-
290  #define RADIOLIB_NONVOLATILE_PTR PGM_P
-
291  #endif
+
285 #elif defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_PORTENTA_H7_M4)
+
286  // Arduino Portenta H7
+
287  #define RADIOLIB_PLATFORM "Portenta H7"
+
288  #define RADIOLIB_ARDUINOHAL_PIN_MODE_CAST (PinMode)
+
289  #define RADIOLIB_ARDUINOHAL_PIN_STATUS_CAST (PinStatus)
+
290  #define RADIOLIB_ARDUINOHAL_INTERRUPT_MODE_CAST (PinStatus)
+
291  #define RADIOLIB_EEPROM_UNSUPPORTED
292 
-
293  #if !defined(RADIOLIB_NONVOLATILE_READ_BYTE)
-
294  #define RADIOLIB_NONVOLATILE_READ_BYTE(addr) pgm_read_byte(addr)
-
295  #endif
+
293  // Arduino mbed OS boards have a really bad tone implementation which will crash after a couple seconds
+
294  #define RADIOLIB_TONE_UNSUPPORTED
+
295  #define RADIOLIB_MBED_TONE_OVERRIDE
296 
-
297  #if !defined(RADIOLIB_NONVOLATILE_READ_DWORD)
-
298  #define RADIOLIB_NONVOLATILE_READ_DWORD(addr) pgm_read_dword(addr)
-
299  #endif
-
300 
-
301  #if !defined(RADIOLIB_TYPE_ALIAS)
-
302  #define RADIOLIB_TYPE_ALIAS(type, alias) using alias = type;
-
303  #endif
-
304 
-
305  #if !defined(RADIOLIB_ARDUINOHAL_PIN_MODE_CAST)
-
306  #define RADIOLIB_ARDUINOHAL_PIN_MODE_CAST
-
307  #endif
-
308 
-
309  #if !defined(RADIOLIB_ARDUINOHAL_PIN_STATUS_CAST)
-
310  #define RADIOLIB_ARDUINOHAL_PIN_STATUS_CAST
-
311  #endif
-
312 
-
313  #if !defined(RADIOLIB_ARDUINOHAL_INTERRUPT_MODE_CAST)
-
314  #define RADIOLIB_ARDUINOHAL_INTERRUPT_MODE_CAST
-
315  #endif
-
316 
-
317 #else
-
318  // generic non-Arduino platform
-
319  #define RADIOLIB_PLATFORM "Generic"
-
320 
-
321  #define RADIOLIB_NC (0xFF)
-
322  #define RADIOLIB_NONVOLATILE
-
323  #define RADIOLIB_NONVOLATILE_READ_BYTE(addr) (*((uint8_t *)(void *)(addr)))
-
324  #define RADIOLIB_NONVOLATILE_READ_DWORD(addr) (*((uint32_t *)(void *)(addr)))
-
325  #define RADIOLIB_TYPE_ALIAS(type, alias) using alias = type;
-
326 
-
327  #if !defined(RADIOLIB_DEBUG_PORT)
-
328  #define RADIOLIB_DEBUG_PORT stdout
-
329  #endif
-
330 
-
331  #define DEC 10
-
332  #define HEX 16
-
333  #define OCT 8
-
334  #define BIN 2
-
335 
-
336  #include <stdint.h>
-
337 
-
338 #endif
+
297 #elif defined(__STM32F4__) || defined(__STM32F1__)
+
298  // Arduino STM32 core by Roger Clark (https://github.com/rogerclarkmelbourne/Arduino_STM32)
+
299  #define RADIOLIB_PLATFORM "STM32duino (unofficial)"
+
300  #define RADIOLIB_ARDUINOHAL_PIN_MODE_CAST (WiringPinMode)
+
301  #define RADIOLIB_ARDUINOHAL_INTERRUPT_MODE_CAST (ExtIntTriggerMode)
+
302 
+
303 #elif defined(ARDUINO_ARCH_MEGAAVR)
+
304  // MegaCoreX by MCUdude (https://github.com/MCUdude/MegaCoreX)
+
305  #define RADIOLIB_PLATFORM "MegaCoreX"
+
306 
+
307 #elif defined(ARDUINO_ARCH_MBED_RP2040)
+
308  // Raspberry Pi Pico (official mbed core)
+
309  #define RADIOLIB_PLATFORM "Raspberry Pi Pico"
+
310  #define RADIOLIB_ARDUINOHAL_PIN_MODE_CAST (PinMode)
+
311  #define RADIOLIB_ARDUINOHAL_PIN_STATUS_CAST (PinStatus)
+
312  #define RADIOLIB_ARDUINOHAL_INTERRUPT_MODE_CAST (PinStatus)
+
313  #define RADIOLIB_EEPROM_UNSUPPORTED
+
314 
+
315  // Arduino mbed OS boards have a really bad tone implementation which will crash after a couple seconds
+
316  #define RADIOLIB_TONE_UNSUPPORTED
+
317  #define RADIOLIB_MBED_TONE_OVERRIDE
+
318 
+
319 #elif defined(ARDUINO_ARCH_RP2040)
+
320  // Raspberry Pi Pico (unofficial core)
+
321  #define RADIOLIB_PLATFORM "Raspberry Pi Pico (unofficial)"
+
322  #define RADIOLIB_ARDUINOHAL_PIN_MODE_CAST (PinMode)
+
323  #define RADIOLIB_ARDUINOHAL_PIN_STATUS_CAST (PinStatus)
+
324  #define RADIOLIB_ARDUINOHAL_INTERRUPT_MODE_CAST (PinStatus)
+
325 
+
326 #elif defined(__ASR6501__) || defined(ARDUINO_ARCH_ASR650X) || defined(DARDUINO_ARCH_ASR6601)
+
327  // CubeCell
+
328  #define RADIOLIB_PLATFORM "CubeCell"
+
329  #define RADIOLIB_DEFAULT_SPI_SETTINGS SPISettings(1000000, MSBFIRST, SPI_MODE0) // see issue #709
+
330  #define RADIOLIB_ARDUINOHAL_PIN_MODE_CAST (PINMODE)
+
331  #define RADIOLIB_ARDUINOHAL_INTERRUPT_MODE_CAST (IrqModes)
+
332 
+
333  // provide an easy access to the on-board module
+
334  #include "board-config.h"
+
335  #define RADIOLIB_BUILTIN_MODULE RADIO_NSS, RADIO_DIO_1, RADIO_RESET, RADIO_BUSY
+
336 
+
337  // CubeCell doesn't seem to define nullptr, let's do something like that now
+
338  #define nullptr NULL
339 
-
340 /*
-
341  * Uncomment to enable debug output.
-
342  * Warning: Debug output will slow down the whole system significantly.
-
343  * Also, it will result in larger compiled binary.
-
344  * Levels: debug - only main info
-
345  * verbose - full transcript of all SPI communication
-
346  */
-
347 #if !defined(RADIOLIB_DEBUG)
-
348  //#define RADIOLIB_DEBUG
-
349 #endif
-
350 #if !defined(RADIOLIB_VERBOSE)
-
351  //#define RADIOLIB_VERBOSE
-
352 #endif
-
353 
-
354 // set which output port should be used for debug output
-
355 // may be Serial port (on Arduino) or file like stdout or stderr (on generic platforms)
-
356 #if defined(RADIOLIB_BUILD_ARDUINO) && !defined(RADIOLIB_DEBUG_PORT)
-
357  #define RADIOLIB_DEBUG_PORT Serial
-
358 #endif
-
359 
-
360 /*
-
361  * Comment to disable "paranoid" SPI mode, or set RADIOLIB_SPI_PARANOID to 0
-
362  * Every write to an SPI register using SPI set function will be verified by a subsequent read operation.
-
363  * This improves reliability, but slightly slows down communication.
-
364  * Note: Enabled by default.
-
365  */
-
366 #if !defined(RADIOLIB_SPI_PARANOID)
-
367  #define RADIOLIB_SPI_PARANOID 1
-
368 #endif
-
369 
-
370 /*
-
371  * Uncomment to enable parameter range checking
-
372  * RadioLib will check provided parameters (such as frequency) against limits determined by the device manufacturer.
-
373  * It is highly advised to keep this macro defined, removing it will allow invalid values to be set,
-
374  * possibly leading to bricked module and/or program crashing.
-
375  * Note: Enabled by default.
-
376  */
-
377 #if !defined(RADIOLIB_CHECK_PARAMS)
-
378  #define RADIOLIB_CHECK_PARAMS
-
379 #endif
-
380 
-
381 /*
-
382  * Uncomment to enable SX127x errata fix
-
383  * Warning: SX127x errata fix has been reported to cause issues with LoRa bandwidths lower than 62.5 kHz.
-
384  * It should only be enabled if you really are observing some errata-related issue.
-
385  * Note: Disabled by default.
-
386  */
-
387 #if !defined(RADIOLIB_FIX_ERRATA_SX127X)
-
388  //#define RADIOLIB_FIX_ERRATA_SX127X
-
389 #endif
-
390 
-
391 /*
-
392  * Uncomment to enable god mode - all methods and member variables in all classes will be made public, thus making them accessible from Arduino code.
-
393  * Warning: Come on, it's called GOD mode - obviously only use this if you know what you're doing.
-
394  * Failure to heed the above warning may result in bricked module.
-
395  */
-
396 #if !defined(RADIOLIB_GODMODE)
-
397  //#define RADIOLIB_GODMODE
-
398 #endif
-
399 
-
400 /*
-
401  * Uncomment to enable low-level hardware access
-
402  * This will make some hardware methods like SPI get/set accessible from the user sketch - think of it as "god mode lite"
-
403  * Warning: RadioLib won't stop you from writing invalid stuff into your device, so it's quite easy to brick your module with this.
-
404  */
-
405 #if !defined(RADIOLIB_LOW_LEVEL)
-
406  //#define RADIOLIB_LOW_LEVEL
-
407 #endif
-
408 
-
409 /*
-
410  * Uncomment to enable pre-defined modules when using RadioShield.
-
411  */
-
412 #if !defined(RADIOLIB_RADIOSHIELD)
-
413  //#define RADIOLIB_RADIOSHIELD
-
414 #endif
-
415 
-
416 /*
-
417  * Uncomment to enable interrupt-based timing control
-
418  * For details, see https://github.com/jgromes/RadioLib/wiki/Interrupt-Based-Timing
-
419  */
-
420 #if !defined(RADIOLIB_INTERRUPT_TIMING)
-
421  //#define RADIOLIB_INTERRUPT_TIMING
-
422 #endif
-
423 
-
424 /*
-
425  * Uncomment to enable static-only memory management: no dynamic allocation will be performed.
-
426  * Warning: Large static arrays will be created in some methods. It is not advised to send large packets in this mode.
-
427  */
-
428 #if !defined(RADIOLIB_STATIC_ONLY)
-
429  //#define RADIOLIB_STATIC_ONLY
-
430 #endif
-
431 
-
432 // set the size of static arrays to use
-
433 #if !defined(RADIOLIB_STATIC_ARRAY_SIZE)
-
434  #define RADIOLIB_STATIC_ARRAY_SIZE (256)
-
435 #endif
-
436 
-
437 // the base address for persistent storage
-
438 // some protocols (e.g. LoRaWAN) require a method
-
439 // to store some data persistently
-
440 // on Arduino, this will use EEPROM, on non-Arduino platform,
-
441 // it will use anything provided by the hardware abstraction layer
-
442 // RadioLib will place these starting at this address
-
443 #if !defined(RADIOLIB_HAL_PERSISTENT_STORAGE_BASE)
-
444  #define RADIOLIB_HAL_PERSISTENT_STORAGE_BASE (0)
-
445 #endif
+
340  // ... and also defines pinMode() as a macro, which is by far the stupidest thing I have seen on Arduino
+
341  #undef pinMode
+
342 
+
343  // ... and uses an outdated GCC which does not support type aliases
+
344  #define RADIOLIB_TYPE_ALIAS(type, alias) typedef class type alias;
+
345 
+
346  // ... and it also has no tone(). This platform was designed by an idiot.
+
347  #define RADIOLIB_TONE_UNSUPPORTED
+
348 
+
349  // ... AND as the (hopefully) final nail in the coffin, IT F*CKING DEFINES YIELD() AS A MACRO THAT DOES NOTHING!!!
+
350  #define RADIOLIB_YIELD_UNSUPPORTED
+
351  #if defined(yield)
+
352  #undef yield
+
353  #endif
+
354 
+
355 #elif defined(RASPI)
+
356  // RaspiDuino framework (https://github.com/me-no-dev/RasPiArduino)
+
357  #define RADIOLIB_PLATFORM "RasPiArduino"
+
358 
+
359  // let's start off easy - no tone on this platform, that can happen
+
360  #define RADIOLIB_TONE_UNSUPPORTED
+
361 
+
362  // hmm, no yield either - weird on something like Raspberry PI, but sure, we can handle it
+
363  #define RADIOLIB_YIELD_UNSUPPORTED
+
364 
+
365  // aight, getting to the juicy stuff - PGM_P seems missing, that's the first time
+
366  #define PGM_P const char *
+
367 
+
368  // ... and for the grand finale, we have millis() and micros() DEFINED AS MACROS!
+
369  #if defined(millis)
+
370  #undef millis
+
371  inline unsigned long millis() { return((unsigned long)(STCV / 1000)); };
+
372  #endif
+
373 
+
374  #if defined(micros)
+
375  #undef micros
+
376  inline unsigned long micros() { return((unsigned long)(STCV)); };
+
377  #endif
+
378 
+
379 #elif defined(TEENSYDUINO)
+
380  // Teensy
+
381  #define RADIOLIB_PLATFORM "Teensy"
+
382 
+
383 #elif defined(ARDUINO_ARCH_RENESAS)
+
384  // Arduino Renesas (UNO R4)
+
385  #define RADIOLIB_PLATFORM "Arduino Renesas (UNO R4)"
+
386  #define RADIOLIB_ARDUINOHAL_PIN_MODE_CAST (PinMode)
+
387  #define RADIOLIB_ARDUINOHAL_PIN_STATUS_CAST (PinStatus)
+
388  #define RADIOLIB_ARDUINOHAL_INTERRUPT_MODE_CAST (PinStatus)
+
389 
+
390 #else
+
391  // other Arduino platforms not covered by the above list - this may or may not work
+
392  #define RADIOLIB_PLATFORM "Unknown Arduino"
+
393  #define RADIOLIB_UNKNOWN_PLATFORM
+
394 
+
395 #endif
+
396 
+
397  // set the default values for all macros
+
398  // these will be applied if they were not defined above
+
399  #if !defined(RADIOLIB_NC)
+
400  #define RADIOLIB_NC (0xFFFFFFFF)
+
401  #endif
+
402 
+
403  #if !defined(RADIOLIB_DEFAULT_SPI)
+
404  #define RADIOLIB_DEFAULT_SPI SPI
+
405  #endif
+
406 
+
407  #if !defined(RADIOLIB_DEFAULT_SPI_SETTINGS)
+
408  #define RADIOLIB_DEFAULT_SPI_SETTINGS SPISettings(2000000, MSBFIRST, SPI_MODE0)
+
409  #endif
+
410 
+
411  #if !defined(RADIOLIB_NONVOLATILE)
+
412  #define RADIOLIB_NONVOLATILE PROGMEM
+
413  #endif
+
414 
+
415  #if !defined(RADIOLIB_NONVOLATILE_PTR)
+
416  #define RADIOLIB_NONVOLATILE_PTR PGM_P
+
417  #endif
+
418 
+
419  #if !defined(RADIOLIB_NONVOLATILE_READ_BYTE)
+
420  #define RADIOLIB_NONVOLATILE_READ_BYTE(addr) pgm_read_byte(addr)
+
421  #endif
+
422 
+
423  #if !defined(RADIOLIB_NONVOLATILE_READ_DWORD)
+
424  #define RADIOLIB_NONVOLATILE_READ_DWORD(addr) pgm_read_dword(addr)
+
425  #endif
+
426 
+
427  #if !defined(RADIOLIB_TYPE_ALIAS)
+
428  #define RADIOLIB_TYPE_ALIAS(type, alias) using alias = type;
+
429  #endif
+
430 
+
431  #if !defined(RADIOLIB_ARDUINOHAL_PIN_MODE_CAST)
+
432  #define RADIOLIB_ARDUINOHAL_PIN_MODE_CAST
+
433  #endif
+
434 
+
435  #if !defined(RADIOLIB_ARDUINOHAL_PIN_STATUS_CAST)
+
436  #define RADIOLIB_ARDUINOHAL_PIN_STATUS_CAST
+
437  #endif
+
438 
+
439  #if !defined(RADIOLIB_ARDUINOHAL_INTERRUPT_MODE_CAST)
+
440  #define RADIOLIB_ARDUINOHAL_INTERRUPT_MODE_CAST
+
441  #endif
+
442 
+
443 #else
+
444  // generic non-Arduino platform
+
445  #define RADIOLIB_PLATFORM "Generic"
446 
-
447 // the amount of space allocated to the persistent storage
-
448 #if !defined(RADIOLIB_HAL_PERSISTENT_STORAGE_SIZE)
-
449  #define RADIOLIB_HAL_PERSISTENT_STORAGE_SIZE (0x0180)
-
450 #endif
-
451 
-
452 /*
-
453  * Uncomment on boards whose clock runs too slow or too fast
-
454  * Set the value according to the following scheme:
-
455  * Enable timestamps on your terminal
-
456  * Print something to terminal, wait 1000 milliseconds, print something again
-
457  * If the difference is e.g. 1014 milliseconds between the prints, set this value to 14
-
458  * Or, for more accuracy, wait for 100,000 milliseconds and divide the total drift by 100
-
459  */
-
460 #if !defined(RADIOLIB_CLOCK_DRIFT_MS)
-
461  //#define RADIOLIB_CLOCK_DRIFT_MS (0)
-
462 #endif
+
447  #define RADIOLIB_NC (0xFF)
+
448  #define RADIOLIB_NONVOLATILE
+
449  #define RADIOLIB_NONVOLATILE_READ_BYTE(addr) (*((uint8_t *)(void *)(addr)))
+
450  #define RADIOLIB_NONVOLATILE_READ_DWORD(addr) (*((uint32_t *)(void *)(addr)))
+
451  #define RADIOLIB_TYPE_ALIAS(type, alias) using alias = type;
+
452 
+
453  #if !defined(RADIOLIB_DEBUG_PORT)
+
454  #define RADIOLIB_DEBUG_PORT stdout
+
455  #endif
+
456 
+
457  #define DEC 10
+
458  #define HEX 16
+
459  #define OCT 8
+
460  #define BIN 2
+
461 
+
462  #include <stdint.h>
463 
-
464 // This only compiles on STM32 boards with SUBGHZ module, but also
-
465 // include when generating docs
-
466 #if (!defined(ARDUINO_ARCH_STM32) || !defined(SUBGHZSPI_BASE)) && !defined(DOXYGEN)
-
467  #define RADIOLIB_EXCLUDE_STM32WLX
-
468 #endif
-
469 
-
470 #if defined(RADIOLIB_DEBUG)
-
471  #if defined(RADIOLIB_BUILD_ARDUINO)
-
472  #define RADIOLIB_DEBUG_PRINT(...) Module::serialPrintf(__VA_ARGS__)
-
473  #define RADIOLIB_DEBUG_PRINTLN(M, ...) Module::serialPrintf(M "\n", ##__VA_ARGS__)
-
474 
-
475  // some platforms do not support printf("%f"), so it has to be done this way
-
476  #define RADIOLIB_DEBUG_PRINT_FLOAT(VAL, DECIMALS) RADIOLIB_DEBUG_PORT.print(VAL, DECIMALS)
-
477  #else
-
478  #if !defined(RADIOLIB_DEBUG_PRINT)
-
479  #define RADIOLIB_DEBUG_PRINT(...) fprintf(RADIOLIB_DEBUG_PORT, __VA_ARGS__)
-
480  #endif
-
481  #if !defined(RADIOLIB_DEBUG_PRINTLN)
-
482  #define RADIOLIB_DEBUG_PRINTLN(M, ...) fprintf(RADIOLIB_DEBUG_PORT, M "\n", ##__VA_ARGS__)
-
483  #endif
-
484  #define RADIOLIB_DEBUG_PRINT_FLOAT(VAL, DECIMALS) RADIOLIB_DEBUG_PRINT("%.3f", VAL)
-
485  #endif
-
486  #define RADIOLIB_DEBUG_HEXDUMP(...) Module::hexdump(__VA_ARGS__)
-
487 #else
-
488  #define RADIOLIB_DEBUG_PRINT(...) {}
-
489  #define RADIOLIB_DEBUG_PRINTLN(...) {}
-
490  #define RADIOLIB_DEBUG_PRINT_FLOAT(VAL, DECIMALS) {}
-
491  #define RADIOLIB_DEBUG_HEXDUMP(...) {}
-
492 #endif
-
493 
-
494 #if defined(RADIOLIB_VERBOSE)
-
495  #define RADIOLIB_VERBOSE_PRINT(...) RADIOLIB_DEBUG_PRINT(__VA_ARGS__)
-
496  #define RADIOLIB_VERBOSE_PRINTLN(...) RADIOLIB_DEBUG_PRINTLN(__VA_ARGS__)
-
497 #else
-
498  #define RADIOLIB_VERBOSE_PRINT(...) {}
-
499  #define RADIOLIB_VERBOSE_PRINTLN(...) {}
-
500 #endif
-
501 
-
505 #define RADIOLIB_ASSERT(STATEVAR) { if((STATEVAR) != RADIOLIB_ERR_NONE) { return(STATEVAR); } }
-
506 
-
510 #if defined(RADIOLIB_CHECK_PARAMS)
-
511  #define RADIOLIB_CHECK_RANGE(VAR, MIN, MAX, ERR) { if(!(((VAR) >= (MIN)) && ((VAR) <= (MAX)))) { return(ERR); } }
-
512 #else
-
513  #define RADIOLIB_CHECK_RANGE(VAR, MIN, MAX, ERR) {}
-
514 #endif
-
515 
-
516 #if defined(RADIOLIB_FIX_ERRATA_SX127X)
-
517  #define RADIOLIB_ERRATA_SX127X(...) { errataFix(__VA_ARGS__); }
-
518 #else
-
519  #define RADIOLIB_ERRATA_SX127X(...) {}
-
520 #endif
-
521 
-
522 // these macros are usually defined by Arduino, but some platforms undef them, so its safer to use our own
-
523 #define RADIOLIB_MIN(a,b) ((a)<(b)?(a):(b))
-
524 #define RADIOLIB_MAX(a,b) ((a)>(b)?(a):(b))
-
525 #define RADIOLIB_ABS(x) ((x)>0?(x):-(x))
-
526 
-
527 // version definitions
-
528 #define RADIOLIB_VERSION_MAJOR 6
-
529 #define RADIOLIB_VERSION_MINOR 2
-
530 #define RADIOLIB_VERSION_PATCH 0
-
531 #define RADIOLIB_VERSION_EXTRA 0
-
532 
-
533 #define RADIOLIB_VERSION (((RADIOLIB_VERSION_MAJOR) << 24) | ((RADIOLIB_VERSION_MINOR) << 16) | ((RADIOLIB_VERSION_PATCH) << 8) | (RADIOLIB_VERSION_EXTRA))
+
464 #endif
+
465 
+
466 // This only compiles on STM32 boards with SUBGHZ module, but also
+
467 // include when generating docs
+
468 #if (!defined(ARDUINO_ARCH_STM32) || !defined(SUBGHZSPI_BASE)) && !defined(DOXYGEN)
+
469  #define RADIOLIB_EXCLUDE_STM32WLX (1)
+
470 #endif
+
471 
+
472 #if RADIOLIB_DEBUG
+
473  #if defined(RADIOLIB_BUILD_ARDUINO)
+
474  #define RADIOLIB_DEBUG_PRINT(...) Module::serialPrintf(__VA_ARGS__)
+
475  #define RADIOLIB_DEBUG_PRINTLN(M, ...) Module::serialPrintf(M "\n", ##__VA_ARGS__)
+
476 
+
477  // some platforms do not support printf("%f"), so it has to be done this way
+
478  #define RADIOLIB_DEBUG_PRINT_FLOAT(VAL, DECIMALS) RADIOLIB_DEBUG_PORT.print(VAL, DECIMALS)
+
479  #else
+
480  #if !defined(RADIOLIB_DEBUG_PRINT)
+
481  #define RADIOLIB_DEBUG_PRINT(...) fprintf(RADIOLIB_DEBUG_PORT, __VA_ARGS__)
+
482  #endif
+
483  #if !defined(RADIOLIB_DEBUG_PRINTLN)
+
484  #define RADIOLIB_DEBUG_PRINTLN(M, ...) fprintf(RADIOLIB_DEBUG_PORT, M "\n", ##__VA_ARGS__)
+
485  #endif
+
486  #define RADIOLIB_DEBUG_PRINT_FLOAT(VAL, DECIMALS) RADIOLIB_DEBUG_PRINT("%.3f", VAL)
+
487  #endif
+
488  #define RADIOLIB_DEBUG_HEXDUMP(...) Module::hexdump(__VA_ARGS__)
+
489 #else
+
490  #define RADIOLIB_DEBUG_PRINT(...) {}
+
491  #define RADIOLIB_DEBUG_PRINTLN(...) {}
+
492  #define RADIOLIB_DEBUG_PRINT_FLOAT(VAL, DECIMALS) {}
+
493  #define RADIOLIB_DEBUG_HEXDUMP(...) {}
+
494 #endif
+
495 
+
496 #if RADIOLIB_VERBOSE
+
497  #define RADIOLIB_VERBOSE_PRINT(...) RADIOLIB_DEBUG_PRINT(__VA_ARGS__)
+
498  #define RADIOLIB_VERBOSE_PRINTLN(...) RADIOLIB_DEBUG_PRINTLN(__VA_ARGS__)
+
499 #else
+
500  #define RADIOLIB_VERBOSE_PRINT(...) {}
+
501  #define RADIOLIB_VERBOSE_PRINTLN(...) {}
+
502 #endif
+
503 
+
507 #define RADIOLIB_ASSERT(STATEVAR) { if((STATEVAR) != RADIOLIB_ERR_NONE) { return(STATEVAR); } }
+
508 
+
512 #if RADIOLIB_CHECK_PARAMS
+
513  #define RADIOLIB_CHECK_RANGE(VAR, MIN, MAX, ERR) { if(!(((VAR) >= (MIN)) && ((VAR) <= (MAX)))) { return(ERR); } }
+
514 #else
+
515  #define RADIOLIB_CHECK_RANGE(VAR, MIN, MAX, ERR) {}
+
516 #endif
+
517 
+
518 #if RADIOLIB_FIX_ERRATA_SX127X
+
519  #define RADIOLIB_ERRATA_SX127X(...) { errataFix(__VA_ARGS__); }
+
520 #else
+
521  #define RADIOLIB_ERRATA_SX127X(...) {}
+
522 #endif
+
523 
+
524 // these macros are usually defined by Arduino, but some platforms undef them, so its safer to use our own
+
525 #define RADIOLIB_MIN(a,b) ((a)<(b)?(a):(b))
+
526 #define RADIOLIB_MAX(a,b) ((a)>(b)?(a):(b))
+
527 #define RADIOLIB_ABS(x) ((x)>0?(x):-(x))
+
528 
+
529 // version definitions
+
530 #define RADIOLIB_VERSION_MAJOR 6
+
531 #define RADIOLIB_VERSION_MINOR 2
+
532 #define RADIOLIB_VERSION_PATCH 0
+
533 #define RADIOLIB_VERSION_EXTRA 0
534 
-
535 #endif
+
535 #define RADIOLIB_VERSION (((RADIOLIB_VERSION_MAJOR) << 24) | ((RADIOLIB_VERSION_MINOR) << 16) | ((RADIOLIB_VERSION_PATCH) << 8) | (RADIOLIB_VERSION_EXTRA))
+
536 
+
537 #endif
diff --git a/_build_opt_user_8h_source.html b/_build_opt_user_8h_source.html index 3af311bf..6b76b57e 100644 --- a/_build_opt_user_8h_source.html +++ b/_build_opt_user_8h_source.html @@ -93,8 +93,8 @@ $(document).ready(function(){initNavTree('_build_opt_user_8h_source.html',''); i
5 // most commonly, RADIOLIB_EXCLUDE_* macros
6 // or enabling debug output
7 
-
8 //#define RADIOLIB_DEBUG
-
9 //#define RADIOLIB_VERBOSE
+
8 //#define RADIOLIB_DEBUG (1)
+
9 //#define RADIOLIB_VERBOSE (1)
10 
11 #endif
diff --git a/_c_c1101_8h_source.html b/_c_c1101_8h_source.html index 3a662c66..02cf0313 100644 --- a/_c_c1101_8h_source.html +++ b/_c_c1101_8h_source.html @@ -86,7 +86,7 @@ $(document).ready(function(){initNavTree('_c_c1101_8h_source.html',''); initResi
CC1101.h
-
1 #if !defined(_RADIOLIB_CC1101_H) && !defined(RADIOLIB_EXCLUDE_CC1101)
+
1 #if !defined(_RADIOLIB_CC1101_H) && !RADIOLIB_EXCLUDE_CC1101
2 #define _RADIOLIB_CC1101_H
3 
4 #include "../../TypeDef.h"
@@ -739,7 +739,7 @@ $(document).ready(function(){initNavTree('_c_c1101_8h_source.html',''); initResi
917 
923  int16_t getChipVersion();
924 
-
925  #if !defined(RADIOLIB_EXCLUDE_DIRECT_RECEIVE)
+
925  #if !RADIOLIB_EXCLUDE_DIRECT_RECEIVE
930  void setDirectAction(void (*func)(void));
931 
936  void readBit(uint32_t pin);
@@ -747,7 +747,7 @@ $(document).ready(function(){initNavTree('_c_c1101_8h_source.html',''); initResi
938 
945  int16_t setDIOMapping(uint32_t pin, uint32_t value);
946 
-
947  #if !defined(RADIOLIB_GODMODE) && !defined(RADIOLIB_LOW_LEVEL)
+
947  #if !RADIOLIB_GODMODE && !RADIOLIB_LOW_LEVEL
948  protected:
949  #endif
950  Module* mod;
@@ -762,7 +762,7 @@ $(document).ready(function(){initNavTree('_c_c1101_8h_source.html',''); initResi
959 
960  void SPIsendCommand(uint8_t cmd);
961 
-
962  #if !defined(RADIOLIB_GODMODE)
+
962  #if !RADIOLIB_GODMODE
963  protected:
964  #endif
965 
diff --git a/_f_e_c_8h_source.html b/_f_e_c_8h_source.html index 8d0cf665..586e0065 100644 --- a/_f_e_c_8h_source.html +++ b/_f_e_c_8h_source.html @@ -100,7 +100,7 @@ $(document).ready(function(){initNavTree('_f_e_c_8h_source.html',''); initResiza
12 #define RADIOLIB_PAGER_BCH_K (21)
13 #define RADIOLIB_PAGER_BCH_PRIMITIVE_POLY (0x25)
14 
-
15 #if defined(RADIOLIB_STATIC_ONLY)
+
15 #if RADIOLIB_STATIC_ONLY
16 #define RADIOLIB_BCH_MAX_N (63)
17 #define RADIOLIB_BCH_MAX_K (31)
18 #endif
@@ -119,7 +119,7 @@ $(document).ready(function(){initNavTree('_f_e_c_8h_source.html',''); initResiza
52  uint32_t poly;
53  uint8_t m;
54 
-
55  #if defined(RADIOLIB_STATIC_ONLY)
+
55  #if RADIOLIB_STATIC_ONLY
56  int32_t alphaTo[RADIOLIB_BCH_MAX_N + 1];
57  int32_t indexOf[RADIOLIB_BCH_MAX_N + 1];
58  int32_t generator[RADIOLIB_BCH_MAX_N - RADIOLIB_BCH_MAX_K + 1];
diff --git a/_f_s_k4_8h_source.html b/_f_s_k4_8h_source.html index d9cdfd8d..46a18b24 100644 --- a/_f_s_k4_8h_source.html +++ b/_f_s_k4_8h_source.html @@ -91,7 +91,7 @@ $(document).ready(function(){initNavTree('_f_s_k4_8h_source.html',''); initResiz
3 
4 #include "../../TypeDef.h"
5 
-
6 #if !defined(RADIOLIB_EXCLUDE_FSK4)
+
6 #if !RADIOLIB_EXCLUDE_FSK4
7 
8 #include "../PhysicalLayer/PhysicalLayer.h"
9 #include "../AFSK/AFSK.h"
@@ -100,7 +100,7 @@ $(document).ready(function(){initNavTree('_f_s_k4_8h_source.html',''); initResiz
16  public:
21  explicit FSK4Client(PhysicalLayer* phy);
22 
-
23  #if !defined(RADIOLIB_EXCLUDE_AFSK)
+
23  #if !RADIOLIB_EXCLUDE_AFSK
28  explicit FSK4Client(AFSKClient* audio);
29  #endif
30 
@@ -118,11 +118,11 @@ $(document).ready(function(){initNavTree('_f_s_k4_8h_source.html',''); initResiz
70 
75  int16_t standby();
76 
-
77 #if !defined(RADIOLIB_GODMODE)
+
77 #if !RADIOLIB_GODMODE
78  private:
79 #endif
80  PhysicalLayer* phyLayer;
-
81  #if !defined(RADIOLIB_EXCLUDE_AFSK)
+
81  #if !RADIOLIB_EXCLUDE_AFSK
82  AFSKClient* audioClient;
83  #endif
84 
diff --git a/_hellschreiber_8h_source.html b/_hellschreiber_8h_source.html index ef0a1954..b54c7a5f 100644 --- a/_hellschreiber_8h_source.html +++ b/_hellschreiber_8h_source.html @@ -91,7 +91,7 @@ $(document).ready(function(){initNavTree('_hellschreiber_8h_source.html',''); in
3 
4 #include "../../TypeDef.h"
5 
-
6 #if !defined(RADIOLIB_EXCLUDE_HELLSCHREIBER)
+
6 #if !RADIOLIB_EXCLUDE_HELLSCHREIBER
7 
8 #include "../PhysicalLayer/PhysicalLayer.h"
9 #include "../AFSK/AFSK.h"
@@ -175,7 +175,7 @@ $(document).ready(function(){initNavTree('_hellschreiber_8h_source.html',''); in
91  public:
96  explicit HellClient(PhysicalLayer* phy);
97 
-
98  #if !defined(RADIOLIB_EXCLUDE_AFSK)
+
98  #if !RADIOLIB_EXCLUDE_AFSK
103  explicit HellClient(AFSKClient* audio);
104  #endif
105 
@@ -189,11 +189,11 @@ $(document).ready(function(){initNavTree('_hellschreiber_8h_source.html',''); in
127 
133  size_t write(uint8_t b);
134 
-
135 #if !defined(RADIOLIB_GODMODE)
+
135 #if !RADIOLIB_GODMODE
136  private:
137 #endif
138  PhysicalLayer* phyLayer;
-
139  #if !defined(RADIOLIB_EXCLUDE_AFSK)
+
139  #if !RADIOLIB_EXCLUDE_AFSK
140  AFSKClient* audioClient;
141  #endif
142 
diff --git a/_i_t_a2_string_8h_source.html b/_i_t_a2_string_8h_source.html index 4bc21024..84ce0f80 100644 --- a/_i_t_a2_string_8h_source.html +++ b/_i_t_a2_string_8h_source.html @@ -117,10 +117,10 @@ $(document).ready(function(){initNavTree('_i_t_a2_string_8h_source.html',''); in
48 
54  uint8_t* byteArr();
55 
-
56 #if !defined(RADIOLIB_GODMODE)
+
56 #if !RADIOLIB_GODMODE
57  private:
58 #endif
-
59  #if defined(RADIOLIB_STATIC_ONLY)
+
59  #if RADIOLIB_STATIC_ONLY
60  char strAscii[RADIOLIB_STATIC_ARRAY_SIZE];
61  #else
62  char* strAscii;
diff --git a/_l_l_c_c68_8h_source.html b/_l_l_c_c68_8h_source.html index f680d59b..95bf81f7 100644 --- a/_l_l_c_c68_8h_source.html +++ b/_l_l_c_c68_8h_source.html @@ -91,7 +91,7 @@ $(document).ready(function(){initNavTree('_l_l_c_c68_8h_source.html',''); initRe
3 
4 #include "../../TypeDef.h"
5 
-
6 #if !defined(RADIOLIB_EXCLUDE_SX126X)
+
6 #if !RADIOLIB_EXCLUDE_SX126X
7 
8 #include "../../Module.h"
9 #include "../SX126x/SX1262.h"
@@ -111,7 +111,7 @@ $(document).ready(function(){initNavTree('_l_l_c_c68_8h_source.html',''); initRe
51 
57  int16_t setSpreadingFactor(uint8_t sf);
58 
-
59 #if !defined(RADIOLIB_GODMODE)
+
59 #if !RADIOLIB_GODMODE
60  private:
61 #endif
62 
diff --git a/_lo_ra_w_a_n_8h_source.html b/_lo_ra_w_a_n_8h_source.html index 71f4184e..8b820005 100644 --- a/_lo_ra_w_a_n_8h_source.html +++ b/_lo_ra_w_a_n_8h_source.html @@ -86,7 +86,7 @@ $(document).ready(function(){initNavTree('_lo_ra_w_a_n_8h_source.html',''); init
LoRaWAN.h
-
1 #if !defined(_RADIOLIB_LORAWAN_H) && !defined(RADIOLIB_EXCLUDE_LORAWAN)
+
1 #if !defined(_RADIOLIB_LORAWAN_H) && !RADIOLIB_EXCLUDE_LORAWAN
2 #define _RADIOLIB_LORAWAN_H
3 
4 #include "../../TypeDef.h"
@@ -435,7 +435,7 @@ $(document).ready(function(){initNavTree('_lo_ra_w_a_n_8h_source.html',''); init
566 
573  void setCSMA(uint8_t backoffMax, uint8_t difsSlots, bool enableCSMA = false);
574 
-
575 #if !defined(RADIOLIB_GODMODE)
+
575 #if !RADIOLIB_GODMODE
576  private:
577 #endif
578  PhysicalLayer* phyLayer = NULL;
diff --git a/_module_8h_source.html b/_module_8h_source.html index e7e33279..6b9af053 100644 --- a/_module_8h_source.html +++ b/_module_8h_source.html @@ -154,7 +154,7 @@ $(document).ready(function(){initNavTree('_module_8h_source.html',''); initResiz
164 
170 
-
171  #if defined(RADIOLIB_INTERRUPT_TIMING)
+
171  #if RADIOLIB_INTERRUPT_TIMING
172 
176  typedef void (*TimerSetupCb_t)(uint32_t len);
177 
@@ -220,17 +220,17 @@ $(document).ready(function(){initNavTree('_module_8h_source.html',''); initResiz
462 
469  static uint32_t reflect(uint32_t in, uint8_t bits);
470 
-
471  #if defined(RADIOLIB_DEBUG)
+
471  #if RADIOLIB_DEBUG
479  static void hexdump(uint8_t* data, size_t len, uint32_t offset = 0, uint8_t width = 1, bool be = false);
480 
486  void regdump(uint16_t start, size_t len);
487  #endif
488 
-
489  #if defined(RADIOLIB_DEBUG) and defined(RADIOLIB_BUILD_ARDUINO)
+
489  #if RADIOLIB_DEBUG and defined(RADIOLIB_BUILD_ARDUINO)
490  static size_t serialPrintf(const char* format, ...);
491  #endif
492 
-
493 #if !defined(RADIOLIB_GODMODE)
+
493 #if !RADIOLIB_GODMODE
494  private:
495 #endif
496  uint32_t csPin = RADIOLIB_NC;
@@ -242,7 +242,7 @@ $(document).ready(function(){initNavTree('_module_8h_source.html',''); initResiz
502  uint32_t rfSwitchPins[RFSWITCH_MAX_PINS] = { RADIOLIB_NC, RADIOLIB_NC, RADIOLIB_NC };
503  const RfSwitchMode_t *rfSwitchTable = nullptr;
504 
-
505  #if defined(RADIOLIB_INTERRUPT_TIMING)
+
505  #if RADIOLIB_INTERRUPT_TIMING
506  uint32_t prevTimingLen = 0;
507  #endif
508 };
diff --git a/_morse_8h_source.html b/_morse_8h_source.html index 53b34181..8acec94b 100644 --- a/_morse_8h_source.html +++ b/_morse_8h_source.html @@ -86,7 +86,7 @@ $(document).ready(function(){initNavTree('_morse_8h_source.html',''); initResiza
Morse.h
-
1 #if !defined(_RADIOLIB_RADIOLIB_MORSE_H) && !defined(RADIOLIB_EXCLUDE_MORSE)
+
1 #if !defined(_RADIOLIB_RADIOLIB_MORSE_H) && !RADIOLIB_EXCLUDE_MORSE
2 #define _RADIOLIB_RADIOLIB_MORSE_H
3 
4 #include "../../TypeDef.h"
@@ -178,7 +178,7 @@ $(document).ready(function(){initNavTree('_morse_8h_source.html',''); initResiza
94  public:
99  explicit MorseClient(PhysicalLayer* phy);
100 
-
101  #if !defined(RADIOLIB_EXCLUDE_AFSK)
+
101  #if !RADIOLIB_EXCLUDE_AFSK
106  explicit MorseClient(AFSKClient* audio);
107  #endif
108 
@@ -190,17 +190,17 @@ $(document).ready(function(){initNavTree('_morse_8h_source.html',''); initResiza
124 
131  static char decode(uint8_t symbol, uint8_t len);
132 
-
142  #if !defined(RADIOLIB_EXCLUDE_AFSK)
+
142  #if !RADIOLIB_EXCLUDE_AFSK
143  int read(uint8_t* symbol, uint8_t* len, float low = 0.75f, float high = 1.25f);
144  #endif
145 
151  size_t write(uint8_t b);
152 
-
153 #if !defined(RADIOLIB_GODMODE)
+
153 #if !RADIOLIB_GODMODE
154  private:
155 #endif
156  PhysicalLayer* phyLayer;
-
157  #if !defined(RADIOLIB_EXCLUDE_AFSK)
+
157  #if !RADIOLIB_EXCLUDE_AFSK
158  AFSKClient* audioClient;
159  #endif
160 
diff --git a/_pager_8h_source.html b/_pager_8h_source.html index aed03414..ea97fd06 100644 --- a/_pager_8h_source.html +++ b/_pager_8h_source.html @@ -86,7 +86,7 @@ $(document).ready(function(){initNavTree('_pager_8h_source.html',''); initResiza
Pager.h
-
1 #if !defined(_RADIOLIB_PAGER_H) && !defined(RADIOLIB_EXCLUDE_PAGER)
+
1 #if !defined(_RADIOLIB_PAGER_H) && !RADIOLIB_EXCLUDE_PAGER
2 #define _RADIOLIB_PAGER_H
3 
4 #include "../../TypeDef.h"
@@ -161,7 +161,7 @@ $(document).ready(function(){initNavTree('_pager_8h_source.html',''); initResiza
110 
120  int16_t transmit(uint8_t* data, size_t len, uint32_t addr, uint8_t encoding = RADIOLIB_PAGER_BCD, uint8_t function = RADIOLIB_PAGER_FUNC_AUTO);
121 
-
122  #if !defined(RADIOLIB_EXCLUDE_DIRECT_RECEIVE)
+
122  #if !RADIOLIB_EXCLUDE_DIRECT_RECEIVE
131  int16_t startReceive(uint32_t pin, uint32_t addr, uint32_t mask = 0xFFFFF);
132 
137  size_t available();
@@ -173,7 +173,7 @@ $(document).ready(function(){initNavTree('_pager_8h_source.html',''); initResiza
162  int16_t readData(uint8_t* data, size_t* len, uint32_t* addr = NULL);
163 #endif
164 
-
165 #if !defined(RADIOLIB_GODMODE)
+
165 #if !RADIOLIB_GODMODE
166  private:
167 #endif
168  PhysicalLayer* phyLayer;
@@ -191,7 +191,7 @@ $(document).ready(function(){initNavTree('_pager_8h_source.html',''); initResiza
180  void write(uint32_t* data, size_t len);
181  void write(uint32_t codeWord);
182 
-
183 #if !defined(RADIOLIB_EXCLUDE_DIRECT_RECEIVE)
+
183 #if !RADIOLIB_EXCLUDE_DIRECT_RECEIVE
184  uint32_t read();
185 #endif
186 
diff --git a/_physical_layer_8h_source.html b/_physical_layer_8h_source.html index 683d4c40..e1050fc9 100644 --- a/_physical_layer_8h_source.html +++ b/_physical_layer_8h_source.html @@ -218,7 +218,7 @@ $(document).ready(function(){initNavTree('_physical_layer_8h_source.html',''); i
375 
381  int16_t startDirect();
382 
-
383  #if !defined(RADIOLIB_EXCLUDE_DIRECT_RECEIVE)
+
383  #if !RADIOLIB_EXCLUDE_DIRECT_RECEIVE
390  int16_t setDirectSyncWord(uint32_t syncWord, uint8_t len);
391 
397  virtual void setDirectAction(void (*func)(void));
@@ -246,7 +246,7 @@ $(document).ready(function(){initNavTree('_physical_layer_8h_source.html',''); i
460 
464  virtual void clearChannelScanAction();
465 
-
466  #if defined(RADIOLIB_INTERRUPT_TIMING)
+
466  #if RADIOLIB_INTERRUPT_TIMING
467 
473  void setInterruptSetup(void (*func)(uint32_t));
474 
@@ -254,18 +254,18 @@ $(document).ready(function(){initNavTree('_physical_layer_8h_source.html',''); i
480 
481  #endif
482 
-
483 #if !defined(RADIOLIB_EXCLUDE_DIRECT_RECEIVE)
+
483 #if !RADIOLIB_EXCLUDE_DIRECT_RECEIVE
484  protected:
485  void updateDirectBuffer(uint8_t bit);
486 #endif
487 
-
488 #if !defined(RADIOLIB_GODMODE)
+
488 #if !RADIOLIB_GODMODE
489  private:
490 #endif
491  float freqStep;
492  size_t maxPacketLength;
493 
-
494  #if !defined(RADIOLIB_EXCLUDE_DIRECT_RECEIVE)
+
494  #if !RADIOLIB_EXCLUDE_DIRECT_RECEIVE
495  uint8_t bufferBitPos;
496  uint8_t bufferWritePos;
497  uint8_t bufferReadPos;
diff --git a/_print_8h_source.html b/_print_8h_source.html index 3caab0c1..f4a6f886 100644 --- a/_print_8h_source.html +++ b/_print_8h_source.html @@ -141,7 +141,7 @@ $(document).ready(function(){initNavTree('_print_8h_source.html',''); initResiza
53  size_t println(double, int = 2);
54  size_t println(void);
55 
-
56 #if !defined(RADIOLIB_GODMODE)
+
56 #if !RADIOLIB_GODMODE
57  protected:
58 #endif
59  uint8_t encoding = RADIOLIB_ASCII_EXTENDED;
diff --git a/_r_f69_8h_source.html b/_r_f69_8h_source.html index 0fefbd1d..0d98d290 100644 --- a/_r_f69_8h_source.html +++ b/_r_f69_8h_source.html @@ -91,7 +91,7 @@ $(document).ready(function(){initNavTree('_r_f69_8h_source.html',''); initResiza
3 
4 #include "../../TypeDef.h"
5 
-
6 #if !defined(RADIOLIB_EXCLUDE_RF69)
+
6 #if !RADIOLIB_EXCLUDE_RF69
7 
8 #include "../../Module.h"
9 
@@ -724,7 +724,7 @@ $(document).ready(function(){initNavTree('_r_f69_8h_source.html',''); initResiza
969 
974  int16_t getChipVersion();
975 
-
976  #if !defined(RADIOLIB_EXCLUDE_DIRECT_RECEIVE)
+
976  #if !RADIOLIB_EXCLUDE_DIRECT_RECEIVE
981  void setDirectAction(void (*func)(void));
982 
987  void readBit(uint32_t pin);
@@ -732,12 +732,12 @@ $(document).ready(function(){initNavTree('_r_f69_8h_source.html',''); initResiza
989 
996  int16_t setDIOMapping(uint32_t pin, uint32_t value);
997 
-
998 #if !defined(RADIOLIB_GODMODE) && !defined(RADIOLIB_LOW_LEVEL)
+
998 #if !RADIOLIB_GODMODE && !RADIOLIB_LOW_LEVEL
999  protected:
1000 #endif
1001  Module* mod;
1002 
-
1003 #if !defined(RADIOLIB_GODMODE)
+
1003 #if !RADIOLIB_GODMODE
1004  protected:
1005 #endif
1006 
@@ -762,7 +762,7 @@ $(document).ready(function(){initNavTree('_r_f69_8h_source.html',''); initResiza
1025  int16_t directMode();
1026  int16_t setPacketMode(uint8_t mode, uint8_t len);
1027 
-
1028 #if !defined(RADIOLIB_GODMODE)
+
1028 #if !RADIOLIB_GODMODE
1029  private:
1030 #endif
1031  int16_t setMode(uint8_t mode);
diff --git a/_r_f_m22_8h_source.html b/_r_f_m22_8h_source.html index 0dca759c..0412b6da 100644 --- a/_r_f_m22_8h_source.html +++ b/_r_f_m22_8h_source.html @@ -91,7 +91,7 @@ $(document).ready(function(){initNavTree('_r_f_m22_8h_source.html',''); initResi
3 
4 #include "../../TypeDef.h"
5 
-
6 #if !defined(RADIOLIB_EXCLUDE_RFM2X)
+
6 #if !RADIOLIB_EXCLUDE_RFM2X
7 
8 #include "../../Module.h"
9 #include "../Si443x/Si443x.h"
diff --git a/_r_f_m23_8h_source.html b/_r_f_m23_8h_source.html index a479736c..4dd38bce 100644 --- a/_r_f_m23_8h_source.html +++ b/_r_f_m23_8h_source.html @@ -91,7 +91,7 @@ $(document).ready(function(){initNavTree('_r_f_m23_8h_source.html',''); initResi
3 
4 #include "../../TypeDef.h"
5 
-
6 #if !defined(RADIOLIB_EXCLUDE_RFM2X)
+
6 #if !RADIOLIB_EXCLUDE_RFM2X
7 
8 #include "../../Module.h"
9 #include "../Si443x/Si443x.h"
diff --git a/_r_t_t_y_8h_source.html b/_r_t_t_y_8h_source.html index 7f94f9fe..2eb8c6b5 100644 --- a/_r_t_t_y_8h_source.html +++ b/_r_t_t_y_8h_source.html @@ -91,7 +91,7 @@ $(document).ready(function(){initNavTree('_r_t_t_y_8h_source.html',''); initResi
3 
4 #include "../../TypeDef.h"
5 
-
6 #if !defined(RADIOLIB_EXCLUDE_RTTY)
+
6 #if !RADIOLIB_EXCLUDE_RTTY
7 
8 #include "../PhysicalLayer/PhysicalLayer.h"
9 #include "../AFSK/AFSK.h"
@@ -102,7 +102,7 @@ $(document).ready(function(){initNavTree('_r_t_t_y_8h_source.html',''); initResi
18  public:
23  explicit RTTYClient(PhysicalLayer* phy);
24 
-
25  #if !defined(RADIOLIB_EXCLUDE_AFSK)
+
25  #if !RADIOLIB_EXCLUDE_AFSK
30  explicit RTTYClient(AFSKClient* audio);
31  #endif
32 
@@ -116,11 +116,11 @@ $(document).ready(function(){initNavTree('_r_t_t_y_8h_source.html',''); initResi
56 
62  size_t write(uint8_t b);
63 
-
64 #if !defined(RADIOLIB_GODMODE)
+
64 #if !RADIOLIB_GODMODE
65  private:
66 #endif
67  PhysicalLayer* phyLayer;
-
68  #if !defined(RADIOLIB_EXCLUDE_AFSK)
+
68  #if !RADIOLIB_EXCLUDE_AFSK
69  AFSKClient* audioClient;
70  #endif
71 
diff --git a/_radio_lib_8h_source.html b/_radio_lib_8h_source.html index 06ddaba2..aefd4b42 100644 --- a/_radio_lib_8h_source.html +++ b/_radio_lib_8h_source.html @@ -101,7 +101,7 @@ $(document).ready(function(){initNavTree('_radio_lib_8h_source.html',''); initRe
47 // warnings are printed in this file since BuildOpt.h is compiled in multiple places
48 
49 // check God mode
-
50 #if defined(RADIOLIB_GODMODE)
+
50 #if RADIOLIB_GODMODE
51  #warning "God mode active, I hope it was intentional. Buckle up, lads."
52 #endif
53 
@@ -174,7 +174,7 @@ $(document).ready(function(){initNavTree('_radio_lib_8h_source.html',''); initRe
120 #include "utils/Cryptography.h"
121 
122 // only create Radio class when using RadioShield
-
123 #if defined(RADIOLIB_RADIOSHIELD)
+
123 #if RADIOLIB_RADIOSHIELD
124 
125 // RadioShield pin definitions
126 #define RADIOSHIELD_CS_A 10
@@ -197,7 +197,7 @@ $(document).ready(function(){initNavTree('_radio_lib_8h_source.html',''); initRe
152  ModuleB = new Module(RADIOSHIELD_CS_B, RADIOSHIELD_IRQ_B, RADIOSHIELD_RST_B, RADIOSHIELD_GPIO_B);
153  }
154 
-
155 #if defined(RADIOLIB_GODMODE)
+
155 #if RADIOLIB_GODMODE
156  private:
157 #endif
158 
diff --git a/_s_s_t_v_8h_source.html b/_s_s_t_v_8h_source.html index 3ea173ab..e293ebc4 100644 --- a/_s_s_t_v_8h_source.html +++ b/_s_s_t_v_8h_source.html @@ -91,7 +91,7 @@ $(document).ready(function(){initNavTree('_s_s_t_v_8h_source.html',''); initResi
3 
4 #include "../../TypeDef.h"
5 
-
6 #if !defined(RADIOLIB_EXCLUDE_SSTV)
+
6 #if !RADIOLIB_EXCLUDE_SSTV
7 
8 #include "../PhysicalLayer/PhysicalLayer.h"
9 #include "../AFSK/AFSK.h"
@@ -167,7 +167,7 @@ $(document).ready(function(){initNavTree('_s_s_t_v_8h_source.html',''); initResi
118  public:
123  explicit SSTVClient(PhysicalLayer* phy);
124 
-
125  #if !defined(RADIOLIB_EXCLUDE_AFSK)
+
125  #if !RADIOLIB_EXCLUDE_AFSK
130  explicit SSTVClient(AFSKClient* audio);
131  #endif
132 
@@ -175,7 +175,7 @@ $(document).ready(function(){initNavTree('_s_s_t_v_8h_source.html',''); initResi
134 
142  int16_t begin(float base, const SSTVMode_t& mode);
143 
-
144  #if !defined(RADIOLIB_EXCLUDE_AFSK)
+
144  #if !RADIOLIB_EXCLUDE_AFSK
151  int16_t begin(const SSTVMode_t& mode);
152  #endif
153 
@@ -189,11 +189,11 @@ $(document).ready(function(){initNavTree('_s_s_t_v_8h_source.html',''); initResi
178 
183  uint16_t getPictureHeight() const;
184 
-
185 #if !defined(RADIOLIB_GODMODE)
+
185 #if !RADIOLIB_GODMODE
186  private:
187 #endif
188  PhysicalLayer* phyLayer;
-
189  #if !defined(RADIOLIB_EXCLUDE_AFSK)
+
189  #if !RADIOLIB_EXCLUDE_AFSK
190  AFSKClient* audioClient;
191  #endif
192 
diff --git a/_s_t_m32_w_lx_8h_source.html b/_s_t_m32_w_lx_8h_source.html index 8005ebeb..b77c6d15 100644 --- a/_s_t_m32_w_lx_8h_source.html +++ b/_s_t_m32_w_lx_8h_source.html @@ -98,7 +98,7 @@ $(document).ready(function(){initNavTree('_s_t_m32_w_lx_8h_source.html',''); ini
10 
11 #include "../../TypeDef.h"
12 
-
13 #if !defined(RADIOLIB_EXCLUDE_STM32WLX)
+
13 #if !RADIOLIB_EXCLUDE_STM32WLX
14 
15 #include "../../Module.h"
16 #include "SX1262.h"
@@ -148,19 +148,19 @@ $(document).ready(function(){initNavTree('_s_t_m32_w_lx_8h_source.html',''); ini
150 
154  void clearChannelScanAction();
155 
-
156 #if !defined(RADIOLIB_GODMODE)
+
156 #if !RADIOLIB_GODMODE
157  protected:
158 #endif
159  virtual int16_t clearIrqStatus(uint16_t clearIrqParams) override;
160 
-
161 #if !defined(RADIOLIB_GODMODE)
+
161 #if !RADIOLIB_GODMODE
162  private:
163 #endif
164 };
165 
-
166 #endif // !defined(RADIOLIB_EXCLUDE_SX126X)
+
166 #endif
167 
-
168 #endif // _RADIOLIB_STM32WLX_MODULE_H
+
168 #endif
@ MODE_TX
Definition: Module.h:71
@ MODE_IDLE
Definition: Module.h:67
@ MODE_RX
Definition: Module.h:69
diff --git a/_s_t_m32_w_lx___module_8h_source.html b/_s_t_m32_w_lx___module_8h_source.html index c05c9d93..4cab3598 100644 --- a/_s_t_m32_w_lx___module_8h_source.html +++ b/_s_t_m32_w_lx___module_8h_source.html @@ -98,7 +98,7 @@ $(document).ready(function(){initNavTree('_s_t_m32_w_lx___module_8h_source.html'
10 
11 #include "../../TypeDef.h"
12 
-
13 #if !defined(RADIOLIB_EXCLUDE_STM32WLX)
+
13 #if !RADIOLIB_EXCLUDE_STM32WLX
14 
15 #include "../../Module.h"
16 
@@ -112,9 +112,9 @@ $(document).ready(function(){initNavTree('_s_t_m32_w_lx___module_8h_source.html'
34 };
35 
-
36 #endif // !defined(RADIOLIB_EXCLUDE_STM32WLX)
+
36 #endif
37 
-
38 #endif // _RADIOLIB_STM32WLX_MODULE_H
+
38 #endif
Implements all common low-level methods to control the wireless module. Every module class contains o...
Definition: Module.h:31
Definition: STM32WLx_Module.h:26
diff --git a/_s_x1231_8h_source.html b/_s_x1231_8h_source.html index 6addb7ef..28844adf 100644 --- a/_s_x1231_8h_source.html +++ b/_s_x1231_8h_source.html @@ -91,7 +91,7 @@ $(document).ready(function(){initNavTree('_s_x1231_8h_source.html',''); initResi
3 
4 #include "../../TypeDef.h"
5 
-
6 #if !defined(RADIOLIB_EXCLUDE_SX1231)
+
6 #if !RADIOLIB_EXCLUDE_SX1231
7 
8 #include "../../Module.h"
9 #include "../RF69/RF69.h"
@@ -180,7 +180,7 @@ $(document).ready(function(){initNavTree('_s_x1231_8h_source.html',''); initResi
100 
111  int16_t begin(float freq = 434.0, float br = 4.8, float freqDev = 5.0, float rxBw = 125.0, int8_t power = 10, uint8_t preambleLen = 16);
112 
-
113 #if !defined(RADIOLIB_GODMODE)
+
113 #if !RADIOLIB_GODMODE
114  private:
115 #endif
116  uint8_t chipRevision = 0;
diff --git a/_s_x1261_8h_source.html b/_s_x1261_8h_source.html index bbf195c1..f4ebd939 100644 --- a/_s_x1261_8h_source.html +++ b/_s_x1261_8h_source.html @@ -91,7 +91,7 @@ $(document).ready(function(){initNavTree('_s_x1261_8h_source.html',''); initResi
3 
4 #include "../../TypeDef.h"
5 
-
6 #if !defined(RADIOLIB_EXCLUDE_SX126X)
+
6 #if !RADIOLIB_EXCLUDE_SX126X
7 
8 #include "../../Module.h"
9 #include "SX126x.h"
@@ -109,7 +109,7 @@ $(document).ready(function(){initNavTree('_s_x1261_8h_source.html',''); initResi
29 
35  int16_t setOutputPower(int8_t power);
36 
-
37 #if !defined(RADIOLIB_GODMODE)
+
37 #if !RADIOLIB_GODMODE
38  private:
39 #endif
40 
diff --git a/_s_x1262_8h_source.html b/_s_x1262_8h_source.html index b3cec122..6aba2e65 100644 --- a/_s_x1262_8h_source.html +++ b/_s_x1262_8h_source.html @@ -91,7 +91,7 @@ $(document).ready(function(){initNavTree('_s_x1262_8h_source.html',''); initResi
3 
4 #include "../../TypeDef.h"
5 
-
6 #if !defined(RADIOLIB_EXCLUDE_SX126X)
+
6 #if !RADIOLIB_EXCLUDE_SX126X
7 
8 #include "../../Module.h"
9 #include "SX126x.h"
@@ -121,7 +121,7 @@ $(document).ready(function(){initNavTree('_s_x1262_8h_source.html',''); initResi
81 
88  virtual int16_t setOutputPower(int8_t power);
89 
-
90 #if !defined(RADIOLIB_GODMODE)
+
90 #if !RADIOLIB_GODMODE
91  private:
92 #endif
93 
diff --git a/_s_x1268_8h_source.html b/_s_x1268_8h_source.html index 82931a9b..15b2c34f 100644 --- a/_s_x1268_8h_source.html +++ b/_s_x1268_8h_source.html @@ -91,7 +91,7 @@ $(document).ready(function(){initNavTree('_s_x1268_8h_source.html',''); initResi
3 
4 #include "../../TypeDef.h"
5 
-
6 #if !defined(RADIOLIB_EXCLUDE_SX126X)
+
6 #if !RADIOLIB_EXCLUDE_SX126X
7 
8 #include "../../Module.h"
9 #include "SX126x.h"
@@ -120,7 +120,7 @@ $(document).ready(function(){initNavTree('_s_x1268_8h_source.html',''); initResi
80 
86  int16_t setOutputPower(int8_t power);
87 
-
88 #if !defined(RADIOLIB_GODMODE)
+
88 #if !RADIOLIB_GODMODE
89  private:
90 #endif
91 
diff --git a/_s_x126x_8h_source.html b/_s_x126x_8h_source.html index fc64a999..dda47e00 100644 --- a/_s_x126x_8h_source.html +++ b/_s_x126x_8h_source.html @@ -91,7 +91,7 @@ $(document).ready(function(){initNavTree('_s_x126x_8h_source.html',''); initResi
3 
4 #include "../../TypeDef.h"
5 
-
6 #if !defined(RADIOLIB_EXCLUDE_SX126X)
+
6 #if !RADIOLIB_EXCLUDE_SX126X
7 
8 #include "../../Module.h"
9 
@@ -693,7 +693,7 @@ $(document).ready(function(){initNavTree('_s_x126x_8h_source.html',''); initResi
1034 
1040  int16_t invertIQ(bool enable) override;
1041 
-
1042  #if !defined(RADIOLIB_EXCLUDE_DIRECT_RECEIVE)
+
1042  #if !RADIOLIB_EXCLUDE_DIRECT_RECEIVE
1047  void setDirectAction(void (*func)(void));
1048 
1053  void readBit(uint32_t pin);
@@ -711,7 +711,7 @@ $(document).ready(function(){initNavTree('_s_x126x_8h_source.html',''); initResi
1093 
1105  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);
1106 
-
1107 #if !defined(RADIOLIB_GODMODE)
+
1107 #if !RADIOLIB_GODMODE
1108  protected:
1109 #endif
1110  // SX126x SPI command implementations
@@ -753,7 +753,7 @@ $(document).ready(function(){initNavTree('_s_x126x_8h_source.html',''); initResi
1146  int16_t fixImplicitTimeout();
1147  int16_t fixInvertedIQ(uint8_t iqConfig);
1148 
-
1149 #if !defined(RADIOLIB_GODMODE) && !defined(RADIOLIB_LOW_LEVEL)
+
1149 #if !RADIOLIB_GODMODE && !RADIOLIB_LOW_LEVEL
1150  protected:
1151 #endif
1152  Module* mod;
@@ -761,7 +761,7 @@ $(document).ready(function(){initNavTree('_s_x126x_8h_source.html',''); initResi
1154  // common low-level SPI interface
1155  static int16_t SPIparseStatus(uint8_t in);
1156 
-
1157 #if !defined(RADIOLIB_GODMODE)
+
1157 #if !RADIOLIB_GODMODE
1158  protected:
1159 #endif
1160 
diff --git a/_s_x126x__patch__scan_8h_source.html b/_s_x126x__patch__scan_8h_source.html index 30af3d20..261aade8 100644 --- a/_s_x126x__patch__scan_8h_source.html +++ b/_s_x126x__patch__scan_8h_source.html @@ -121,7 +121,7 @@ $(document).ready(function(){initNavTree('_s_x126x__patch__scan_8h_source.html',
33 
34 #include "../../../TypeDef.h"
35 
-
36 #if !defined(RADIOLIB_EXCLUDE_SX126X)
+
36 #if !RADIOLIB_EXCLUDE_SX126X
37 
38 // the following is a binary patch to the SX1262
39 // this patch is needed to enable spectral scan functionality
diff --git a/_s_x1272_8h_source.html b/_s_x1272_8h_source.html index 80b43dc9..59b153ce 100644 --- a/_s_x1272_8h_source.html +++ b/_s_x1272_8h_source.html @@ -91,7 +91,7 @@ $(document).ready(function(){initNavTree('_s_x1272_8h_source.html',''); initResi
3 
4 #include "../../TypeDef.h"
5 
-
6 #if !defined(RADIOLIB_EXCLUDE_SX127X)
+
6 #if !RADIOLIB_EXCLUDE_SX127X
7 
8 #include "../../Module.h"
9 #include "SX127x.h"
@@ -225,7 +225,7 @@ $(document).ready(function(){initNavTree('_s_x1272_8h_source.html',''); initResi
267 
272  int16_t explicitHeader();
273 
-
274 #if !defined(RADIOLIB_GODMODE)
+
274 #if !RADIOLIB_GODMODE
275  protected:
276 #endif
277  int16_t setBandwidthRaw(uint8_t newBandwidth);
@@ -236,7 +236,7 @@ $(document).ready(function(){initNavTree('_s_x1272_8h_source.html',''); initResi
282  int16_t configFSK();
283  void errataFix(bool rx);
284 
-
285 #if !defined(RADIOLIB_GODMODE)
+
285 #if !RADIOLIB_GODMODE
286  private:
287 #endif
288  bool ldroAuto = true;
diff --git a/_s_x1273_8h_source.html b/_s_x1273_8h_source.html index 246ad3e6..d6206757 100644 --- a/_s_x1273_8h_source.html +++ b/_s_x1273_8h_source.html @@ -91,7 +91,7 @@ $(document).ready(function(){initNavTree('_s_x1273_8h_source.html',''); initResi
3 
4 #include "../../TypeDef.h"
5 
-
6 #if !defined(RADIOLIB_EXCLUDE_SX127X)
+
6 #if !RADIOLIB_EXCLUDE_SX127X
7 
8 #include "SX1272.h"
9 
@@ -112,7 +112,7 @@ $(document).ready(function(){initNavTree('_s_x1273_8h_source.html',''); initResi
51 
57  int16_t setDataRate(DataRate_t dr) override;
58 
-
59 #if !defined(RADIOLIB_GODMODE)
+
59 #if !RADIOLIB_GODMODE
60  private:
61 #endif
62 
diff --git a/_s_x1276_8h_source.html b/_s_x1276_8h_source.html index 79cda6e6..e865977e 100644 --- a/_s_x1276_8h_source.html +++ b/_s_x1276_8h_source.html @@ -91,7 +91,7 @@ $(document).ready(function(){initNavTree('_s_x1276_8h_source.html',''); initResi
3 
4 #include "../../TypeDef.h"
5 
-
6 #if !defined(RADIOLIB_EXCLUDE_SX127X)
+
6 #if !RADIOLIB_EXCLUDE_SX127X
7 
8 #include "SX1278.h"
9 
@@ -112,7 +112,7 @@ $(document).ready(function(){initNavTree('_s_x1276_8h_source.html',''); initResi
58 
64  int16_t setFrequency(float freq);
65 
-
66 #if !defined(RADIOLIB_GODMODE)
+
66 #if !RADIOLIB_GODMODE
67  private:
68 #endif
69 
diff --git a/_s_x1277_8h_source.html b/_s_x1277_8h_source.html index 716cd78d..59f4b644 100644 --- a/_s_x1277_8h_source.html +++ b/_s_x1277_8h_source.html @@ -91,7 +91,7 @@ $(document).ready(function(){initNavTree('_s_x1277_8h_source.html',''); initResi
3 
4 #include "../../TypeDef.h"
5 
-
6 #if !defined(RADIOLIB_EXCLUDE_SX127X)
+
6 #if !RADIOLIB_EXCLUDE_SX127X
7 
8 #include "SX1278.h"
9 
@@ -116,7 +116,7 @@ $(document).ready(function(){initNavTree('_s_x1277_8h_source.html',''); initResi
72 
78  int16_t setDataRate(DataRate_t dr) override;
79 
-
80 #if !defined(RADIOLIB_GODMODE)
+
80 #if !RADIOLIB_GODMODE
81  private:
82 #endif
83 
diff --git a/_s_x1278_8h_source.html b/_s_x1278_8h_source.html index 06f4dcb4..97cc0cf1 100644 --- a/_s_x1278_8h_source.html +++ b/_s_x1278_8h_source.html @@ -91,7 +91,7 @@ $(document).ready(function(){initNavTree('_s_x1278_8h_source.html',''); initResi
3 
4 #include "../../TypeDef.h"
5 
-
6 #if !defined(RADIOLIB_EXCLUDE_SX127X)
+
6 #if !RADIOLIB_EXCLUDE_SX127X
7 
8 #include "../../Module.h"
9 #include "SX127x.h"
@@ -236,7 +236,7 @@ $(document).ready(function(){initNavTree('_s_x1278_8h_source.html',''); initResi
278 
283  int16_t explicitHeader();
284 
-
285 #if !defined(RADIOLIB_GODMODE)
+
285 #if !RADIOLIB_GODMODE
286  protected:
287 #endif
288  int16_t setBandwidthRaw(uint8_t newBandwidth);
@@ -247,7 +247,7 @@ $(document).ready(function(){initNavTree('_s_x1278_8h_source.html',''); initResi
293  int16_t configFSK();
294  void errataFix(bool rx);
295 
-
296 #if !defined(RADIOLIB_GODMODE)
+
296 #if !RADIOLIB_GODMODE
297  private:
298 #endif
299  bool ldroAuto = true;
diff --git a/_s_x1279_8h_source.html b/_s_x1279_8h_source.html index 65e9d6fb..4c39e7ab 100644 --- a/_s_x1279_8h_source.html +++ b/_s_x1279_8h_source.html @@ -91,7 +91,7 @@ $(document).ready(function(){initNavTree('_s_x1279_8h_source.html',''); initResi
3 
4 #include "../../TypeDef.h"
5 
-
6 #if !defined(RADIOLIB_EXCLUDE_SX127X)
+
6 #if !RADIOLIB_EXCLUDE_SX127X
7 
8 #include "SX1278.h"
9 
@@ -112,7 +112,7 @@ $(document).ready(function(){initNavTree('_s_x1279_8h_source.html',''); initResi
58 
64  int16_t setFrequency(float freq);
65 
-
66 #if !defined(RADIOLIB_GODMODE)
+
66 #if !RADIOLIB_GODMODE
67  private:
68 #endif
69 
diff --git a/_s_x127x_8h_source.html b/_s_x127x_8h_source.html index 4f8ac059..d2f41b6b 100644 --- a/_s_x127x_8h_source.html +++ b/_s_x127x_8h_source.html @@ -91,7 +91,7 @@ $(document).ready(function(){initNavTree('_s_x127x_8h_source.html',''); initResi
3 
4 #include "../../TypeDef.h"
5 
-
6 #if !defined(RADIOLIB_EXCLUDE_SX127X)
+
6 #if !RADIOLIB_EXCLUDE_SX127X
7 
8 #include "../../Module.h"
9 
@@ -841,7 +841,7 @@ $(document).ready(function(){initNavTree('_s_x127x_8h_source.html',''); initResi
1145 
1151  int16_t invertIQ(bool enable) override;
1152 
-
1153  #if !defined(RADIOLIB_EXCLUDE_DIRECT_RECEIVE)
+
1153  #if !RADIOLIB_EXCLUDE_DIRECT_RECEIVE
1158  void setDirectAction(void (*func)(void));
1159 
1164  void readBit(uint32_t pin);
@@ -863,12 +863,12 @@ $(document).ready(function(){initNavTree('_s_x127x_8h_source.html',''); initResi
1213 
1219  int16_t setRSSIThreshold(float dbm);
1220 
-
1221 #if !defined(RADIOLIB_GODMODE) && !defined(RADIOLIB_LOW_LEVEL)
+
1221 #if !RADIOLIB_GODMODE && !RADIOLIB_LOW_LEVEL
1222  protected:
1223 #endif
1224  Module* mod;
1225 
-
1226 #if !defined(RADIOLIB_GODMODE)
+
1226 #if !RADIOLIB_GODMODE
1227  protected:
1228 #endif
1229 
@@ -890,7 +890,7 @@ $(document).ready(function(){initNavTree('_s_x127x_8h_source.html',''); initResi
1245  int16_t directMode();
1246  int16_t setPacketMode(uint8_t mode, uint8_t len);
1247 
-
1248 #if !defined(RADIOLIB_GODMODE)
+
1248 #if !RADIOLIB_GODMODE
1249  private:
1250 #endif
1251  float dataRate = 0;
diff --git a/_s_x1280_8h_source.html b/_s_x1280_8h_source.html index 0611330d..8ad468aa 100644 --- a/_s_x1280_8h_source.html +++ b/_s_x1280_8h_source.html @@ -91,7 +91,7 @@ $(document).ready(function(){initNavTree('_s_x1280_8h_source.html',''); initResi
3 
4 #include "../../TypeDef.h"
5 
-
6 #if !defined(RADIOLIB_EXCLUDE_SX128X)
+
6 #if !RADIOLIB_EXCLUDE_SX128X
7 
8 #include "../../Module.h"
9 #include "SX128x.h"
@@ -107,7 +107,7 @@ $(document).ready(function(){initNavTree('_s_x1280_8h_source.html',''); initResi
41 
46  float getRangingResult();
47 
-
48 #if !defined(RADIOLIB_GODMODE)
+
48 #if !RADIOLIB_GODMODE
49  private:
50 #endif
51 
diff --git a/_s_x1281_8h_source.html b/_s_x1281_8h_source.html index 1ac12589..c8a61daf 100644 --- a/_s_x1281_8h_source.html +++ b/_s_x1281_8h_source.html @@ -91,7 +91,7 @@ $(document).ready(function(){initNavTree('_s_x1281_8h_source.html',''); initResi
3 
4 #include "../../TypeDef.h"
5 
-
6 #if !defined(RADIOLIB_EXCLUDE_SX128X)
+
6 #if !RADIOLIB_EXCLUDE_SX128X
7 
8 #include "../../Module.h"
9 #include "SX128x.h"
@@ -100,7 +100,7 @@ $(document).ready(function(){initNavTree('_s_x1281_8h_source.html',''); initResi
16  public:
21  SX1281(Module* mod);
22 
-
23 #if !defined(RADIOLIB_GODMODE)
+
23 #if !RADIOLIB_GODMODE
24  private:
25 #endif
26 
diff --git a/_s_x1282_8h_source.html b/_s_x1282_8h_source.html index 5459abe7..736acd90 100644 --- a/_s_x1282_8h_source.html +++ b/_s_x1282_8h_source.html @@ -91,7 +91,7 @@ $(document).ready(function(){initNavTree('_s_x1282_8h_source.html',''); initResi
3 
4 #include "../../TypeDef.h"
5 
-
6 #if !defined(RADIOLIB_EXCLUDE_SX128X)
+
6 #if !RADIOLIB_EXCLUDE_SX128X
7 
8 #include "../../Module.h"
9 #include "SX128x.h"
@@ -101,7 +101,7 @@ $(document).ready(function(){initNavTree('_s_x1282_8h_source.html',''); initResi
17  public:
22  SX1282(Module* mod);
23 
-
24 #if !defined(RADIOLIB_GODMODE)
+
24 #if !RADIOLIB_GODMODE
25  private:
26 #endif
27 
diff --git a/_s_x128x_8h_source.html b/_s_x128x_8h_source.html index 4ace8c65..da4589f9 100644 --- a/_s_x128x_8h_source.html +++ b/_s_x128x_8h_source.html @@ -91,7 +91,7 @@ $(document).ready(function(){initNavTree('_s_x128x_8h_source.html',''); initResi
3 
4 #include "../../TypeDef.h"
5 
-
6 #if !defined(RADIOLIB_EXCLUDE_SX128X)
+
6 #if !RADIOLIB_EXCLUDE_SX128X
7 
8 #include "../../Module.h"
9 
@@ -554,18 +554,18 @@ $(document).ready(function(){initNavTree('_s_x128x_8h_source.html',''); initResi
760 
766  int16_t invertIQ(bool enable);
767 
-
768  #if !defined(RADIOLIB_EXCLUDE_DIRECT_RECEIVE)
+
768  #if !RADIOLIB_EXCLUDE_DIRECT_RECEIVE
773  void setDirectAction(void (*func)(void));
774 
779  void readBit(uint32_t pin);
780  #endif
781 
-
782 #if !defined(RADIOLIB_GODMODE) && !defined(RADIOLIB_LOW_LEVEL)
+
782 #if !RADIOLIB_GODMODE && !RADIOLIB_LOW_LEVEL
783  protected:
784 #endif
785  Module* mod;
786 
-
787 #if !defined(RADIOLIB_GODMODE)
+
787 #if !RADIOLIB_GODMODE
788  protected:
789 #endif
790 
@@ -598,14 +598,14 @@ $(document).ready(function(){initNavTree('_s_x128x_8h_source.html',''); initResi
817 
818  int16_t setHeaderType(uint8_t hdrType, size_t len = 0xFF);
819 
-
820 #if !defined(RADIOLIB_GODMODE) && !defined(RADIOLIB_LOW_LEVEL)
+
820 #if !RADIOLIB_GODMODE && !RADIOLIB_LOW_LEVEL
821  private:
822 #endif
823 
824  // common low-level SPI interface
825  static int16_t SPIparseStatus(uint8_t in);
826 
-
827 #if !defined(RADIOLIB_GODMODE)
+
827 #if !RADIOLIB_GODMODE
828  private:
829 #endif
830  // common parameters
diff --git a/_si4430_8h_source.html b/_si4430_8h_source.html index e7f0b45f..f9ac8d4b 100644 --- a/_si4430_8h_source.html +++ b/_si4430_8h_source.html @@ -91,7 +91,7 @@ $(document).ready(function(){initNavTree('_si4430_8h_source.html',''); initResiz
3 
4 #include "../../TypeDef.h"
5 
-
6 #if !defined(RADIOLIB_EXCLUDE_SI443X)
+
6 #if !RADIOLIB_EXCLUDE_SI443X
7 
8 #include "../../Module.h"
9 #include "Si4432.h"
@@ -113,11 +113,11 @@ $(document).ready(function(){initNavTree('_si4430_8h_source.html',''); initResiz
48 
54  int16_t setOutputPower(int8_t power);
55 
-
56 #if !defined(RADIOLIB_GODMODE)
+
56 #if !RADIOLIB_GODMODE
57  protected:
58 #endif
59 
-
60 #if !defined(RADIOLIB_GODMODE)
+
60 #if !RADIOLIB_GODMODE
61  private:
62 #endif
63 };
diff --git a/_si4431_8h_source.html b/_si4431_8h_source.html index 61f2eb45..80015e05 100644 --- a/_si4431_8h_source.html +++ b/_si4431_8h_source.html @@ -91,7 +91,7 @@ $(document).ready(function(){initNavTree('_si4431_8h_source.html',''); initResiz
3 
4 #include "../../TypeDef.h"
5 
-
6 #if !defined(RADIOLIB_EXCLUDE_SI443X)
+
6 #if !RADIOLIB_EXCLUDE_SI443X
7 
8 #include "../../Module.h"
9 #include "Si4432.h"
@@ -111,11 +111,11 @@ $(document).ready(function(){initNavTree('_si4431_8h_source.html',''); initResiz
41 
47  int16_t setOutputPower(int8_t power);
48 
-
49 #if !defined(RADIOLIB_GODMODE)
+
49 #if !RADIOLIB_GODMODE
50  protected:
51 #endif
52 
-
53 #if !defined(RADIOLIB_GODMODE)
+
53 #if !RADIOLIB_GODMODE
54  private:
55 #endif
56 };
diff --git a/_si4432_8h_source.html b/_si4432_8h_source.html index a606c557..2819d183 100644 --- a/_si4432_8h_source.html +++ b/_si4432_8h_source.html @@ -91,7 +91,7 @@ $(document).ready(function(){initNavTree('_si4432_8h_source.html',''); initResiz
3 
4 #include "../../TypeDef.h"
5 
-
6 #if !defined(RADIOLIB_EXCLUDE_SI443X)
+
6 #if !RADIOLIB_EXCLUDE_SI443X
7 
8 #include "../../Module.h"
9 #include "Si443x.h"
@@ -113,11 +113,11 @@ $(document).ready(function(){initNavTree('_si4432_8h_source.html',''); initResiz
48 
54  int16_t setOutputPower(int8_t power);
55 
-
56 #if !defined(RADIOLIB_GODMODE)
+
56 #if !RADIOLIB_GODMODE
57  protected:
58 #endif
59 
-
60 #if !defined(RADIOLIB_GODMODE)
+
60 #if !RADIOLIB_GODMODE
61  private:
62 #endif
63 };
diff --git a/_si443x_8h_source.html b/_si443x_8h_source.html index 741ea93d..a4939cfb 100644 --- a/_si443x_8h_source.html +++ b/_si443x_8h_source.html @@ -91,7 +91,7 @@ $(document).ready(function(){initNavTree('_si443x_8h_source.html',''); initResiz
3 
4 #include "../../TypeDef.h"
5 
-
6 #if !defined(RADIOLIB_EXCLUDE_SI443X)
+
6 #if !RADIOLIB_EXCLUDE_SI443X
7 
8 #include "../../Module.h"
9 
@@ -719,7 +719,7 @@ $(document).ready(function(){initNavTree('_si443x_8h_source.html',''); initResiz
793 
798  int16_t getChipVersion();
799 
-
800  #if !defined(RADIOLIB_EXCLUDE_DIRECT_RECEIVE)
+
800  #if !RADIOLIB_EXCLUDE_DIRECT_RECEIVE
805  void setDirectAction(void (*func)(void));
806 
811  void readBit(uint32_t pin);
@@ -729,12 +729,12 @@ $(document).ready(function(){initNavTree('_si443x_8h_source.html',''); initResiz
820 
826  int16_t variablePacketLengthMode(uint8_t maxLen = RADIOLIB_SI443X_MAX_PACKET_LENGTH);
827 
-
828 #if !defined(RADIOLIB_GODMODE) && !defined(RADIOLIB_LOW_LEVEL)
+
828 #if !RADIOLIB_GODMODE && !RADIOLIB_LOW_LEVEL
829  protected:
830 #endif
831  Module* mod;
832 
-
833 #if !defined(RADIOLIB_GODMODE)
+
833 #if !RADIOLIB_GODMODE
834  protected:
835 #endif
836 
@@ -749,7 +749,7 @@ $(document).ready(function(){initNavTree('_si443x_8h_source.html',''); initResiz
845  int16_t setFrequencyRaw(float newFreq);
846  int16_t setPacketMode(uint8_t mode, uint8_t len);
847 
-
848 #if !defined(RADIOLIB_GODMODE)
+
848 #if !RADIOLIB_GODMODE
849  private:
850 #endif
851  bool findChip();
diff --git a/n_r_f24_8h_source.html b/n_r_f24_8h_source.html index 30b43133..e5f76732 100644 --- a/n_r_f24_8h_source.html +++ b/n_r_f24_8h_source.html @@ -86,7 +86,7 @@ $(document).ready(function(){initNavTree('n_r_f24_8h_source.html',''); initResiz
nRF24.h
-
1 #if !defined(_RADIOLIB_NRF24_H) && !defined(RADIOLIB_EXCLUDE_NRF24)
+
1 #if !defined(_RADIOLIB_NRF24_H) && !RADIOLIB_EXCLUDE_NRF24
2 #define _RADIOLIB_NRF24_H
3 
4 #include "../../Module.h"
@@ -359,7 +359,7 @@ $(document).ready(function(){initNavTree('n_r_f24_8h_source.html',''); initResiz
462 
468  int16_t setEncoding(uint8_t encoding) override;
469 
-
470 #if !defined(RADIOLIB_GODMODE) && !defined(RADIOLIB_LOW_LEVEL)
+
470 #if !RADIOLIB_GODMODE && !RADIOLIB_LOW_LEVEL
471  protected:
472 #endif
473  Module* mod;
@@ -368,7 +368,7 @@ $(document).ready(function(){initNavTree('n_r_f24_8h_source.html',''); initResiz
476  void SPIwriteTxPayload(uint8_t* data, uint8_t numBytes);
477  void SPItransfer(uint8_t cmd, bool write = false, uint8_t* dataOut = NULL, uint8_t* dataIn = NULL, uint8_t numBytes = 0);
478 
-
479 #if !defined(RADIOLIB_GODMODE)
+
479 #if !RADIOLIB_GODMODE
480  protected:
481 #endif
482