summaryrefslogtreecommitdiffhomepage
path: root/digital/zigbit/bitcloud/stack/Components/NWK/include/nwkAddressResolv.h
blob: a89e439d1be47099310476e6c6529fd26edb77ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
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 */