summaryrefslogtreecommitdiffhomepage
path: root/digital/beacon/src/Bitcloud_stack/Components/APS/include/private/apsTaskManager.h
diff options
context:
space:
mode:
Diffstat (limited to 'digital/beacon/src/Bitcloud_stack/Components/APS/include/private/apsTaskManager.h')
-rw-r--r--digital/beacon/src/Bitcloud_stack/Components/APS/include/private/apsTaskManager.h68
1 files changed, 68 insertions, 0 deletions
diff --git a/digital/beacon/src/Bitcloud_stack/Components/APS/include/private/apsTaskManager.h b/digital/beacon/src/Bitcloud_stack/Components/APS/include/private/apsTaskManager.h
new file mode 100644
index 00000000..04035896
--- /dev/null
+++ b/digital/beacon/src/Bitcloud_stack/Components/APS/include/private/apsTaskManager.h
@@ -0,0 +1,68 @@
+/**************************************************************************//**
+ \file apsTaskManager.h
+
+ \brief Header file of APS 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 (BitCloudTM).
+
+ \internal
+ History:
+ 2010-12-12 Max Gekk - Created.
+ Last change:
+ $Id: apsTaskManager.h 17470 2011-06-10 11:31:00Z mgekk $
+ ******************************************************************************/
+#if !defined _APS_TASK_MANAGER_H
+#define _APS_TASK_MANAGER_H
+
+/******************************************************************************
+ Includes section
+ ******************************************************************************/
+#include <types.h>
+
+/******************************************************************************
+ Types section
+ ******************************************************************************/
+/** Identifiers of APS task handlers. */
+typedef enum _ApsTaskID_t
+{
+ APS_TASK_STATE_MACHINE,
+ APS_TASK_DATA,
+ APS_TASK_SECURITY,
+ APS_TASK_COMMAND_REQ,
+ APS_TASK_AUTH_REQ,
+ APS_TASK_SKKE_REQ,
+ APS_TASK_SKKE_RESP,
+ APS_TASK_TRANSPORT_KEY,
+ APS_TASKS_SIZE
+} ApsTaskID_t;
+
+/** Bit array of APS task. If bit is '1' the task is posted. */
+typedef uint8_t ApsTaskBitMask_t;
+
+/** Type of iterator for task identifiers. */
+typedef uint8_t ApsTaskIdIter_t;
+
+/******************************************************************************
+ Prototypes section
+ ******************************************************************************/
+/******************************************************************************
+ \brief post APS task.
+
+ \param taskID - identifier of APS task.
+ \return None.
+ ******************************************************************************/
+APS_PRIVATE void apsPostTask(const ApsTaskID_t taskID);
+
+/******************************************************************************
+ \brief Reset the APS task manager.
+ ******************************************************************************/
+APS_PRIVATE void apsResetTaskManager(void);
+
+#endif /* _APS_TASK_MANAGER_H */
+/** eof apsTaskManager.h */
+