Loading...
Searching...
No Matches

Board specific configuration for all NRF24L01+ (NG) devices. More...

Detailed Description

Board specific configuration for all NRF24L01+ (NG) devices.

Author
Fabian Hüßler fabia.nosp@m.n.hu.nosp@m.essle.nosp@m.r@ov.nosp@m.gu.de

Definition in file nrf24l01p_ng_params.h.

#include "board.h"
#include "periph/gpio.h"
#include "periph/spi.h"
#include "kernel_defines.h"
#include "nrf24l01p_ng_constants.h"
#include "nrf24l01p_ng.h"
+ Include dependency graph for nrf24l01p_ng_params.h:

Go to the source code of this file.

#define NRF24L01P_NG_PARAM_SPI   SPI_DEV(0)
 SPI bus.
 
#define NRF24L01P_NG_PARAM_SPI_CLK   SPI_CLK_5MHZ
 SPI clock speed.
 
#define NRF24L01P_NG_PARAM_CS   GPIO_UNDEF
 SPI CS gpio pin.
 
#define NRF24L01P_NG_PARAM_CE   GPIO_UNDEF
 NRF24L01+ chip enable gpio pin.
 
#define NRF24L01P_NG_PARAM_IRQ   GPIO_UNDEF
 NRF24L01+ interrupt gpio pin.
 
#define NRF24L01P_NG_PARAM_CRC_LEN   (NRF24L01P_NG_CRC_2BYTE)
 Default CRC length.
 
#define NRF24L01P_NG_PARAM_TX_POWER   (NRF24L01P_NG_TX_POWER_0DBM)
 Default TX power.
 
#define NRF24L01P_NG_PARAM_DATA_RATE   (NRF24L01P_NG_RF_DR_2MBPS)
 Default data rate.
 
#define NRF24L01P_NG_PARAM_CHANNEL   (4)
 Default channel in [0; 124].
 
#define NRF24L01P_NG_PARAM_MAX_RETRANSM   (5)
 Default number of retransmissions.
 
#define NRF24L01P_NG_PARAM_RETRANSM_DELAY   (NRF24L01P_NG_ARD_2750US)
 Default retransmission delay.
 
#define NRF24L01P_NG_PARAMS
 Default NRF24L01+ device parameters.
 
#define NRF24L01P_NG_NUM   ARRAY_SIZE(nrf24l01p_ng_params)
 Number of NRF24L01+ device configurations.
 
static const nrf24l01p_ng_params_t nrf24l01p_ng_params []
 Static array that holds NRF24L01+ device configurations.
 

Macro Definition Documentation

◆ NRF24L01P_NG_NUM

#define NRF24L01P_NG_NUM   ARRAY_SIZE(nrf24l01p_ng_params)

Number of NRF24L01+ device configurations.

Definition at line 143 of file nrf24l01p_ng_params.h.

◆ NRF24L01P_NG_PARAM_CE

#define NRF24L01P_NG_PARAM_CE   GPIO_UNDEF

NRF24L01+ chip enable gpio pin.

Definition at line 56 of file nrf24l01p_ng_params.h.

◆ NRF24L01P_NG_PARAM_CHANNEL

#define NRF24L01P_NG_PARAM_CHANNEL   (4)

Default channel in [0; 124].

Definition at line 94 of file nrf24l01p_ng_params.h.

◆ NRF24L01P_NG_PARAM_CRC_LEN

#define NRF24L01P_NG_PARAM_CRC_LEN   (NRF24L01P_NG_CRC_2BYTE)

Default CRC length.

See also
nrf24l01p_ng_crc_t

Definition at line 71 of file nrf24l01p_ng_params.h.

◆ NRF24L01P_NG_PARAM_CS

#define NRF24L01P_NG_PARAM_CS   GPIO_UNDEF

SPI CS gpio pin.

Definition at line 49 of file nrf24l01p_ng_params.h.

◆ NRF24L01P_NG_PARAM_DATA_RATE

#define NRF24L01P_NG_PARAM_DATA_RATE   (NRF24L01P_NG_RF_DR_2MBPS)

Default data rate.

See also
nrf24l01p_ng_rfdr_t

Definition at line 87 of file nrf24l01p_ng_params.h.

◆ NRF24L01P_NG_PARAM_IRQ

#define NRF24L01P_NG_PARAM_IRQ   GPIO_UNDEF

NRF24L01+ interrupt gpio pin.

Definition at line 63 of file nrf24l01p_ng_params.h.

◆ NRF24L01P_NG_PARAM_MAX_RETRANSM

#define NRF24L01P_NG_PARAM_MAX_RETRANSM   (5)

Default number of retransmissions.

Definition at line 101 of file nrf24l01p_ng_params.h.

◆ NRF24L01P_NG_PARAM_RETRANSM_DELAY

#define NRF24L01P_NG_PARAM_RETRANSM_DELAY   (NRF24L01P_NG_ARD_2750US)

Default retransmission delay.

See also
nrf24l01p_ng_ard_t

Definition at line 109 of file nrf24l01p_ng_params.h.

◆ NRF24L01P_NG_PARAM_SPI

#define NRF24L01P_NG_PARAM_SPI   SPI_DEV(0)

SPI bus.

Definition at line 35 of file nrf24l01p_ng_params.h.

◆ NRF24L01P_NG_PARAM_SPI_CLK

#define NRF24L01P_NG_PARAM_SPI_CLK   SPI_CLK_5MHZ

SPI clock speed.

Definition at line 42 of file nrf24l01p_ng_params.h.

◆ NRF24L01P_NG_PARAM_TX_POWER

#define NRF24L01P_NG_PARAM_TX_POWER   (NRF24L01P_NG_TX_POWER_0DBM)

Default TX power.

See also
nrf24l01p_ng_tx_power_t

Definition at line 79 of file nrf24l01p_ng_params.h.

◆ NRF24L01P_NG_PARAMS

#define NRF24L01P_NG_PARAMS
Value:
{ \
.pin_cs = NRF24L01P_NG_PARAM_CS, \
.pin_ce = NRF24L01P_NG_PARAM_CE, \
.pin_irq = NRF24L01P_NG_PARAM_IRQ, \
.config = { \
.cfg_tx_power = NRF24L01P_NG_PARAM_TX_POWER, \
.cfg_data_rate = NRF24L01P_NG_PARAM_DATA_RATE, \
.cfg_channel = NRF24L01P_NG_PARAM_CHANNEL, \
.cfg_retr_delay = NRF24L01P_NG_PARAM_RETRANSM_DELAY, \
} \
}
#define NRF24L01P_NG_PARAM_CHANNEL
Default channel in [0; 124].
#define NRF24L01P_NG_PARAM_CS
SPI CS gpio pin.
#define NRF24L01P_NG_PARAM_IRQ
NRF24L01+ interrupt gpio pin.
#define NRF24L01P_NG_PARAM_MAX_RETRANSM
Default number of retransmissions.
#define NRF24L01P_NG_PARAM_RETRANSM_DELAY
Default retransmission delay.
#define NRF24L01P_NG_PARAM_TX_POWER
Default TX power.
#define NRF24L01P_NG_PARAM_SPI
SPI bus.
#define NRF24L01P_NG_PARAM_CRC_LEN
Default CRC length.
#define NRF24L01P_NG_PARAM_SPI_CLK
SPI clock speed.
#define NRF24L01P_NG_PARAM_DATA_RATE
Default data rate.
#define NRF24L01P_NG_PARAM_CE
NRF24L01+ chip enable gpio pin.

Default NRF24L01+ device parameters.

Definition at line 116 of file nrf24l01p_ng_params.h.

Variable Documentation

◆ nrf24l01p_ng_params

const nrf24l01p_ng_params_t nrf24l01p_ng_params[]
static
Initial value:
= {
}
#define NRF24L01P_NG_PARAMS
Default NRF24L01+ device parameters.

Static array that holds NRF24L01+ device configurations.

Definition at line 136 of file nrf24l01p_ng_params.h.