355 * Every write to an SPI register using SPI set function will be verified by a subsequent read operation.
356 * This improves reliability, but slightly slows down communication.
357 * Note: Enabled by default.
358 */
359#if !defined(RADIOLIB_SPI_PARANOID)
360 #define RADIOLIB_SPI_PARANOID
361#endif
362
363/*
364 * Uncomment to enable parameter range checking
365 * RadioLib will check provided parameters (such as frequency) against limits determined by the device manufacturer.
366 * It is highly advised to keep this macro defined, removing it will allow invalid values to be set,
367 * possibly leading to bricked module and/or program crashing.
368 * Note: Enabled by default.
369 */
370#if !defined(RADIOLIB_CHECK_PARAMS)
371 #define RADIOLIB_CHECK_PARAMS
372#endif
373
374/*
375 * Uncomment to enable SX127x errata fix
376 * Warning: SX127x errata fix has been reported to cause issues with LoRa bandwidths lower than 62.5 kHz.
377 * It should only be enabled if you really are observing some errata-related issue.
378 * Note: Disabled by default.
379 */
380#if !defined(RADIOLIB_FIX_ERRATA_SX127X)
381//#define RADIOLIB_FIX_ERRATA_SX127X
382#endif
383
384/*
385 * Uncomment to enable god mode - all methods and member variables in all classes will be made public, thus making them accessible from Arduino code.
386 * Warning: Come on, it's called GOD mode - obviously only use this if you know what you're doing.
387 * Failure to heed the above warning may result in bricked module.
388 */
389#if !defined(RADIOLIB_GODMODE)
390//#define RADIOLIB_GODMODE
391#endif
392
393/*
394 * Uncomment to enable low-level hardware access
395 * This will make some hardware methods like SPI get/set accessible from the user sketch - think of it as "god mode lite"
396 * Warning: RadioLib won't stop you from writing invalid stuff into your device, so it's quite easy to brick your module with this.
397 */
398#if !defined(RADIOLIB_LOW_LEVEL)
399//#define RADIOLIB_LOW_LEVEL
400#endif
401
402/*
403 * Uncomment to enable pre-defined modules when using RadioShield.
404 */
405#if !defined(RADIOLIB_RADIOSHIELD)
406//#define RADIOLIB_RADIOSHIELD
407#endif
408
409/*
410 * Uncomment to enable interrupt-based timing control
411 * For details, see https://github.com/jgromes/RadioLib/wiki/Interrupt-Based-Timing
412 */
413#if !defined(RADIOLIB_INTERRUPT_TIMING)
414//#define RADIOLIB_INTERRUPT_TIMING
415#endif
416
417/*
418 * Uncomment to enable static-only memory management: no dynamic allocation will be performed.
419 * Warning: Large static arrays will be created in some methods. It is not advised to send large packets in this mode.
420 */
421#if !defined(RADIOLIB_STATIC_ONLY)
422//#define RADIOLIB_STATIC_ONLY
423#endif
424
425// set the size of static arrays to use
426#if !defined(RADIOLIB_STATIC_ARRAY_SIZE)
427 #define RADIOLIB_STATIC_ARRAY_SIZE (256)
428#endif
429
430// the base address for persistent storage
431// some protocols (e.g. LoRaWAN) require a method
432// to store some data persistently
433// on Arduino, this will use EEPROM, on non-Arduino platform,
434// it will use anything provided by the hardware abstraction layer
435// RadioLib will place these starting at this address