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/macEnvironment.h | 59 ++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 digital/beacon/src/Bitcloud_stack/Components/MAC_PHY/include/macEnvironment.h (limited to 'digital/beacon/src/Bitcloud_stack/Components/MAC_PHY/include/macEnvironment.h') diff --git a/digital/beacon/src/Bitcloud_stack/Components/MAC_PHY/include/macEnvironment.h b/digital/beacon/src/Bitcloud_stack/Components/MAC_PHY/include/macEnvironment.h new file mode 100644 index 00000000..155f7983 --- /dev/null +++ b/digital/beacon/src/Bitcloud_stack/Components/MAC_PHY/include/macEnvironment.h @@ -0,0 +1,59 @@ +/**************************************************************************//** + \file macEnvironment.h + + \brief Public interface of MAC Environment. + + \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: + 22/02/11 M. Gekk - Created. + ******************************************************************************/ +#ifndef _MAC_ENVIRONMENT_H +#define _MAC_ENVIRONMENT_H + +/****************************************************************************** + Includes section + ******************************************************************************/ +#include + +/****************************************************************************** + Prototypes section + ******************************************************************************/ +/**************************************************************************//** + \brief Gets pointer to extended address. + \return pointer to extended address. + ******************************************************************************/ +const ExtAddr_t* MAC_GetExtAddr(void); + +/**************************************************************************//** + \brief Sets extended address. + \param extAddr - extended address. + + \return none. + ******************************************************************************/ +void MAC_SetExtAddr(const ExtAddr_t *const extAddr); + +/**************************************************************************//** + \brief Checks, if extended address is equal to our own one + \param extAddr - pointer to extended address to check + + \return true, if extended address is equal to our own one; false - otherwise + ******************************************************************************/ +bool MAC_IsOwnExtAddr(const ExtAddr_t *const extAddr); + +/**************************************************************************//** + \brief Convert octet amount to transmit duration. + \param octets - number of octets. + + \return Time of octets transmission in milliseconds. + ******************************************************************************/ +uint32_t MAC_GetOctetsTransmissionTimeInMs(const uint32_t octets); + +#endif /* _MAC_ENVIRONMENT_H */ +/** eof macEnvironment.h */ -- cgit v1.2.3