summaryrefslogtreecommitdiff
path: root/digital/beacon/src/Bitcloud_stack/Components/APS/include/private/apsConfig.h
diff options
context:
space:
mode:
Diffstat (limited to 'digital/beacon/src/Bitcloud_stack/Components/APS/include/private/apsConfig.h')
-rw-r--r--digital/beacon/src/Bitcloud_stack/Components/APS/include/private/apsConfig.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/digital/beacon/src/Bitcloud_stack/Components/APS/include/private/apsConfig.h b/digital/beacon/src/Bitcloud_stack/Components/APS/include/private/apsConfig.h
new file mode 100644
index 00000000..605ac055
--- /dev/null
+++ b/digital/beacon/src/Bitcloud_stack/Components/APS/include/private/apsConfig.h
@@ -0,0 +1,44 @@
+/**************************************************************************//**
+ \file apsConfig.h
+
+ \brief Configuration constants and definitions of APS layer.
+
+ \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: apsConfig.h 17801 2011-07-04 08:55:01Z mgekk $
+******************************************************************************/
+#if !defined _APS_CONFIG_H
+#define _APS_CONFIG_H
+
+/******************************************************************************
+ Definitions section
+ ******************************************************************************/
+/* Rejection table timeouts counted in 500ms intervals.
+ * So we can use narrow data types. */
+#define APS_DUPLICATE_REJECTION_INTERVAL 512U
+
+#ifdef _APS_FRAGMENTATION_
+ #if defined _CERTIFICATION_
+ #define APS_INTERFRAME_DELAY (10*HAL_APPTIMERINTERVAL)
+ #else
+ #define APS_INTERFRAME_DELAY (HAL_APPTIMERINTERVAL)
+ #endif
+#endif
+
+/* Random delay for retransmission to decrease amount of collisions */
+#define RETRANSMISSION_RANDOM_DELAY_RANGE 0x1ff
+
+#define RETRANSMISSION_DELAY_WITH_NO_PHY_ACK 1000U
+
+#endif /* _APS_CONFIG_H */
+/** eof apsConfig.h */
+