29#ifndef NRF24L01P_NG_PARAM_SPI
33#define NRF24L01P_NG_PARAM_SPI SPI_DEV(0)
36#ifndef NRF24L01P_NG_PARAM_SPI_CLK
40#define NRF24L01P_NG_PARAM_SPI_CLK SPI_CLK_5MHZ
43#ifndef NRF24L01P_NG_PARAM_CS
47#define NRF24L01P_NG_PARAM_CS GPIO_UNDEF
50#ifndef NRF24L01P_NG_PARAM_CE
54#define NRF24L01P_NG_PARAM_CE GPIO_UNDEF
57#ifndef NRF24L01P_NG_PARAM_IRQ
61#define NRF24L01P_NG_PARAM_IRQ GPIO_UNDEF
64#ifndef NRF24L01P_NG_PARAM_CRC_LEN
69#define NRF24L01P_NG_PARAM_CRC_LEN (NRF24L01P_NG_CRC_2BYTE)
72#ifndef NRF24L01P_NG_PARAM_TX_POWER
77#define NRF24L01P_NG_PARAM_TX_POWER (NRF24L01P_NG_TX_POWER_0DBM)
80#ifndef NRF24L01P_NG_PARAM_DATA_RATE_LVL
85#define NRF24L01P_NG_PARAM_DATA_RATE (NRF24L01P_NG_RF_DR_2MBPS)
88#ifndef NRF24L01P_NG_PARAM_CHANNEL
92#define NRF24L01P_NG_PARAM_CHANNEL (4)
95#ifndef NRF24L01P_NG_PARAM_MAX_RETRANSM
99#define NRF24L01P_NG_PARAM_MAX_RETRANSM (5)
102#ifndef NRF24L01P_NG_PARAM_RETRANSM_DELAY
107#define NRF24L01P_NG_PARAM_RETRANSM_DELAY (NRF24L01P_NG_ARD_2750US)
110#ifndef NRF24L01P_NG_PARAMS
114#define NRF24L01P_NG_PARAMS { \
115 .spi = NRF24L01P_NG_PARAM_SPI, \
116 .spi_clk = NRF24L01P_NG_PARAM_SPI_CLK, \
117 .pin_cs = NRF24L01P_NG_PARAM_CS, \
118 .pin_ce = NRF24L01P_NG_PARAM_CE, \
119 .pin_irq = NRF24L01P_NG_PARAM_IRQ, \
121 .cfg_crc = NRF24L01P_NG_PARAM_CRC_LEN, \
122 .cfg_tx_power = NRF24L01P_NG_PARAM_TX_POWER, \
123 .cfg_data_rate = NRF24L01P_NG_PARAM_DATA_RATE, \
124 .cfg_channel = NRF24L01P_NG_PARAM_CHANNEL, \
125 .cfg_max_retr = NRF24L01P_NG_PARAM_MAX_RETRANSM, \
126 .cfg_retr_delay = NRF24L01P_NG_PARAM_RETRANSM_DELAY, \
141#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.