From b24866225a6301d3a663f874725e83c012dc25d3 Mon Sep 17 00:00:00 2001 From: Florent Duchon Date: Wed, 26 Dec 2012 17:36:00 +0100 Subject: digital/beacon: add bitcloud stack into common directory digital/zigbit --- .../Components/NWK/include/nwkAddressResolv.h | 67 ++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 digital/zigbit/bitcloud/stack/Components/NWK/include/nwkAddressResolv.h (limited to 'digital/zigbit/bitcloud/stack/Components/NWK/include/nwkAddressResolv.h') 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 + +/****************************************************************************** + 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 */ + -- cgit v1.2.3