summaryrefslogtreecommitdiff
path: root/cesar/hal/phy/maximus/inc/maximus_defs.h
blob: a155fac59e9e21c9c824f2d6103aded46b77b746 (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
#ifndef hal_phy_maximus_inc_maximus_defs_h
#define hal_phy_maximus_inc_maximus_defs_h
/* Cesar project {{{
 *
 * Copyright (C) 2007 Spidcom
 *
 * <<<Licence>>>
 *
 * }}} */
/**
 * \file    hal/phy/maximus/inc/maximus_defs.h
 * \brief   HAL PHY definitions for Maximus.
 * \ingroup hal_phy_maximus
 */

/** Delay to receive the preamble, defined by the hardware, not precise.
 */
#define MAXIMUS_PHY_PREAMBLE_RECEPTION_DELAY_TCK (5 * 25) // 5 microseconds * 25 ticks per microsecond

/** Delay to receive the frame control, defined by the hardware, not precise.
 */
#define MAXIMUS_PHY_FC_RECEPTION_DELAY_TCK (5 * 25) // 5 microseconds * 25 ticks per microsecond

/** Delay to receive the MPDU payload, defined by the hardware, not precise.
 * \todo Get a real value from hardware team.
 */
#define MAXIMUS_PHY_MPDU_RECEPTION_DELAY_TCK ((5 + 5) * 25) // (5 microseconds + 5 microseconds) * 25 ticks per microsecond

/** Threshold used to determinate if a netclock msg is considered to be programmed in the past.
 */
#define MAXIMUS_PHY_DATE_TOLERANCE 0x10000000 // 2^28

/** Init value for random library (u32).
 */
#define MAXIMUS_PHY_LIB_RND_SEED 123

#endif /* hal_phy_maximus_inc_maximus_defs_h */