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