summaryrefslogtreecommitdiff
path: root/digital/beacon/src/Bitcloud_stack/Components/Security/TrustCentre/include/private/tcMem.h
diff options
context:
space:
mode:
authorFlorent Duchon2012-03-18 12:22:02 +0100
committerFlorent Duchon2012-03-18 16:30:37 +0100
commita54ad9edce697133a024aff096e50f7e4f389d5b (patch)
tree9b87c5f8fce3fc0127a2e36b8a809508c1a3298b /digital/beacon/src/Bitcloud_stack/Components/Security/TrustCentre/include/private/tcMem.h
parent8ac7f52728a8ec2a09a6eeebc3cf5d4afff9b485 (diff)
digital/beacon: import Zigbit stack (bitcloud) & avr sources
Diffstat (limited to 'digital/beacon/src/Bitcloud_stack/Components/Security/TrustCentre/include/private/tcMem.h')
-rw-r--r--digital/beacon/src/Bitcloud_stack/Components/Security/TrustCentre/include/private/tcMem.h116
1 files changed, 116 insertions, 0 deletions
diff --git a/digital/beacon/src/Bitcloud_stack/Components/Security/TrustCentre/include/private/tcMem.h b/digital/beacon/src/Bitcloud_stack/Components/Security/TrustCentre/include/private/tcMem.h
new file mode 100644
index 00000000..78bc08b9
--- /dev/null
+++ b/digital/beacon/src/Bitcloud_stack/Components/Security/TrustCentre/include/private/tcMem.h
@@ -0,0 +1,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