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/NWK/include/private/nwkRxSecurity.h | 54 ++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 digital/zigbit/bitcloud/stack/Components/NWK/include/private/nwkRxSecurity.h (limited to 'digital/zigbit/bitcloud/stack/Components/NWK/include/private/nwkRxSecurity.h') diff --git a/digital/zigbit/bitcloud/stack/Components/NWK/include/private/nwkRxSecurity.h b/digital/zigbit/bitcloud/stack/Components/NWK/include/private/nwkRxSecurity.h new file mode 100644 index 00000000..3bdea48a --- /dev/null +++ b/digital/zigbit/bitcloud/stack/Components/NWK/include/private/nwkRxSecurity.h @@ -0,0 +1,54 @@ +/**************************************************************************//** + \file nwkRxSecurity.h + + \brief Interface of security processing of incoming packets. + + \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-02-03 M. Gekk - Created. + Last change: + $Id: nwkRxSecurity.h 17448 2011-06-09 13:53:59Z ataradov $ + ******************************************************************************/ +#if !defined _NWK_RX_SECURITY_H +#define _NWK_RX_SECURITY_H + +#if defined _SECURITY_ +/****************************************************************************** + Includes section + ******************************************************************************/ +#include +#include + +/****************************************************************************** + Prototypes section + ******************************************************************************/ +/**************************************************************************//** + \brief Update the incoming frame counter by key sequence number. + + \param[in] seqNum - key sequence number. + \param[in] srcExtAddr - an extended source address. + \param[in] newValue - a new value of the incoming frame counter. + + \return 'true' if incoming frame counter is updated otherwise 'false'. + ******************************************************************************/ +NWK_PRIVATE bool nwkUpdateInFrameCounter(const NWK_KeySeqNum_t seqNum, + const ExtAddr_t srcExtAddr, const NwkInFrameCounter_t counter); + +/**************************************************************************//** + \brief Get network key by key sequence number. + + \return Pointer to value of a network key. + ******************************************************************************/ +NWK_PRIVATE const uint8_t* NWK_GetKey(const NWK_KeySeqNum_t seqNum); + +#endif /* _SECURITY_ */ +#endif /* _NWK_RX_SECURITY_H */ +/** eof nwkRxSecurity.h */ + -- cgit v1.2.3