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

  \brief SyncLoss header file.

  \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:
    2009-04-02 M. Gekk - Created.
   Last change:
    $Id: nwkSyncLoss.h 17448 2011-06-09 13:53:59Z ataradov $
 ******************************************************************************/
#if !defined _NWKSYNCLOSS_H
#define _NWKSYNCLOSS_H

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

/******************************************************************************
                                  Types section
 ******************************************************************************/
/** Internal states of SyncLoss component */
typedef enum _NwkSyncLossState_t
{
  NWK_SYNC_LOSS_IDLE_STATE = 0x00,
  NWK_REALIGNMENT_START_STATE = 0x01
} NwkSyncLossState_t;

/** Internal parameters of SyncLoss */
typedef struct _NwkSyncLoss_t
{
  NwkSyncLossState_t state;
  NWK_StartRouterReq_t startRouter;
} NwkSyncLoss_t;

/******************************************************************************
                                Prototypes section
 ******************************************************************************/
#if defined(_ROUTER_) && defined(NWK_COORD_REALIGNMENT)
/******************************************************************************
  \brief Reset SyncLoss component.
 ******************************************************************************/
NWK_PRIVATE void nwkResetSyncLoss(void);

#else /* _ROUTER_ && NWK_COORD_REALIGNMENT */

#define nwkResetSyncLoss() (void)0

#endif /* _ROUTER_ && NWK_COORD_REALIGNMENT */
#endif /* _NWKSYNCLOSS_H */
/** eof nwkSyncLoss.h */