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 --- .../ZDO/include/private/zdoPowerManager.h | 66 ++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 digital/zigbit/bitcloud/stack/Components/ZDO/include/private/zdoPowerManager.h (limited to 'digital/zigbit/bitcloud/stack/Components/ZDO/include/private/zdoPowerManager.h') diff --git a/digital/zigbit/bitcloud/stack/Components/ZDO/include/private/zdoPowerManager.h b/digital/zigbit/bitcloud/stack/Components/ZDO/include/private/zdoPowerManager.h new file mode 100644 index 00000000..3e827aeb --- /dev/null +++ b/digital/zigbit/bitcloud/stack/Components/ZDO/include/private/zdoPowerManager.h @@ -0,0 +1,66 @@ +/*************************************************************************//** + \file zdoPowerManager.h + + \brief The header file describes the constants, types and internal interface + of ZDO power manager + + \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: +******************************************************************************/ + +#ifndef _ZDOPOWERMANAGER_H +#define _ZDOPOWERMANAGER_H + +/****************************************************************************** + Includes section +******************************************************************************/ +#include +#include + +/****************************************************************************** + Types section +******************************************************************************/ +typedef struct _ZdoPowerManager_t +{ + ZDO_SleepReq_t *sleepReq; + ZDO_WakeUpReq_t *wakeUpReq; + bool sleeping; + MAC_RxEnableReq_t rxReq; + bool rxOnWhenIdle; + DeviceType_t deviceType; +#ifdef _ENDDEVICE_ + NWK_SyncReq_t syncReq; + HAL_AppTimer_t syncTimer; + uint8_t syncFailCounter; + bool waitingSyncConf; + bool polling; +#endif // _ENDDEVICE_ +} ZdoPowerManager_t; + +/****************************************************************************** + Prototypes section +******************************************************************************/ + +/**************************************************************************//** + \brief Reset power manager +******************************************************************************/ +void zdoPowerManagerReset(void); + +/****************************************************************************** + \brief Power Manager module task handler + + Note: always post ZDO_POWER_MANAGER_TASK_ID after performing actions that + may result in device ability to sleep. +******************************************************************************/ +void zdoPowerManagerHandler(void); + +#endif // _ZDOPOWERMANAGER_H_ + +// eof zdoPowerManager.h -- cgit v1.2.3