projects
/
goodfet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
EM260 client is finally showing signs of life!
[goodfet]
/
firmware
/
include
/
nrf.h
diff --git
a/firmware/include/nrf.h
b/firmware/include/nrf.h
index
dd901b1
..
2423495
100644
(file)
--- a/
firmware/include/nrf.h
+++ b/
firmware/include/nrf.h
@@
-3,18
+3,29
@@
\brief Constants for NRF Driver
*/
\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_REGISTER 0x00
#define NRF_W_REGISTER 0x20
-#define NRF_R_RX_PAYLOAD 0x6
0
+#define NRF_R_RX_PAYLOAD 0x6
1
#define NRF_W_TX_PAYLOAD 0xA0
#define NRF_W_TX_PAYLOAD 0xA0
-#define NRF_FLUSH_TX 0xE
0
-#define NRF_FLUSH_RX 0xE
1
-#define NRF_REUSE_TX_PL 0xE
2
+#define NRF_FLUSH_TX 0xE
1
+#define NRF_FLUSH_RX 0xE
2
+#define NRF_REUSE_TX_PL 0xE
3
#define NRF_NOP 0xFF
#define NRF_NOP 0xFF
-
//NRF24L01+ Registers
//These aren't yet used, but are included for later
//translation to XML.
//NRF24L01+ Registers
//These aren't yet used, but are included for later
//translation to XML.