From a54ad9edce697133a024aff096e50f7e4f389d5b Mon Sep 17 00:00:00 2001 From: Florent Duchon Date: Sun, 18 Mar 2012 12:22:02 +0100 Subject: digital/beacon: import Zigbit stack (bitcloud) & avr sources --- .../APS/include/private/apsRejectDuplicate.h | 47 ++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 digital/beacon/src/Bitcloud_stack/Components/APS/include/private/apsRejectDuplicate.h (limited to 'digital/beacon/src/Bitcloud_stack/Components/APS/include/private/apsRejectDuplicate.h') diff --git a/digital/beacon/src/Bitcloud_stack/Components/APS/include/private/apsRejectDuplicate.h b/digital/beacon/src/Bitcloud_stack/Components/APS/include/private/apsRejectDuplicate.h new file mode 100644 index 00000000..97b51223 --- /dev/null +++ b/digital/beacon/src/Bitcloud_stack/Components/APS/include/private/apsRejectDuplicate.h @@ -0,0 +1,47 @@ +/**************************************************************************//** + \file apsRejectDuplicate.h + + \brief Private interface of the duplicate rejection table. + + \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-07-03 Max Gekk - Created. + Last change: + $Id: apsRejectDuplicate.h 17801 2011-07-04 08:55:01Z mgekk $ + ******************************************************************************/ +#if !defined _APS_REJECT_DUPLICATE_H +#define _APS_REJECT_DUPLICATE_H +/****************************************************************************** + Includes section + ******************************************************************************/ +#include + +/****************************************************************************** + Prototypes section + ******************************************************************************/ +/***************************************************************************** + \brief Is incoming packet is dublicate or not? Checks in the rejection table. + + \param[in] srcAddr - short address of source node. + \param[in] counter - APS counter of incoming packet. + + \return true - if incoming packet is duplicate otherwise return false. +*****************************************************************************/ +APS_PRIVATE bool apsIsDuplicatePacket(const ShortAddr_t srcAddr, + const uint8_t counter); + +/****************************************************************************** + \brief Reset the duplicate rejection table ana reinit timeouts. + ******************************************************************************/ +APS_PRIVATE void apsResetDuplicateRejectionTable(void); + +#endif /* _APS_REJECT_DUPLICATE_H */ +/** eof apsRejectDuplicate.h */ + -- cgit v1.2.3