summaryrefslogtreecommitdiff
path: root/cesar/hal/phy/maximus/inc/maximus_defs.h
blob: 2a07753b941d516c1ca339c7d65913717374232e (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
#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 early detect a preamble, defined by the hardware, not precise.
 * 20 microseconds * 25 ticks per microsecond
 */
#define MAXIMUS_PHY_PREAMBLE_DETECTION_DELAY_TCK (20 * 25)

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

/** 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

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

/** Maximum number of PBs for SOUND frames (limitation from HW).
 */
#define MAXIMUS_PHY_SOUND_MAX_PB_NB 4

#endif /* hal_phy_maximus_inc_maximus_defs_h */