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/private/nwkSyncLoss.h | 61 ++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 digital/zigbit/bitcloud/stack/Components/NWK/include/private/nwkSyncLoss.h (limited to 'digital/zigbit/bitcloud/stack/Components/NWK/include/private/nwkSyncLoss.h') diff --git a/digital/zigbit/bitcloud/stack/Components/NWK/include/private/nwkSyncLoss.h b/digital/zigbit/bitcloud/stack/Components/NWK/include/private/nwkSyncLoss.h new file mode 100644 index 00000000..aef3a380 --- /dev/null +++ b/digital/zigbit/bitcloud/stack/Components/NWK/include/private/nwkSyncLoss.h @@ -0,0 +1,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 +#include + +/****************************************************************************** + 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 */ + -- cgit v1.2.3