X-Git-Url: https://oss.titaniummirror.com/gitweb/?p=tinyos-2.x.git;a=blobdiff_plain;f=tos%2Flib%2Fmac%2Ftkn154%2FTKN154.h;h=baca7c03dd11b8c2922b730438a4cd1f368a94a0;hp=9889b7eb97a9ba3882ffe6fecfd164dcc4ecdc04;hb=e9bfab607e051bae6afb47b44892ce37541d1b44;hpb=adf1de6c009d13b7b52e68535c63b28f59c97400 diff --git a/tos/lib/mac/tkn154/TKN154.h b/tos/lib/mac/tkn154/TKN154.h index 9889b7eb..baca7c03 100644 --- a/tos/lib/mac/tkn154/TKN154.h +++ b/tos/lib/mac/tkn154/TKN154.h @@ -36,7 +36,6 @@ #ifndef __TKN154_H #define __TKN154_H - /**************************************************** * IEEE 802.15.4 Enumerations */ @@ -79,6 +78,7 @@ typedef enum ieee154_status IEEE154_UNSUPPORTED_ATTRIBUTE = 0xF4, IEEE154_UNSUPPORTED_LEGACY = 0xDE, IEEE154_UNSUPPORTED_SECURITY = 0xDF, + IEEE154_PURGED = 0xDA, // custom attribute } ieee154_status_t; typedef enum ieee154_association_status @@ -230,6 +230,37 @@ typedef bool ieee154_macPanCoordinator_t; // When security is implemented the following line should be commented out #define IEEE154_SECURITY_DISABLED +/**************************************************** + * Flags for disabling MAC functionality (to save program memory) + */ + +// Disable scanning (MLME_SCAN will not work): +// #define IEEE154_SCAN_DISABLED +// +// Disable beacon tracking (MLME_SYNC will not work): +// #define IEEE154_BEACON_SYNC_DISABLED +// +// Disable beacon transmission (MLME_START will not work): +// #define IEEE154_BEACON_TX_DISABLED +// +// Disable promiscuous mode (PromiscuousMode.start() will not work): +// #define IEEE154_PROMISCUOUS_MODE_DISABLED +// +// Disallow next higher layer to switch to receive mode (MLME_RX_ENABLE will not work): +// #define IEEE154_RXENABLE_DISABLED +// +// Disable association (MLME_ASSOCIATE will not work): +// #define IEEE154_ASSOCIATION_DISABLED +// +// Disable association (MLME_DISASSOCIATE will not work): +// #define IEEE154_DISASSOCIATION_DISABLED +// +// Disable coordinator realignment (MLME_ORPHAN will not work): +// #define IEEE154_COORD_REALIGNMENT_DISABLED +// +// Disable transmission of broadcasts from coordinator to devices: +// #define IEEE154_COORD_BROADCAST_DISABLED + /**************************************************** * Static memory allocation for Queue/Pool */