summaryrefslogtreecommitdiff
path: root/cesar
diff options
context:
space:
mode:
authorJérôme Jutteau2011-09-22 16:14:33 +0200
committerCyril Jourdan2013-01-18 11:27:17 +0100
commit0fc883fe7b1ede90ea31fab010bc7f75fa0481ae (patch)
tree4a8b80486cb41955624f0fbe7e7b518cecd751c7 /cesar
parent5e1f237c0d12a549b42ba8f15b33f5dbd05429c6 (diff)
cesar/ce/rx: create a special FSM id for global CE, refs #2366
Create a define (CE_RX_MEASURE_NO_INTERVAL) instead of using the special value (-1).
Diffstat (limited to 'cesar')
-rw-r--r--cesar/ce/rx/bitloading/fsm/src/fsm.c2
-rw-r--r--cesar/ce/rx/inc/measure.h9
2 files changed, 9 insertions, 2 deletions
diff --git a/cesar/ce/rx/bitloading/fsm/src/fsm.c b/cesar/ce/rx/bitloading/fsm/src/fsm.c
index c24174d66e..c45f00ab0b 100644
--- a/cesar/ce/rx/bitloading/fsm/src/fsm.c
+++ b/cesar/ce/rx/bitloading/fsm/src/fsm.c
@@ -81,7 +81,7 @@ ce_rx_bl_fsm_measure_to_event (sta_t *sta,
u16 start_date_atu, end_date_atu;
/* Global by default. */
has_interval = CE_RX_FSM_MEASURE_TO_EVENT_TYPE_GLOBAL;
- measure->fsm_id = -1;
+ measure->fsm_id = CE_RX_MEASURE_NO_INTERVAL;
if (ce_rx_bl_intervals_measure_to_date (&measure->rx_params,
&start_date_atu,
&end_date_atu))
diff --git a/cesar/ce/rx/inc/measure.h b/cesar/ce/rx/inc/measure.h
index 359605f4b9..095c35dc8f 100644
--- a/cesar/ce/rx/inc/measure.h
+++ b/cesar/ce/rx/inc/measure.h
@@ -32,6 +32,12 @@
*/
#define CE_RX_MEASURE_MBOX_MAX_SIZE 42
+/*
+ * This value is used as fsm id to describe the measure as global.
+ * When this value is used there is no intervals.
+ */
+#define CE_RX_MEASURE_NO_INTERVAL -1
+
/**
* Mailbox used to exchange measure between the SAR and the CE RX.
*/
@@ -66,7 +72,8 @@ typedef struct ce_rx_measure_mbox_t
*/
u32 ber_sum;
/**
- * Interval's FSM id (set to -1 if there is no interval fsm).
+ * Interval's FSM id (set to CE_RX_MEASURE_NO_INTERVAL if there is no
+ * interval fsm).
*/
s8 fsm_id;