summaryrefslogtreecommitdiff
path: root/cesar/ce
diff options
context:
space:
mode:
Diffstat (limited to 'cesar/ce')
-rw-r--r--cesar/ce/rx/bitloading/inc/ber_margin_update.h21
-rw-r--r--cesar/ce/rx/ce_rx_param.h16
2 files changed, 27 insertions, 10 deletions
diff --git a/cesar/ce/rx/bitloading/inc/ber_margin_update.h b/cesar/ce/rx/bitloading/inc/ber_margin_update.h
index 4394ddc542..eb91963879 100644
--- a/cesar/ce/rx/bitloading/inc/ber_margin_update.h
+++ b/cesar/ce/rx/bitloading/inc/ber_margin_update.h
@@ -16,6 +16,7 @@
#include "hal/phy/defs.h"
#include "ce/rx/tonemask.h"
#include "ce/rx/bitloading/inc/ber.h"
+#include "ce/rx/ce_rx_param.h"
/**
* Minimum/lower and maximum/upper bound.
@@ -112,20 +113,20 @@ ce_rx_bl_bmu_conf_init (tonemask_info_t *tonemask_info)
ce_rx_bl_bmu_conf.ber_margin_limit[i][CE_RX_BL_BMU_BER_MAX] = ber - 1;
}
/* Set Pber limits. */
- ce_rx_bl_bmu_conf.pber_limit[CE_RX_BL_BMU_MIN] = 0;
- ce_rx_bl_bmu_conf.pber_limit[CE_RX_BL_BMU_MAX] = (uint) -1;
+ ce_rx_bl_bmu_conf.pber_limit[CE_RX_BL_BMU_MIN] = CE_RX_BL_BER_MARGIN_UPDATE_PBER_LIMIT_MIN;
+ ce_rx_bl_bmu_conf.pber_limit[CE_RX_BL_BMU_MAX] = CE_RX_BL_BER_MARGIN_UPDATE_PBER_LIMIT_MAX;
/* Plus polynomial. */
- ce_rx_bl_bmu_conf.poly[CE_RX_BL_BMU_POLY_PLUS][0] = 1374389535ll;
- ce_rx_bl_bmu_conf.poly[CE_RX_BL_BMU_POLY_PLUS][1] = -(4*4503874506616ll)/5;
+ ce_rx_bl_bmu_conf.poly[CE_RX_BL_BMU_POLY_PLUS][0] = CE_RX_BL_BMU_POLY_SUP_A;
+ ce_rx_bl_bmu_conf.poly[CE_RX_BL_BMU_POLY_PLUS][1] = CE_RX_BL_BMU_POLY_SUP_B;
/* Minus polynomial. */
- ce_rx_bl_bmu_conf.poly[CE_RX_BL_BMU_POLY_MINUS][0] = 34378623109ll;
- ce_rx_bl_bmu_conf.poly[CE_RX_BL_BMU_POLY_MINUS][1] = -(22547998136852ll);
+ ce_rx_bl_bmu_conf.poly[CE_RX_BL_BMU_POLY_MINUS][0] = CE_RX_BL_BMU_POLY_INF_A;
+ ce_rx_bl_bmu_conf.poly[CE_RX_BL_BMU_POLY_MINUS][1] = CE_RX_BL_BMU_POLY_INF_B;
/* Polynomial factors. */
- ce_rx_bl_bmu_conf.fec_rate_factors[CE_RX_BL_BMU_POLY_PLUS] = 3;
- ce_rx_bl_bmu_conf.fec_rate_factors[CE_RX_BL_BMU_POLY_MINUS] = 1;
+ ce_rx_bl_bmu_conf.fec_rate_factors[CE_RX_BL_BMU_POLY_PLUS] = CE_RX_BL_BMU_POLY_FEC_RATE_1_2_FACTOR;
+ ce_rx_bl_bmu_conf.fec_rate_factors[CE_RX_BL_BMU_POLY_MINUS] = CE_RX_BL_BMU_POLY_FEC_RATE_16_21_FACTOR;
/* Set min value for internal counters. */
- ce_rx_bl_bmu_conf.pb_count_min = 15915;
- ce_rx_bl_bmu_conf.oscillation_count_min = 10;
+ ce_rx_bl_bmu_conf.pb_count_min = CE_RX_BL_BMU_PB_COUNT_MIN;
+ ce_rx_bl_bmu_conf.oscillation_count_min = CE_RX_BL_BMU_OSCILLATION_COUNT_MIN;
}
#endif /* inc_ber_margin_update_h */
diff --git a/cesar/ce/rx/ce_rx_param.h b/cesar/ce/rx/ce_rx_param.h
index ceba9f27f7..991bb0c650 100644
--- a/cesar/ce/rx/ce_rx_param.h
+++ b/cesar/ce/rx/ce_rx_param.h
@@ -223,4 +223,20 @@
#define CE_RX_BL_BER_LOWER_BOUND_UNIT (128)
#define CE_RX_BL_BER_LOWER_BOUND 70
+/* Pber limits values for BMU */
+#define CE_RX_BL_BER_MARGIN_UPDATE_PBER_LIMIT_MIN 0
+#define CE_RX_BL_BER_MARGIN_UPDATE_PBER_LIMIT_MAX (uint) -1
+
+/* Polynomial definitions for BMU. */
+#define CE_RX_BL_BMU_POLY_SUP_A 1374389535ll
+#define CE_RX_BL_BMU_POLY_SUP_B -(4*4503874506616ll)/5
+#define CE_RX_BL_BMU_POLY_INF_A 34378623109ll
+#define CE_RX_BL_BMU_POLY_INF_B -(22547998136852ll)
+#define CE_RX_BL_BMU_POLY_FEC_RATE_1_2_FACTOR 3
+#define CE_RX_BL_BMU_POLY_FEC_RATE_16_21_FACTOR 1
+
+/* Set min value for internal counters. */
+#define CE_RX_BL_BMU_PB_COUNT_MIN 15915
+#define CE_RX_BL_BMU_OSCILLATION_COUNT_MIN 10
+
#endif /* ce_rx_param_h */