From a54ad9edce697133a024aff096e50f7e4f389d5b Mon Sep 17 00:00:00 2001 From: Florent Duchon Date: Sun, 18 Mar 2012 12:22:02 +0100 Subject: digital/beacon: import Zigbit stack (bitcloud) & avr sources --- .../Components/MAC_PHY/include/macAffix.h | 48 ++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 digital/beacon/src/Bitcloud_stack/Components/MAC_PHY/include/macAffix.h (limited to 'digital/beacon/src/Bitcloud_stack/Components/MAC_PHY/include/macAffix.h') diff --git a/digital/beacon/src/Bitcloud_stack/Components/MAC_PHY/include/macAffix.h b/digital/beacon/src/Bitcloud_stack/Components/MAC_PHY/include/macAffix.h new file mode 100644 index 00000000..3f5427ff --- /dev/null +++ b/digital/beacon/src/Bitcloud_stack/Components/MAC_PHY/include/macAffix.h @@ -0,0 +1,48 @@ +/**************************************************************************//** + \file macAffix.h + + \brief MAC frames' header and footer size constants. + + \author + Atmel Corporation: http://www.atmel.com \n + Support email: avr@atmel.com + + Copyright (c) 2008-2011, Atmel Corporation. All rights reserved. + Licensed under Atmel's Limited License Agreement (BitCloudTM). + + \internal + History: + 18/06/07 ALuzhetsky - Created. +******************************************************************************/ + +#ifndef _MACAFFIX_H +#define _MACAFFIX_H + +/****************************************************************************** + Includes section +******************************************************************************/ +#include + +/****************************************************************************** + Defines section +******************************************************************************/ +//! aMaxMACPayloadSize (IEEE 802.15.4-2006 Table 85). +#define MAC_MAX_MSDU_SIZE (PHY_MAX_PACKET_SIZE - MAC_MAX_MPDU_UNSECURED_OVERHEAD) +//! aMaxBeaconOverhead (IEEE 802.15.4-2006 Table 85). +#define MAC_MAX_BEACON_HEADER_LENGTH MAC_MAX_BEACON_OVERHEAD +//! aMaxMPDUUnsecuredOverhead (IEEE 802.15.4-2006 Table 85). +#define MAC_MAX_DATA_FRAME_HEADER_LENGTH MAC_MAX_MPDU_UNSECURED_OVERHEAD +/** + * \brief MAC footer length in common frame buffer. + * It has zero length becouse FCS is calculated by RF chip. MAC does't has to + * reserve bytes to allocate it's footer. + */ +#define MAC_MAX_DATA_FRAME_FOOTER_LENGTH 0U +//! Offset in common frame buffer for allocating MPDU. +#define MAC_MSDU_OFFSET MAC_MAX_MPDU_UNSECURED_OVERHEAD +//! MAC affix. +#define MAC_AFFIX_LENGTH (MAC_MAX_MPDU_UNSECURED_OVERHEAD + MAC_MAX_DATA_FRAME_FOOTER_LENGTH) + +#endif /* _MACAFFIX_H */ + +// eof macAffix.h -- cgit v1.2.3