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 --- .../Components/ZCL/include/zclSecurityManager.h | 190 +++++++++++++++++++++ 1 file changed, 190 insertions(+) create mode 100644 digital/zigbit/bitcloud/stack/Components/ZCL/include/zclSecurityManager.h (limited to 'digital/zigbit/bitcloud/stack/Components/ZCL/include/zclSecurityManager.h') diff --git a/digital/zigbit/bitcloud/stack/Components/ZCL/include/zclSecurityManager.h b/digital/zigbit/bitcloud/stack/Components/ZCL/include/zclSecurityManager.h new file mode 100644 index 00000000..e91cd669 --- /dev/null +++ b/digital/zigbit/bitcloud/stack/Components/ZCL/include/zclSecurityManager.h @@ -0,0 +1,190 @@ +/***************************************************************************//** + \file zclSecurityManager.h + + \brief + The header file describes the ZCL Security Manager and its interface + + The file describes the types and interface of the ZCL Security 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: + 17.03.09 A. Potashov - Created. +*******************************************************************************/ + +#ifndef _ZCLSECURITYMANAGER_H +#define _ZCLSECURITYMANAGER_H + +#ifdef _ZCL_SECURITY_ +#include +#include +#include + +typedef enum +{ + ZCL_SECURITY_STATUS_SUCCESS = 0x00, +#ifdef _CERTICOM_SECURITY_ + ZCL_SECURITY_STATUS_DISCOVERY_FAIL = 0x01, + ZCL_SECURITY_STATUS_APS_BINDING_FAIL = 0x02, + ZCL_SECURITY_STATUS_TIMEOUT = 0x03, + ZCL_SECURITY_STATUS_TERMINATED = 0x04, + ZCL_SECURITY_STATUS_SEND_COMMAND_FAIL = 0x05, + ZCL_SECURITY_STATUS_INVALID_SETTINGS = 0x06, +#endif //#ifdef _CERTICOM_SECURITY_ +} ZCL_SecurityStatus_t; + + +/*************************************************************************//** + Status of ZCL operation + \brief + Used to return status of ZCL operation. +*****************************************************************************/ +/* +typedef enum +{ + ZCL_SUCCESS_STATUS = 0x00, + ZCL_UNSUPPORTED_ATTRIBUTE_STATUS = 0x01, + ZCL_INVALID_ATTRIBUTE_VALUE_STATUS = 0x02, + ZCL_TC_PERMISSION_TABLE_ERROR_STATUS = 0x03, + ZCL_APS_LINK_KEY_ERROR_STATUS = 0x04 +} ZCL_Status_t; +*/ + +BEGIN_PACK + +typedef struct PACK +{ + ExtAddr_t addr; //!