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