summaryrefslogtreecommitdiffhomepage
path: root/digital/beacon/src/Bitcloud_stack/Components/ZDO/include/private/zdoPowerManager.h
diff options
context:
space:
mode:
Diffstat (limited to 'digital/beacon/src/Bitcloud_stack/Components/ZDO/include/private/zdoPowerManager.h')
-rw-r--r--digital/beacon/src/Bitcloud_stack/Components/ZDO/include/private/zdoPowerManager.h66
1 files changed, 66 insertions, 0 deletions
diff --git a/digital/beacon/src/Bitcloud_stack/Components/ZDO/include/private/zdoPowerManager.h b/digital/beacon/src/Bitcloud_stack/Components/ZDO/include/private/zdoPowerManager.h
new file mode 100644
index 00000000..3e827aeb
--- /dev/null
+++ b/digital/beacon/src/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 <nwk.h>
+#include <zdo.h>
+
+/******************************************************************************
+ 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