My Project
Loading...
Searching...
No Matches
SPI Commands

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

Detailed Description

Command definitions for SPI communication.

Macro Definition Documentation

◆ ACTIVATE

#define ACTIVATE   0x50

Activate features

◆ FLUSH_RX

#define FLUSH_RX   0xE2

Flush RX FIFO

◆ FLUSH_TX

#define FLUSH_TX   0xE1

Flush TX FIFO

◆ NOP

#define NOP   0xFF

No operation, might be used to read status register

◆ R_REGISTER

#define R_REGISTER   0x00

Read command and status registers

◆ R_RX_PAYLOAD

#define R_RX_PAYLOAD   0x61

Read RX payload

◆ R_RX_PL_WID

#define R_RX_PL_WID   0x60

Read RX payload width

◆ REUSE_TX_PL

#define REUSE_TX_PL   0xE3

Reuse last transmitted payload

◆ W_ACK_PAYLOAD

#define W_ACK_PAYLOAD   0xA8

Write payload to be transmitted with ACK packet (bit[2:0] specify pipe)

◆ W_REGISTER

#define W_REGISTER   0x20

Write command and status registers

◆ W_TX_PAYLOAD

#define W_TX_PAYLOAD   0xA0

Write TX payload

◆ W_TX_PAYLOAD_NOACK

#define W_TX_PAYLOAD_NOACK   0xB0

Write TX payload and disable AUTOACK