summaryrefslogtreecommitdiff
path: root/cesar/hal/phy/defs.h
diff options
context:
space:
mode:
Diffstat (limited to 'cesar/hal/phy/defs.h')
-rw-r--r--cesar/hal/phy/defs.h17
1 files changed, 13 insertions, 4 deletions
diff --git a/cesar/hal/phy/defs.h b/cesar/hal/phy/defs.h
index 1c2a3d5075..362fe3bbb5 100644
--- a/cesar/hal/phy/defs.h
+++ b/cesar/hal/phy/defs.h
@@ -35,11 +35,17 @@
/** Total number of OFDM carrier, also counting unusable ones. */
#define PHY_ALL_CARRIER_NB 1536
-/** Number of OFDM carrier for HP10, defined by the hardware. */
-#define PHY_HP10_CARRIER_NB 144
+/** Number of AV carriers per HP10 carrier. */
+#define PHY_HP10_CARRIER_FACTOR 8
-/** Number of first OFDM carrier for HP10, defined by the hardware. */
-#define PHY_HP10_CARRIER_OFFSET 10
+/** Number of OFDM carrier for HP10. */
+#define PHY_HP10_CARRIER_NB \
+ ((PHY_CARRIER_OFFSET + PHY_CARRIER_NB - 1) / PHY_HP10_CARRIER_FACTOR \
+ - PHY_HP10_CARRIER_OFFSET + 1)
+
+/** Number of first OFDM carrier for HP10. */
+#define PHY_HP10_CARRIER_OFFSET \
+ CEIL_DIV (PHY_CARRIER_OFFSET, PHY_HP10_CARRIER_FACTOR)
/** Number of words needed to define a tonemask. */
#define PHY_TONEMASK_WORDS ((PHY_CARRIER_NB + 32 - 1) / 32)
@@ -53,6 +59,9 @@
/** Number of bytes needed to define a tonemap. */
#define PHY_TONEMAP_SIZE (PHY_TONEMAP_WORDS * 4)
+/** Number of words in HP10 extended tonemask. */
+#define PHY_HP10_TONEMASK_WORDS 6
+
/** Delay to find a preamble, defined by the hardware, not precise.
* At this time, we got confirmation from HW.
* False alarm is not possible anymore. */