summaryrefslogtreecommitdiff
path: root/digital/beacon/src/Bitcloud_stack/Components/APS/include/private/apsTaskManager.h
blob: 04035896faf5591ac05f42a9f707e3b07ec6bff6 (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
/**************************************************************************//**
  \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 */