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/APS/include/private/apsSwitchKey.h | 61 ++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 digital/zigbit/bitcloud/stack/Components/APS/include/private/apsSwitchKey.h (limited to 'digital/zigbit/bitcloud/stack/Components/APS/include/private/apsSwitchKey.h') diff --git a/digital/zigbit/bitcloud/stack/Components/APS/include/private/apsSwitchKey.h b/digital/zigbit/bitcloud/stack/Components/APS/include/private/apsSwitchKey.h new file mode 100644 index 00000000..98a6e306 --- /dev/null +++ b/digital/zigbit/bitcloud/stack/Components/APS/include/private/apsSwitchKey.h @@ -0,0 +1,61 @@ +/**************************************************************************//** + \file apsSwitchKey.h + + \brief Private interface of APS Switch Key. + + \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: + 2011-03-21 A. Razinkov - Created. + Last change: + $Id: apsSwitchKey.h 17470 2011-06-10 11:31:00Z mgekk $ + ******************************************************************************/ +#ifndef _APS_SWITCH_KEY_H +#define _APS_SWITCH_KEY_H + +#ifdef _SECURITY_ +/****************************************************************************** + Includes section + ******************************************************************************/ +#include +#include +#include +#include + +/****************************************************************************** + Types section + ******************************************************************************/ +BEGIN_PACK +/** Type of APS remove device command frame. */ +typedef struct PACK _ApsSwitchKeyFrame_t +{ + /** An APS header, which comprises frame control and addressing information. */ + ApduCommandHeader_t header; + /** A sequence number assigned to a network key by the Trust Center and used to + * distinguish network keys. */ + uint8_t keySeqNumber; +} ApsSwitchKeyFrame_t; +END_PACK + +/****************************************************************************** + Prototypes section + ******************************************************************************/ +/**************************************************************************//** + \brief Switch key command indication handler. + + \param[in] commandInd - pointer to received command descriptor. + + \return 'true' if NWK buffer with the command frame must be freed + otherwise return 'false'. + ******************************************************************************/ +APS_PRIVATE bool apsSwitchKeyInd(const ApsCommandInd_t *const commandInd); + +#endif /* _SECURITY_ */ +#endif /* _APS_SWITCH_KEY_H */ +/** eof apsSwitchKey.h */ -- cgit v1.2.3