2 \author Travis Goodspeed
3 \brief Constants for NRF Driver
6 //Nordic RF Instructions
7 #define NRF_R_REGISTER 0x00
8 #define NRF_W_REGISTER 0x20
9 #define NRF_R_RX_PAYLOAD 0x60
10 #define NRF_W_TX_PAYLOAD 0xA0
11 #define NRF_FLUSH_TX 0xE0
12 #define NRF_FLUSH_RX 0xE1
13 #define NRF_REUSE_TX_PL 0xE2
19 //These aren't yet used, but are included for later
21 #define NRF_CONFIG 0x00
22 #define NRF_EN_AA 0x01
23 #define NRF_EN_RXADDR 0x02
24 #define NRF_SETUP_AW 0x03
25 #define NRF_SETUP_RETR 0x04
26 #define NRF_RF_CH 0x05
27 #define NRF_RF_SETUP 0x06
28 #define NRF_STATUS 0x07
29 #define NRF_OBSERVE_TX 0x08
31 #define NRF_RX_ADDR_P0 0x0A
32 #define NRF_RX_ADDR_P1 0x0B
33 #define NRF_RX_ADDR_P2 0x0C
34 #define NRF_RX_ADDR_P3 0x0D
35 #define NRF_RX_ADDR_P4 0x0E
36 #define NRF_RX_ADDR_P5 0x0F
37 #define NRF_TX_ADDR 0x10
38 #define NRF_RX_PW_P0 0x11
39 #define NRF_RX_PW_P1 0x12
40 #define NRF_RX_PW_P2 0x13
41 #define NRF_RX_PW_P3 0x14
42 #define NRF_RX_PW_P4 0x15
43 #define NRF_RX_PW_P5 0x16
44 #define NRF_FIFO_STATUS 0x17
45 #define NRF_DYNPD 0x1C
46 //Also 32-byte buffers for ACK_PLD, TX_PLD, and RX_PLD.
47 //Separate SPI commands.