summaryrefslogtreecommitdiffhomepage
path: root/digital/zigbit/bitcloud/stack/Components/NWK/include/nwkAddressResolv.h
diff options
context:
space:
mode:
authorFlorent Duchon2012-12-26 17:36:00 +0100
committerFlorent Duchon2013-02-13 21:21:12 +0100
commitb24866225a6301d3a663f874725e83c012dc25d3 (patch)
treeca527a2aab9abcdfbaf244c53ca63f0c531892b0 /digital/zigbit/bitcloud/stack/Components/NWK/include/nwkAddressResolv.h
parent2ba279f4eb2f23fa08a7c13465d16ae6ba5d0f96 (diff)
digital/beacon: add bitcloud stack into common directory digital/zigbit
Diffstat (limited to 'digital/zigbit/bitcloud/stack/Components/NWK/include/nwkAddressResolv.h')
-rw-r--r--digital/zigbit/bitcloud/stack/Components/NWK/include/nwkAddressResolv.h67
1 files changed, 67 insertions, 0 deletions
diff --git a/digital/zigbit/bitcloud/stack/Components/NWK/include/nwkAddressResolv.h b/digital/zigbit/bitcloud/stack/Components/NWK/include/nwkAddressResolv.h
new file mode 100644
index 00000000..a89e439d
--- /dev/null
+++ b/digital/zigbit/bitcloud/stack/Components/NWK/include/nwkAddressResolv.h
@@ -0,0 +1,67 @@
+/**************************************************************************//**
+ \file nwkAddressResolv.h
+
+ \brief Interface of address resolution.
+
+ \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:
+ 2010-07-04 Max Gekk - Created.
+ Last change:
+ $Id: nwkAddressResolv.h 17448 2011-06-09 13:53:59Z ataradov $
+ ******************************************************************************/
+#if !defined _NWK_ADDRESS_RESOLV_H
+#define _NWK_ADDRESS_RESOLV_H
+
+/******************************************************************************
+ Includes section
+ ******************************************************************************/
+#include <appFramework.h>
+
+/******************************************************************************
+ Prototypes section
+ ******************************************************************************/
+/**************************************************************************//**
+ \brief Link short network and IEEE extended address.
+
+ \param[in] shortAddr - a short address.
+ \param[in] extAddr - an extended address.
+ \return 'true' if short and extended addresses are linked successfully
+ otherwise 'false'.
+ ******************************************************************************/
+bool NWK_LinkShortAndExtAddress(const ShortAddr_t shortAddr,
+ const ExtAddr_t extAddr);
+
+/**************************************************************************//**
+ \brief Remove the entry with given address from the address map.
+
+ \param[in] extAddr - pointer to a extended address.
+ \return None.
+ ******************************************************************************/
+void NWK_RemoveFromAddressMap(const ExtAddr_t *const extAddr);
+
+/**************************************************************************//**
+ \brief Searching a extended address by the short address.
+
+ \param[in] shortAddr - a short address.
+ \return Pointer to the extended address in the address map.
+ ******************************************************************************/
+const ExtAddr_t* NWK_GetExtByShortAddress(const ShortAddr_t shortAddr);
+
+/**************************************************************************//**
+ \brief Searching a short address by the extended address.
+
+ \param[in] extAddr - pointer to the extended address.
+ \return Pointer to the short address in the address map.
+ ******************************************************************************/
+const ShortAddr_t* NWK_GetShortByExtAddress(const ExtAddr_t *const extAddr);
+
+#endif /* _NWK_ADDRESS_RESOLV_H */
+/** eof nwkAddressResolv.h */
+