21#ifndef SX1280_PARAMS_H
22#define SX1280_PARAMS_H
47#ifndef USE_RX_CONTINUOUS_MODE
48#define USE_RX_CONTINUOUS_MODE
51#ifdef USE_RX_CONTINUOUS_MODE
52#define SX1280_RX_MODE SX1280_RX_CONTINUOUS_MODE
54#define SX1280_RX_MODE SX1280_RX_SINGLE_MODE
57#ifndef SX1280_PARAM_SPI
58#define SX1280_PARAM_SPI SPI_DEV(0)
61#ifndef SX1280_PARAM_SPI_CLK
62#define SX1280_PARAM_SPI_CLK SPI_CLK_5MHZ
65#ifndef SX1280_PARAM_SPI_MODE
66#define SX1280_PARAM_SPI_MODE SPI_MODE_0
69#ifndef SX1280_PARAM_SPI_NSS
70#define SX1280_PARAM_SPI_NSS GPIO_PIN(1, 6)
73#ifndef SX1280_PARAM_RESET
74#define SX1280_PARAM_RESET GPIO_PIN(0, 8)
77#ifndef SX1280_PARAM_DIO0
78#define SX1280_PARAM_DIO0 GPIO_PIN(1, 10)
81#ifndef SX1280_PARAM_DIO1
82#define SX1280_PARAM_DIO1 GPIO_PIN(2, 7)
89#define SX1280_PARAMS { .spi = SX1280_PARAM_SPI, \
90 .spi_mode = SX1280_PARAM_SPI_MODE, \
91 .spi_clk = SX1280_PARAM_SPI_CLK, \
92 .nss_pin = SX1280_PARAM_SPI_NSS, \
93 .reset_pin = SX1280_PARAM_RESET, \
94 .dio0_pin = SX1280_PARAM_DIO0, \
95 .dio1_pin = SX1280_PARAM_DIO1, \
Device initialization parameters.
Internal addresses, registers and constants.
#define SX1280_PARAMS
Default sx1280 parameters.
static const sx1280_params_t sx1280_params[]
Configuration struct.