302 * Every write to an SPI register using SPI set function will be verified by a subsequent read operation.
303 * This improves reliablility, but slightly slows down communication.
304 * Note: Enabled by default.
305 */
306#if !defined(RADIOLIB_SPI_PARANOID)
307 #define RADIOLIB_SPI_PARANOID
308#endif
309
310/*
311 * Uncomment to enable parameter range checking
312 * RadioLib will check provided parameters (such as frequency) against limits determined by the device manufacturer.
313 * It is highly advised to keep this macro defined, removing it will allow invalid values to be set,
314 * possibly leading to bricked module and/or program crashing.
315 * Note: Enabled by default.
316 */
317#if !defined(RADIOLIB_CHECK_PARAMS)
318 #define RADIOLIB_CHECK_PARAMS
319#endif
320
321/*
322 * Uncomment to enable SX127x errata fix
323 * Warning: SX127x errata fix has been reported to cause issues with LoRa bandwidths lower than 62.5 kHz.
324 * It should only be enabled if you really are observing some errata-related issue.
325 * Note: Disabled by default.
326 */
327#if !defined(RADIOLIB_FIX_ERRATA_SX127X)
328//#define RADIOLIB_FIX_ERRATA_SX127X
329#endif
330
331/*
332 * Uncomment to enable god mode - all methods and member variables in all classes will be made public, thus making them accessible from Arduino code.
333 * Warning: Come on, it's called GOD mode - obviously only use this if you know what you're doing.
334 * Failure to heed the above warning may result in bricked module.
335 */
336#if !defined(RADIOLIB_GODMODE)
337//#define RADIOLIB_GODMODE
338#endif
339
340/*
341 * Uncomment to enable low-level hardware access
342 * This will make some hardware methods like SPI get/set accessible from the user sketch - think of it as "god mode lite"
343 * Warning: RadioLib won't stop you from writing invalid stuff into your device, so it's quite easy to brick your module with this.
344 */
345#if !defined(RADIOLIB_LOW_LEVEL)
346//#define RADIOLIB_LOW_LEVEL
347#endif
348
349/*
350 * Uncomment to enable pre-defined modules when using RadioShield.
351 */
352#if !defined(RADIOLIB_RADIOSHIELD)
353//#define RADIOLIB_RADIOSHIELD
354#endif
355
356/*
357 * Uncomment to enable interrupt-based timing control
358 * For details, see https://github.com/jgromes/RadioLib/wiki/Interrupt-Based-Timing
359 */
360#if !defined(RADIOLIB_INTERRUPT_TIMING)
361//#define RADIOLIB_INTERRUPT_TIMING
362#endif
363
364/*
365 * Uncomment to enable static-only memory management: no dynamic allocation will be performed.
366 * Warning: Large static arrays will be created in some methods. It is not advised to send large packets in this mode.
367 */
368#if !defined(RADIOLIB_STATIC_ONLY)
369//#define RADIOLIB_STATIC_ONLY
370#endif
371
372// set the size of static arrays to use
373#if !defined(RADIOLIB_STATIC_ARRAY_SIZE)
374 #define RADIOLIB_STATIC_ARRAY_SIZE (256)
375#endif
376
377
378// This only compiles on STM32 boards with SUBGHZ module, but also