]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/lib/tossim/TossimRadioMsg.h
Merge devel code into the trunk.
[tinyos-2.x.git] / tos / lib / tossim / TossimRadioMsg.h
diff --git a/tos/lib/tossim/TossimRadioMsg.h b/tos/lib/tossim/TossimRadioMsg.h
new file mode 100644 (file)
index 0000000..29b7fd8
--- /dev/null
@@ -0,0 +1,22 @@
+#ifndef TOSSIM_RADIO_MSG_H
+#define TOSSIM_RADIO_MSG_H
+
+#include "AM.h"
+
+typedef nx_struct tossim_header {
+  nx_am_addr_t addr;
+  nx_uint8_t length;
+  nx_am_id_t type;
+} tossim_header_t;
+
+typedef nx_struct tossim_footer {
+  nxle_uint16_t crc;  
+} tossim_footer_t;
+
+typedef nx_struct tossim_metadata {
+  nx_uint16_t strength;
+  nx_uint8_t ack;
+  nx_uint16_t time;
+} tossim_metadata_t;
+
+#endif