]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/chips/tda5250/tda5250_message.h
remove group field, breaks MAC timings.
[tinyos-2.x.git] / tos / chips / tda5250 / tda5250_message.h
index 8631d265a3a52cb5d52afad7ccd2741ea87c1968..1f377841096bcfc190709115a0159c1bb8ecf8e3 100644 (file)
@@ -2,12 +2,14 @@
 #define TDA5250_MESSAGE_H
 
 #include "AM.h"
+#include "PacketAck.h"
 
 typedef nx_struct tda5250_header_t {
-  nx_am_addr_t addr;
-  nx_uint8_t length;
-  nx_am_group_t group;
-  nx_am_id_t type;
+  nx_uint8_t   length;
+  nx_am_addr_t src;
+  nx_am_addr_t dest;
+  nx_am_id_t   type;
+  nx_uint8_t   token;
 } tda5250_header_t;
 
 typedef nx_struct tda5250_footer_t {
@@ -17,9 +19,13 @@ typedef nx_struct tda5250_footer_t {
 typedef nx_struct tda5250_metadata_t {
   nx_uint16_t strength;
   nx_uint8_t ack;
-  nx_uint16_t time;
+  /* local time when message was generated */
+  nx_uint32_t time;
   nx_uint8_t sendSecurityMode;
   nx_uint8_t receiveSecurityMode;
+  /* some meta information that allows to compute a density */
+  nx_uint8_t maxRepetitions;
+  nx_uint8_t repetitions;
 } tda5250_metadata_t;
 
 #endif