My Project
|
Command definitions for SPI communication. More...
Macros | |
#define | R_REGISTER 0x00 |
#define | W_REGISTER 0x20 |
#define | R_RX_PAYLOAD 0x61 |
#define | W_TX_PAYLOAD 0xA0 |
#define | FLUSH_TX 0xE1 |
#define | FLUSH_RX 0xE2 |
#define | REUSE_TX_PL 0xE3 |
#define | ACTIVATE 0x50 |
#define | R_RX_PL_WID 0x60 |
#define | W_ACK_PAYLOAD 0xA8 |
#define | W_TX_PAYLOAD_NOACK 0xB0 |
#define | NOP 0xFF |
Command definitions for SPI communication.
#define ACTIVATE 0x50 |
Activate features
#define FLUSH_RX 0xE2 |
Flush RX FIFO
#define FLUSH_TX 0xE1 |
Flush TX FIFO
#define NOP 0xFF |
No operation, might be used to read status register
#define R_REGISTER 0x00 |
Read command and status registers
#define R_RX_PAYLOAD 0x61 |
Read RX payload
#define R_RX_PL_WID 0x60 |
Read RX payload width
#define REUSE_TX_PL 0xE3 |
Reuse last transmitted payload
#define W_ACK_PAYLOAD 0xA8 |
Write payload to be transmitted with ACK packet (bit[2:0] specify pipe)
#define W_REGISTER 0x20 |
Write command and status registers
#define W_TX_PAYLOAD 0xA0 |
Write TX payload
#define W_TX_PAYLOAD_NOACK 0xB0 |
Write TX payload and disable AUTOACK