From b24866225a6301d3a663f874725e83c012dc25d3 Mon Sep 17 00:00:00 2001 From: Florent Duchon Date: Wed, 26 Dec 2012 17:36:00 +0100 Subject: digital/beacon: add bitcloud stack into common directory digital/zigbit --- .../bitcloud/stack/Components/ZCL/include/caps.h | 90 ++++++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 digital/zigbit/bitcloud/stack/Components/ZCL/include/caps.h (limited to 'digital/zigbit/bitcloud/stack/Components/ZCL/include/caps.h') 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 +#include +#include +#include +//#include + +/****************************************************************************** + 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 -- cgit v1.2.3