X-Git-Url: https://oss.titaniummirror.com/gitweb/?p=tinyos-2.x.git;a=blobdiff_plain;f=tos%2Fplatforms%2Ftelosb%2Fmac%2Ftkn154%2Fplatform_message.h;h=f13513df76fb702c0787a3cd61a361a45eed1922;hp=bbff8982d172a60903745ef4f249a39dbcbee008;hb=e9bfab607e051bae6afb47b44892ce37541d1b44;hpb=adf1de6c009d13b7b52e68535c63b28f59c97400 diff --git a/tos/platforms/telosb/mac/tkn154/platform_message.h b/tos/platforms/telosb/mac/tkn154/platform_message.h index bbff8982..f13513df 100644 --- a/tos/platforms/telosb/mac/tkn154/platform_message.h +++ b/tos/platforms/telosb/mac/tkn154/platform_message.h @@ -6,27 +6,11 @@ #include -#ifndef IEEE154_OLD_INTERFACES +/* The following include pulls in the ieee154_header_t/ieee154_metadata_t definitions */ #include -#else -typedef struct { - uint8_t control; // stores length (lower 7 bits), top bit -> promiscuous mode - uint8_t mhr[23]; -} ieee154_header_t; - -typedef struct { - uint8_t rssi; - uint8_t linkQuality; - uint32_t timestamp; -} ieee154_metadata_t; -#endif -#ifdef TOSH_DATA_LENGTH -#undef TOSH_DATA_LENGTH -#endif -// TOSH_DATA_LENGTH may be smaller than 118, but then we'll -// not be able to receive/send all IEEE 802.15.4 packets -#define TOSH_DATA_LENGTH 118 +/* TOSH_DATA_LENGTH should be the maximum length of the MAC payload */ +#define TOSH_DATA_LENGTH IEEE154_aMaxMACPayloadSize typedef union message_header { ieee154_header_t ieee154;