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/zdoTaskManager.h | 66 ++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 digital/zigbit/bitcloud/stack/Components/ZDO/include/private/zdoTaskManager.h (limited to 'digital/zigbit/bitcloud/stack/Components/ZDO/include/private/zdoTaskManager.h') diff --git a/digital/zigbit/bitcloud/stack/Components/ZDO/include/private/zdoTaskManager.h b/digital/zigbit/bitcloud/stack/Components/ZDO/include/private/zdoTaskManager.h new file mode 100644 index 00000000..d7fbf779 --- /dev/null +++ b/digital/zigbit/bitcloud/stack/Components/ZDO/include/private/zdoTaskManager.h @@ -0,0 +1,66 @@ +/**************************************************************************//** + \file zdoTaskManager.h + + \brief The header file describes the constants, types and internal interface + of ZDO 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: +******************************************************************************/ + +#ifndef _ZDOTASKMANAGER_H +#define _ZDOTASKMANAGER_H + +/****************************************************************************** + Includes section +******************************************************************************/ +#include + +/****************************************************************************** + Definitions section +******************************************************************************/ + +/****************************************************************************** + Types section +******************************************************************************/ +typedef enum _ZdoTaskId_t +{ + ZDO_SECURITYMANAGER_TASK_ID, + ZDO_ZDP_FRAME_PROCESSOR_TASK_ID, + ZDO_ZDP_MANAGER_TASK_ID, + ZDO_POWER_MANAGER_TASK_ID, + ZDO_START_NETWORK_TASK_ID, +#ifdef _TC_SWAPOUT_ + ZDO_TC_SWAPOUT_TASK_ID, +#endif // _TC_SWAPOUT_ + ZDO_INIT_TASK_ID, + ZDO_LAST_TASK_ID // Not a real task +} ZdoTaskId_t; + +// Mask of posted ZDO tasks +typedef uint16_t ZdoTaskBitMask_t; + +typedef void (*ZdoTaskHandler_t)(void); + +/****************************************************************************** + Prototypes section +******************************************************************************/ + +/****************************************************************************** + \brief Post ZDO subtask +******************************************************************************/ +void zdoPostTask(ZdoTaskId_t task); + +/****************************************************************************** + \brief Remove ZDO subtask from list of posted tasks +******************************************************************************/ +void zdoUnpostTask(ZdoTaskId_t task); + +#endif // _ZDOTASKMANAGER_H_ -- cgit v1.2.3