summaryrefslogtreecommitdiff
path: root/digital/zigbit/bitcloud/stack/Components/MAC_PHY/include/macEnvironment.h
diff options
context:
space:
mode:
Diffstat (limited to 'digital/zigbit/bitcloud/stack/Components/MAC_PHY/include/macEnvironment.h')
-rw-r--r--digital/zigbit/bitcloud/stack/Components/MAC_PHY/include/macEnvironment.h59
1 files changed, 59 insertions, 0 deletions
diff --git a/digital/zigbit/bitcloud/stack/Components/MAC_PHY/include/macEnvironment.h b/digital/zigbit/bitcloud/stack/Components/MAC_PHY/include/macEnvironment.h
new file mode 100644
index 00000000..155f7983
--- /dev/null
+++ b/digital/zigbit/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 <macAddr.h>
+
+/******************************************************************************
+ 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 */