Loading...
Searching...
No Matches

NRF24L01+ device struct. More...

Detailed Description

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.
 

Field Documentation

◆ [struct]

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.

◆ idle_state

uint8_t nrf24l01p_ng::idle_state

State to return to after sending.

Definition at line 146 of file nrf24l01p_ng.h.

◆ netdev

netdev_t nrf24l01p_ng::netdev

Netdev member.

Definition at line 143 of file nrf24l01p_ng.h.

◆ params

nrf24l01p_ng_params_t nrf24l01p_ng::params

Parameters.

Definition at line 144 of file nrf24l01p_ng.h.

◆ rx_addr_long

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.

See also
nrf24l01p_ng_pipe_t

Definition at line 169 of file nrf24l01p_ng.h.

◆ rx_addr_short

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.

See also
nrf24l01p_ng_pipe_t

Definition at line 175 of file nrf24l01p_ng.h.

◆ state

uint8_t nrf24l01p_ng::state

Current operation state.

Definition at line 145 of file nrf24l01p_ng.h.


The documentation for this struct was generated from the following file: