X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fchips%2Frf2xx%2Flayers%2FTimeSyncMessageLayer.h;h=dbb1c10d90c8f3786e93bcc2b05900bd4ea7b468;hb=a74f3a348646dbf95e18fb2def215f8d35035d69;hp=51e3842cbd61d07da4cea67c01d9d9c6dabf4136;hpb=a37310d42958c5ea7a6d513ac61e6182b0bc9ba1;p=tinyos-2.x.git diff --git a/tos/chips/rf2xx/layers/TimeSyncMessageLayer.h b/tos/chips/rf2xx/layers/TimeSyncMessageLayer.h index 51e3842c..dbb1c10d 100644 --- a/tos/chips/rf2xx/layers/TimeSyncMessageLayer.h +++ b/tos/chips/rf2xx/layers/TimeSyncMessageLayer.h @@ -24,10 +24,26 @@ #ifndef __TIMESYNCMESSAGELAYER_H__ #define __TIMESYNCMESSAGELAYER_H__ -// this value is sent in the air +#include + +#ifndef TIMESYNC_AMTYPE +#define TIMESYNC_AMTYPE 0x3D +#endif + +// this is sent over the air typedef nx_int32_t timesync_relative_t; -// this value is stored in memory +// this is stored in memory typedef uint32_t timesync_absolute_t; +typedef struct timesync_footer_t +{ + nx_am_id_t type; + union + { + timesync_relative_t relative; + timesync_absolute_t absolute; + }; +} timesync_footer_t; + #endif//__TIMESYNCMESSAGELAYER_H__