typedef uint8_t cc2420_status_t;
+#ifndef TFRAMES_ENABLED
+#define CC2420_IFRAME_TYPE
+#endif
+
/**
* CC2420 header. An I-frame (interoperability frame) header has an
* extra network byte specified by 6LowPAN
nx_uint8_t tx_power;
nx_bool crc;
nx_bool ack;
- nx_uint16_t time;
+ nx_bool timesync;
+ nx_uint32_t timestamp;
nx_uint16_t rxInterval;
/** Packet Link Metadata */
#endif
/**
- * The 6LowPAN ID has yet to be defined for a TinyOS network.
+ * The 6LowPAN NALP ID for a TinyOS network is 63 (TEP 125).
*/
#ifndef TINYOS_6LOWPAN_NETWORK_ID
-#define TINYOS_6LOWPAN_NETWORK_ID 0x0
+#define TINYOS_6LOWPAN_NETWORK_ID 0x3f
#endif
MAC_FOOTER_SIZE = sizeof( uint16_t ),
// MDU
MAC_PACKET_SIZE = MAC_HEADER_SIZE + TOSH_DATA_LENGTH + MAC_FOOTER_SIZE,
+
+ CC2420_SIZE = MAC_HEADER_SIZE + MAC_FOOTER_SIZE,
};
enum cc2420_enums {
CC2420_SFDMUX_XOSC16M_STABLE = 24,
};
+enum
+{
+ CC2420_INVALID_TIMESTAMP = 0x80000000L,
+};
+
#endif