summaryrefslogtreecommitdiff
path: root/digital/zigbit/bitcloud/stack/Components/ZDO/include/private/zdoReset.h
diff options
context:
space:
mode:
Diffstat (limited to 'digital/zigbit/bitcloud/stack/Components/ZDO/include/private/zdoReset.h')
-rw-r--r--digital/zigbit/bitcloud/stack/Components/ZDO/include/private/zdoReset.h75
1 files changed, 75 insertions, 0 deletions
diff --git a/digital/zigbit/bitcloud/stack/Components/ZDO/include/private/zdoReset.h b/digital/zigbit/bitcloud/stack/Components/ZDO/include/private/zdoReset.h
new file mode 100644
index 00000000..859ea7b4
--- /dev/null
+++ b/digital/zigbit/bitcloud/stack/Components/ZDO/include/private/zdoReset.h
@@ -0,0 +1,75 @@
+/**************************************************************************//**
+ \file zdoReset.h
+
+ \brief Interface for ZDO reset routine
+
+ \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:
+ 29.10.09 A. Taradov - Created
+******************************************************************************/
+
+#ifndef _ZDORESET_H
+#define _ZDORESET_H
+
+/******************************************************************************
+ Definitions section
+******************************************************************************/
+typedef struct
+{
+ ZDO_Status_t status;
+} ZDO_SoftwareResetConf_t;
+
+typedef struct
+{
+ ZDO_SoftwareResetConf_t confirm;
+ void (*ZDO_SoftwareResetConf)(ZDO_Status_t status);
+} ZDO_SoftwareResetReq_t;
+
+typedef struct
+{
+ void (*stackResetCallback)(ZDO_Status_t status);
+} ZdoReset_t;
+
+/******************************************************************************
+ Prototypes section
+******************************************************************************/
+/**************************************************************************//**
+ \brief Stack software reset routine.
+
+ \param[in] req - pointer to request parameters.
+
+ \return None.
+ ******************************************************************************/
+void ZDO_SoftwareResetReq(ZDO_SoftwareResetReq_t *req);
+
+/******************************************************************************
+ \brief ZDO reset routine
+******************************************************************************/
+void zdoReset(void);
+
+/**************************************************************************//**
+ \brief Stack resetting start routine.
+
+ \param[in] powerFailureControl - stack restoring after power failure control bitfield;
+ affects on initialization procedure.
+ \param[out] callback - callback to stack reset finished handler.
+
+ \return None.
+ ******************************************************************************/
+void zdoStackReset(NWK_PowerFailureControl_t powerFailureControl, void (*callback)(ZDO_Status_t status));
+
+/**************************************************************************//**
+ \brief Reset component initialization routine.
+ ******************************************************************************/
+void zdoInitResetComponent(void);
+
+#endif // _ZDORESET_H
+
+// eof zdoReset.h