summaryrefslogtreecommitdiffhomepage
path: root/digital/zigbit/bitcloud/stack/Components/APS/include/private/apsConfig.h
blob: 605ac0554f42cb81b72787c25074d3154495800a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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 */