summaryrefslogtreecommitdiff
path: root/digital/zigbit/bitcloud/stack/Components/Security/TrustCentre/include/private/tcMem.h
blob: 78bc08b99d1aef9a9a7dcf8d4505979b62fc0c4a (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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
/**************************************************************************//**
  \file tcMem.h
  
  \brief Security Trust Centre memory manager header file.

  \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:
      2007.12.25 - ALuzhetsky created.
******************************************************************************/
#ifndef _TCMEM_H
#define _TCMEM_H

/******************************************************************************
                              Includes section.
******************************************************************************/
#include <queue.h>
#include <tcTaskManager.h>
#include <tcAuthenticHandler.h>
#include <tcKeyUpdateHandler.h>
#include <tcKeyEstablishHandler.h>
#include <tcRemoveHandler.h>

/******************************************************************************
                        Types section.
******************************************************************************/
/**************************************************************************//**
  \brief TBD.

  TBD
******************************************************************************/
typedef struct
{
  TcTaskManagerMem_t         taskManagerMem;
  TcAuthenticHandlerMem_t    authenticHandlerMem;
  TcKeyUpdateHandlerMem_t    keyUpdateHandlerMem;
#ifdef _LINK_SECURITY_ 
  TcKeyEstablishHandlerMem_t keyEstablishHandlerMem;
#endif // _LINK_SECURITY_ 
  TcRemoveHandlerMem_t       removeHandlerMem;
} TcMem_t;

/******************************************************************************
                        External variables.
******************************************************************************/
extern TcMem_t tcMem;

/******************************************************************************
                        Inline functions prototypes section.
******************************************************************************/
/**************************************************************************//**
  \brief TBD.
  
  \param TBD.
  \return TBD.
******************************************************************************/
INLINE TcTaskManagerMem_t* tcGetTaskManagerMem(void)
{
  return &tcMem.taskManagerMem;
}

/**************************************************************************//**
  \brief TBD.
  
  \param TBD.
  \return TBD.
******************************************************************************/
INLINE TcAuthenticHandlerMem_t* tcGetAuthenticHandlerMem(void)
{
  return &tcMem.authenticHandlerMem;
}

/**************************************************************************//**
  \brief TBD.
  
  \param TBD.
  \return TBD.
******************************************************************************/
INLINE TcKeyUpdateHandlerMem_t* tcGetKeyUpdateHandlerMem(void)
{
  return &tcMem.keyUpdateHandlerMem;
}

/**************************************************************************//**
  \brief TBD.
  
  \param TBD.
  \return TBD.
******************************************************************************/
#ifdef _LINK_SECURITY_ 
INLINE TcKeyEstablishHandlerMem_t* tcGetKeyEstablishHandlerMem(void)
{
  return &tcMem.keyEstablishHandlerMem;
}
#endif // _LINK_SECURITY_ 

/**************************************************************************//**
  \brief TBD.
  
  \param TBD.
  \return TBD.
******************************************************************************/
INLINE TcRemoveHandlerMem_t* tcGetRemoveHandlerMem(void)
{
  return &tcMem.removeHandlerMem;
}

#endif //_TCMEM_H

// eof tcMem.h