summaryrefslogtreecommitdiffhomepage
path: root/digital/zigbit/bitcloud/stack/Components/ZCL/include/zclTaskManager.h
blob: 9e4e7ffc4c18abe1bbfe413f0a89265e8067db19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
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