]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/chips/rf2xx/rf212/RF212DriverLayer.h
add constants used for auto ack
[tinyos-2.x.git] / tos / chips / rf2xx / rf212 / RF212DriverLayer.h
index 0224247f75ee2a2bb2e283194d49cdd43517bfe4..4c0fae2c9297e0e55bd1b6129077531a88239a47 100644 (file)
 #ifndef __RF212DRIVERLAYER_H__
 #define __RF212DRIVERLAYER_H__
 
+typedef nx_struct rf212_header_t
+{
+       nxle_uint8_t length;
+} rf212_header_t;
+
 typedef struct rf212_metadata_t
 {
        uint8_t lqi;
@@ -85,8 +90,8 @@ enum rf212_trx_status_enums
        RF212_TRX_OFF = 8,
        RF212_PLL_ON = 9,
        RF212_SLEEP = 15,
-       RF212_BUSY_RX_AACK = 16,
-       RF212_BUSR_TX_ARET = 17,
+       RF212_BUSY_RX_AACK = 17,
+       RF212_BUSR_TX_ARET = 18,
        RF212_RX_AACK_ON = 22,
        RF212_TX_ARET_ON = 25,
        RF212_RX_ON_NOCLK = 28,
@@ -99,8 +104,11 @@ enum rf212_trx_state_enums
 {
        RF212_TRAC_STATUS_MASK = 0xE0,
        RF212_TRAC_SUCCESS = 0,
+       RF212_TRAC_SUCCESS_DATA_PENDING = 1 << 5,
+       RF212_TRAC_SUCCESS_WAIT_FOR_ACK = 2 << 5,
        RF212_TRAC_CHANNEL_ACCESS_FAILURE = 3 << 5,
        RF212_TRAC_NO_ACK = 5 << 5,
+       RF212_TRAC_INVALID = 7 << 5,
        RF212_TRX_CMD_MASK = 0x1F,
        RF212_NOP = 0,
        RF212_TX_START = 2,