summaryrefslogtreecommitdiff
path: root/hal/phy/phy.h
diff options
context:
space:
mode:
authorschodet2007-10-22 14:44:22 +0000
committerschodet2007-10-22 14:44:22 +0000
commitdff364719637f74bb050ae8e5b6ac375bb920d32 (patch)
tree6f375fe54140939f3c2130c310c8ae7a2866489d /hal/phy/phy.h
parente53eb59cd75e54f420c65fb8feebab8478966498 (diff)
Moved Phy definitions to a separated file.
git-svn-id: svn+ssh://pessac/svn/cesar/trunk@858 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'hal/phy/phy.h')
-rw-r--r--hal/phy/phy.h61
1 files changed, 1 insertions, 60 deletions
diff --git a/hal/phy/phy.h b/hal/phy/phy.h
index e9b984a301..e75d1d9986 100644
--- a/hal/phy/phy.h
+++ b/hal/phy/phy.h
@@ -17,8 +17,7 @@
#include "hal/phy/access.h"
#include "hal/phy/pbdma.h"
-/** Number of OFDM carrier, defined by the hardware. */
-#define PHY_CARRIER_NB 1536
+#include "hal/phy/defs.h"
/** Delay to detect a preamble, defined by the hardware, not precise.
* \todo Get a real value from hardware team. */
@@ -27,64 +26,6 @@
/** Delay for FC 1.0 preparation. */
#define PHY_FC_10_PREPARATION_DELAY_TCK (30 * 25)
-/** Modulation mode. */
-enum phy_mod_t
-{
- PHY_MOD_ROBO, /*< ROBO mode. */
- PHY_MOD_HS_ROBO, /*< HIGH-SPEED ROBO mode. */
- PHY_MOD_MINI_ROBO, /*< MINI ROBO mode. */
- PHY_MOD_TM, /*< Tone map modulation. */
- PHY_MOD_NONE,
- PHY_MOD_ROBO_NB = PHY_MOD_TM, /*< Number of ROBO modes. */
-};
-typedef enum phy_mod_t phy_mod_t;
-
-/** Forward Error Correction puncturing rate. */
-enum phy_fecrate_t
-{
- PHY_FEC_RATE_1_2, /*< FEC rate 1/2. */
- PHY_FEC_RATE_16_21, /*< FEC rate 16/21. */
- PHY_FEC_RATE_NONE
-};
-typedef enum phy_fecrate_t phy_fecrate_t;
-
-/** PB size. */
-enum phy_pb_size_t
-{
- PHY_PB_SIZE_136, /*< PB size 136 bytes, only one PB. */
- PHY_PB_SIZE_520, /*< PB size 520 bytes. */
- PHY_PB_SIZE_NONE
-};
-typedef enum phy_pb_size_t phy_pb_size_t;
-
-/** FC mode. */
-enum phy_fc_mode_t
-{
- PHY_FC_MODE_HYBRID_1, /*< Hybrid FC, 1 symbol. */
- PHY_FC_MODE_HYBRID_2, /*< Hybrid FC, 2 symbol. */
- PHY_FC_MODE_AV_1, /*< AV FC, 1 symbol. */
- PHY_FC_MODE_AV_2, /*< AV FC, 2 symbol. */
- PHY_FC_MODE_NB
-};
-typedef enum phy_fc_mode_t phy_fc_mode_t;
-
-/** Is it a hybrid mode. */
-#define PHY_FC_MODE_IS_HYBRID(m) (!((m) & 0x2))
-
-/** Make FC mode. */
-#define PHY_FC_MODE(hybrid, fc_symb_nb) (((hybrid) ? 0 : 2) \
- | ((fc_symb_nb == 1) ? 0 : 1))
-
-/** Guard interval length. */
-enum phy_gil_t
-{
- PHY_GIL_417, /*< Guard interval 417 samples. */
- PHY_GIL_567, /*< Guard interval 567 samples. */
- PHY_GIL_3534, /*< Guard interval 3534 samples. */
- PHY_GIL_NB
-};
-typedef enum phy_gil_t phy_gil_t;
-
/**
* ACCESS CONFIRM event callback.
* \param user user data