summaryrefslogtreecommitdiffhomepage
path: root/digital/zigbit/bitcloud/stack/Components/ZCL/include/caps.h
diff options
context:
space:
mode:
authorFlorent Duchon2012-12-26 17:36:00 +0100
committerFlorent Duchon2013-02-13 21:21:12 +0100
commitb24866225a6301d3a663f874725e83c012dc25d3 (patch)
treeca527a2aab9abcdfbaf244c53ca63f0c531892b0 /digital/zigbit/bitcloud/stack/Components/ZCL/include/caps.h
parent2ba279f4eb2f23fa08a7c13465d16ae6ba5d0f96 (diff)
digital/beacon: add bitcloud stack into common directory digital/zigbit
Diffstat (limited to 'digital/zigbit/bitcloud/stack/Components/ZCL/include/caps.h')
-rw-r--r--digital/zigbit/bitcloud/stack/Components/ZCL/include/caps.h90
1 files changed, 90 insertions, 0 deletions
diff --git a/digital/zigbit/bitcloud/stack/Components/ZCL/include/caps.h b/digital/zigbit/bitcloud/stack/Components/ZCL/include/caps.h
new file mode 100644
index 00000000..a37b19ff
--- /dev/null
+++ b/digital/zigbit/bitcloud/stack/Components/ZCL/include/caps.h
@@ -0,0 +1,90 @@
+/************************************************************************//**
+ \file caps.h
+
+ \brief
+ The header file describes the CAPS interface
+
+ The file describes the interface and types of CAPS
+
+ \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:
+ 27.11.08 A. Potashov - Created.
+******************************************************************************/
+
+#ifndef _CAPS_H
+#define _CAPS_H
+
+/******************************************************************************
+ Includes section
+******************************************************************************/
+#include <types.h>
+#include <aps.h>
+#include <appFramework.h>
+#include <macAddr.h>
+//#include <usart.h>
+
+/******************************************************************************
+ Define(s) section
+******************************************************************************/
+#define CAPS_SERIAL_CHANNEL UART_CHANNEL_1
+#ifdef _ZCL_SECURITY_
+ #define CAPS_DO_NOT_USE_APS_SECURITY false
+#else /* _ZCL_SECURITY_ */
+ #define CAPS_DO_NOT_USE_APS_SECURITY true
+#endif /* _ZCL_SECURITY_ */
+
+/******************************************************************************
+ Types section
+******************************************************************************/
+
+
+/*****************************************************************************
+ Special CAPS data types definition
+*****************************************************************************/
+typedef enum
+{
+ CAPS_SERIAL_NONE = 0x00,
+ CAPS_SERIAL_UART = 0x01
+} CAPS_Serial_t;
+
+
+/******************************************************************************
+ Constants section
+******************************************************************************/
+
+/******************************************************************************
+ External variables section
+******************************************************************************/
+
+/******************************************************************************
+ Prototypes section
+******************************************************************************/
+
+
+/*****************************************************************************
+ CAPS API Prototypes
+*****************************************************************************/
+
+/**************************************************************************//**
+ \brief CAPS Data Request interface.
+
+ APS_DataConf field in APS_DataReq must be an actual confirm handler pointer.
+
+ \param[in] req The APS_DataReq_t primitive pointer.
+ \param[in] serial The serial flag for redirection to the serial interface. CAPS_Serial_t must be used.
+ \param[in] noApsSecurity If true APS security is switched off.
+ \return None.
+*****************************************************************************/
+extern void CAPS_DataReq(APS_DataReq_t *req, uint8_t serial, bool noApsSecurity);
+
+#endif //#ifndef _CAPS_H
+
+
+//eof caps.h