summaryrefslogtreecommitdiff
path: root/digital/zigbit/bitcloud/stack/Components/NWK/include/private/nwkDirectJoin.h
blob: 6b87b0250753a80d9c6992d2d80db9c533709102 (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
/*****************************************************************************
  \file nwkDirectJoin.h

  \brief Interface of directly join another device to network.

  \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-03-17 I.Vagulin - Created.
   Last change:
    $Id: nwkDirectJoin.h 17448 2011-06-09 13:53:59Z ataradov $
 ******************************************************************************/
#if !defined _NWK_DIRECT_JOIN_H
#define _NWKDIRECTJOIN_H

/******************************************************************************
                                Includes section
 ******************************************************************************/
#include <nwkConfig.h>
#include <queue.h>

/******************************************************************************
                                 Types section
 ******************************************************************************/
/** Direct join memory */
typedef struct _NwkDirectJoin_t
{
  /** Request queue */
  QueueDescriptor_t queue;
} NwkDirectJoin_t;

/******************************************************************************
                               Prototypes section
 ******************************************************************************/
#if (defined(_ROUTER_) || defined(_COORDINATOR_)) && defined(_NWK_DIRECT_JOIN_)
/**************************************************************************//**
  \brief Reseting of the direct join module.
 ******************************************************************************/
NWK_PRIVATE void nwkResetDirectJoin(void);

/**************************************************************************//**
  \brief task handler of diret join module
 ******************************************************************************/
NWK_PRIVATE void nwkDirectJoinTaskHandler(void);
#else

#define nwkResetDirectJoin() (void)0
#define nwkDirectJoinTaskHandler NULL

#endif /* _NWK_DIRECT_JOIN_ and (_ROUTER_ or _COORDINATOR_) */
#endif /* _NWK_DIRECT_JOIN_H */
/** eof nwkDirectJoin.h */