X-Git-Url: http://git.rot13.org/?p=goodfet;a=blobdiff_plain;f=firmware%2Finclude%2Fnrf.h;h=24234957d71fdc26e1ed6463867c66704e3d493c;hp=dd901b15aa2cfb4b439a2502ccba81d69fa563b5;hb=c16ef9294fa7c938283a44a9a1d268fd88cd4ea8;hpb=9e0ad6ff5a05c7c40251bac76fffb17e13ab7229 diff --git a/firmware/include/nrf.h b/firmware/include/nrf.h index dd901b1..2423495 100644 --- a/firmware/include/nrf.h +++ b/firmware/include/nrf.h @@ -3,18 +3,29 @@ \brief Constants for NRF Driver */ -//Nordic RF Instructions +//Nordic RF Commands + +//Grab a packet, if one is available. +#define NRF_RX 0x80 +//Send a packet. +#define NRF_TX 0x81 +//Flush RX +#define NRF_RX_FLUSH 0x82 +//Flush TX +#define NRF_TX_FLUSH 0x83 + + +//Nordic RF SPI Instructions #define NRF_R_REGISTER 0x00 #define NRF_W_REGISTER 0x20 -#define NRF_R_RX_PAYLOAD 0x60 +#define NRF_R_RX_PAYLOAD 0x61 #define NRF_W_TX_PAYLOAD 0xA0 -#define NRF_FLUSH_TX 0xE0 -#define NRF_FLUSH_RX 0xE1 -#define NRF_REUSE_TX_PL 0xE2 +#define NRF_FLUSH_TX 0xE1 +#define NRF_FLUSH_RX 0xE2 +#define NRF_REUSE_TX_PL 0xE3 #define NRF_NOP 0xFF - //NRF24L01+ Registers //These aren't yet used, but are included for later //translation to XML.