summaryrefslogtreecommitdiff
path: root/digital/beacon/src/Bitcloud_stack/Components/APS/include/private/apsRejectDuplicate.h
diff options
context:
space:
mode:
Diffstat (limited to 'digital/beacon/src/Bitcloud_stack/Components/APS/include/private/apsRejectDuplicate.h')
-rw-r--r--digital/beacon/src/Bitcloud_stack/Components/APS/include/private/apsRejectDuplicate.h47
1 files changed, 47 insertions, 0 deletions
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 <apsCommon.h>
+
+/******************************************************************************
+ 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 */
+