summaryrefslogtreecommitdiff
path: root/digital/zigbit/bitcloud/stack/Components/ZCL/include/zclTaskManager.h
diff options
context:
space:
mode:
authorFlorent Duchon2012-12-26 17:36:00 +0100
committerFlorent Duchon2013-02-13 21:21:12 +0100
commitb24866225a6301d3a663f874725e83c012dc25d3 (patch)
treeca527a2aab9abcdfbaf244c53ca63f0c531892b0 /digital/zigbit/bitcloud/stack/Components/ZCL/include/zclTaskManager.h
parent2ba279f4eb2f23fa08a7c13465d16ae6ba5d0f96 (diff)
digital/beacon: add bitcloud stack into common directory digital/zigbit
Diffstat (limited to 'digital/zigbit/bitcloud/stack/Components/ZCL/include/zclTaskManager.h')
-rw-r--r--digital/zigbit/bitcloud/stack/Components/ZCL/include/zclTaskManager.h71
1 files changed, 71 insertions, 0 deletions
diff --git a/digital/zigbit/bitcloud/stack/Components/ZCL/include/zclTaskManager.h b/digital/zigbit/bitcloud/stack/Components/ZCL/include/zclTaskManager.h
new file mode 100644
index 00000000..9e4e7ffc
--- /dev/null
+++ b/digital/zigbit/bitcloud/stack/Components/ZCL/include/zclTaskManager.h
@@ -0,0 +1,71 @@
+/************************************************************************//**
+ \file zclTaskManager.h
+
+ \brief
+ The header file describes the public interface of ZCL Task Manager
+
+ The file describes the public interface and types of ZCL Task 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 (BitCloudTMs).
+
+ \internal
+ History:
+ 01.12.08 A. Poptashov - Created.
+******************************************************************************/
+
+#ifndef _ZCLTASKMANAGER_H
+#define _ZCLTASKMANAGER_H
+
+/******************************************************************************
+ Includes section
+******************************************************************************/
+#include "types.h"
+
+/******************************************************************************
+ Define(s) section
+******************************************************************************/
+
+/******************************************************************************
+ Types section
+******************************************************************************/
+/** Identifiers of ZCL task handlers. */
+typedef enum _ZclTaskId_t
+{
+ ZCL_CAPS_TASK_ID,
+ ZCL_SUBTASK_ID,
+ ZCL_PARSER_TASK_ID,
+ ZCL_TASKS_SIZE
+} ZclTaskId_t;
+
+/** Bit array of ZCL task. If bit is '1' the task is posted. */
+typedef uint8_t ZclTaskBitMask_t;
+
+/** Type of iterator for task identifiers. */
+typedef uint8_t ZclTaskIdIter_t;
+
+/******************************************************************************
+ External variables section
+******************************************************************************/
+
+/******************************************************************************
+ Prototypes section
+******************************************************************************/
+/*************************************************************************//**
+ \brief ZCL Task Manager post task function
+ \param[in] taskId - Determines the task Id to be posted (ZclTaskId_t should be used)
+*****************************************************************************/
+void zclPostTask(ZclTaskId_t taskId);
+
+/*************************************************************************//**
+ \brief Task Manager task handler function
+*****************************************************************************/
+void ZCL_TaskHandler(void);
+
+#endif //#ifndef _ZCLTASKMANAGER_H
+
+//eof zclTaskManager.h