17#ifndef NRF24L01P_NG_PARAMS_H
18#define NRF24L01P_NG_PARAMS_H
31#ifndef NRF24L01P_NG_PARAM_SPI
35#define NRF24L01P_NG_PARAM_SPI SPI_DEV(0)
38#ifndef NRF24L01P_NG_PARAM_SPI_CLK
42#define NRF24L01P_NG_PARAM_SPI_CLK SPI_CLK_5MHZ
45#ifndef NRF24L01P_NG_PARAM_CS
49#define NRF24L01P_NG_PARAM_CS GPIO_UNDEF
52#ifndef NRF24L01P_NG_PARAM_CE
56#define NRF24L01P_NG_PARAM_CE GPIO_UNDEF
59#ifndef NRF24L01P_NG_PARAM_IRQ
63#define NRF24L01P_NG_PARAM_IRQ GPIO_UNDEF
66#ifndef NRF24L01P_NG_PARAM_CRC_LEN
71#define NRF24L01P_NG_PARAM_CRC_LEN (NRF24L01P_NG_CRC_2BYTE)
74#ifndef NRF24L01P_NG_PARAM_TX_POWER
79#define NRF24L01P_NG_PARAM_TX_POWER (NRF24L01P_NG_TX_POWER_0DBM)
82#ifndef NRF24L01P_NG_PARAM_DATA_RATE_LVL
87#define NRF24L01P_NG_PARAM_DATA_RATE (NRF24L01P_NG_RF_DR_2MBPS)
90#ifndef NRF24L01P_NG_PARAM_CHANNEL
94#define NRF24L01P_NG_PARAM_CHANNEL (4)
97#ifndef NRF24L01P_NG_PARAM_MAX_RETRANSM
101#define NRF24L01P_NG_PARAM_MAX_RETRANSM (5)
104#ifndef NRF24L01P_NG_PARAM_RETRANSM_DELAY
109#define NRF24L01P_NG_PARAM_RETRANSM_DELAY (NRF24L01P_NG_ARD_2750US)
112#ifndef NRF24L01P_NG_PARAMS
116#define NRF24L01P_NG_PARAMS { \
117 .spi = NRF24L01P_NG_PARAM_SPI, \
118 .spi_clk = NRF24L01P_NG_PARAM_SPI_CLK, \
119 .pin_cs = NRF24L01P_NG_PARAM_CS, \
120 .pin_ce = NRF24L01P_NG_PARAM_CE, \
121 .pin_irq = NRF24L01P_NG_PARAM_IRQ, \
123 .cfg_crc = NRF24L01P_NG_PARAM_CRC_LEN, \
124 .cfg_tx_power = NRF24L01P_NG_PARAM_TX_POWER, \
125 .cfg_data_rate = NRF24L01P_NG_PARAM_DATA_RATE, \
126 .cfg_channel = NRF24L01P_NG_PARAM_CHANNEL, \
127 .cfg_max_retr = NRF24L01P_NG_PARAM_MAX_RETRANSM, \
128 .cfg_retr_delay = NRF24L01P_NG_PARAM_RETRANSM_DELAY, \
143#define NRF24L01P_NG_NUM ARRAY_SIZE(nrf24l01p_ng_params)
Low-level GPIO peripheral driver interface definitions.
Common macros and compiler attributes/pragmas configuration.
Public interface for NRF24L01+ (NG) devices.
Constants from the datasheet of the NRF24L01+ (NG) transceiver.
#define NRF24L01P_NG_PARAMS
Default NRF24L01+ device parameters.
static const nrf24l01p_ng_params_t nrf24l01p_ng_params[]
Static array that holds NRF24L01+ device configurations.
Low-level SPI peripheral driver interface definition.
Struct of NRF24L01+ initialization parameters.