]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/chips/cc1000/CC1000Msg.h
Merge devel code into the trunk.
[tinyos-2.x.git] / tos / chips / cc1000 / CC1000Msg.h
diff --git a/tos/chips/cc1000/CC1000Msg.h b/tos/chips/cc1000/CC1000Msg.h
new file mode 100644 (file)
index 0000000..282a743
--- /dev/null
@@ -0,0 +1,25 @@
+#ifndef CC1K_RADIO_MSG_H
+#define CC1K_RADIO_MSG_H
+
+#include "AM.h"
+
+typedef nx_struct CC1KHeader {
+  nx_am_addr_t addr;
+  nx_uint8_t length;
+  nx_am_group_t group;
+  nx_am_id_t type;
+} cc1000_header_t;
+
+typedef nx_struct CC1KFooter {
+  nxle_uint16_t crc;  
+} cc1000_footer_t;
+
+typedef nx_struct CC1KMetadata {
+  nx_uint16_t strength;
+  nx_uint8_t ack;
+  nx_uint16_t time;
+  nx_uint8_t sendSecurityMode;
+  nx_uint8_t receiveSecurityMode;  
+} cc1000_metadata_t;
+
+#endif