NRF24L01+ device struct. More...
NRF24L01+ device struct.
Definition at line 142 of file nrf24l01p_ng.h.
#include <nrf24l01p_ng.h>
Data Fields | ||
netdev_t | netdev | |
Netdev member. | ||
nrf24l01p_ng_params_t | params | |
Parameters. | ||
uint8_t | state | |
Current operation state. | ||
uint8_t | idle_state | |
State to return to after sending. | ||
struct { | ||
uint8_t rx_addr_long [2][NRF24L01P_NG_ADDR_WIDTH] | ||
Array to access the addresses of pipe 0 and pipe 1 via pipe indices. More... | ||
uint8_t rx_addr_short [4] | ||
Array to access the addresses of pipe 2, pipe 3, pipe 4 and pipe 5 via pipe indices. More... | ||
} | arxaddr | |
Rx addresses. | ||
struct { ... } nrf24l01p_ng::arxaddr |
Rx addresses.
The NRF24L01+ has 6 data pipes. Each data pipe has a unique address. The address of a pipe can be 3 to 5 bytes long but must be equal for all pipes. The addresses of pipe 0 and pipe 1 can be arbitrary while the addresses of pipe 2 to pipe 5 share the most significant bytes, thus they only differ in the least significant byte. The least significant byte must be different for all pipes.
Data pipe 0 is also the Tx pipe. That means if you want to send a frame, you must assign to pipe 0 the address of the recipient. After a transmission if you want to continue listening on pipe 0, the address of pipe 0 must be restored.
uint8_t nrf24l01p_ng::idle_state |
State to return to after sending.
Definition at line 146 of file nrf24l01p_ng.h.
netdev_t nrf24l01p_ng::netdev |
Netdev member.
Definition at line 143 of file nrf24l01p_ng.h.
nrf24l01p_ng_params_t nrf24l01p_ng::params |
Parameters.
Definition at line 144 of file nrf24l01p_ng.h.
uint8_t nrf24l01p_ng::rx_addr_long[2][NRF24L01P_NG_ADDR_WIDTH] |
Array to access the addresses of pipe 0 and pipe 1 via pipe indices.
Definition at line 169 of file nrf24l01p_ng.h.
uint8_t nrf24l01p_ng::rx_addr_short[4] |
Array to access the addresses of pipe 2, pipe 3, pipe 4 and pipe 5 via pipe indices.
Definition at line 175 of file nrf24l01p_ng.h.
uint8_t nrf24l01p_ng::state |
Current operation state.
Definition at line 145 of file nrf24l01p_ng.h.