summaryrefslogtreecommitdiff
path: root/cesar/ce/rx/bitloading/inc/transition.h
diff options
context:
space:
mode:
authordufour2010-04-06 11:10:28 +0000
committerdufour2010-04-06 11:10:28 +0000
commit02305a484b2ad72a97c6c027f7492cb89ba22a62 (patch)
tree15bfbf530d680a1e5efac3a232218f2b7e76d315 /cesar/ce/rx/bitloading/inc/transition.h
parent944eb5c370f2417eaf99f4cad28cd1b9990df1e3 (diff)
cesar/ce/rx/bl: clean FSM
This commit does not change the behavior of the BL FSM, just clean comments, indent and rename a few things. git-svn-id: svn+ssh://pessac/svn/cesar/trunk@6877 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'cesar/ce/rx/bitloading/inc/transition.h')
-rw-r--r--cesar/ce/rx/bitloading/inc/transition.h39
1 files changed, 20 insertions, 19 deletions
diff --git a/cesar/ce/rx/bitloading/inc/transition.h b/cesar/ce/rx/bitloading/inc/transition.h
index 968c8ed8c6..06983ee666 100644
--- a/cesar/ce/rx/bitloading/inc/transition.h
+++ b/cesar/ce/rx/bitloading/inc/transition.h
@@ -21,37 +21,38 @@
BEGIN_DECLS
/**
- * Handle reception of channel_data_received in IDLE state.
+ * Handle reception of measure_received in IDLE state.
* \param ce_rx the CE RX context.
* \param sta the corresponding sta.
- * \param chan_data the data associated to the event (channel data).
+ * \param data the data associated to the event.
* \return the next state.
- *
- * It must be based on sound frames.
- *
- * Just copy the noise NRJ to initialize the mean/sum.
*/
ce_rx_bl_fsm_branch_t
-ce_rx_bl__IDLE__channel_data_received (ce_rx_t *ce_rx, sta_t *sta,
- ce_rx_bitloading_fsm_event_param_t
- chan_data);
+ce_rx_bl__IDLE__measure_received (ce_rx_t *ce_rx, sta_t *sta,
+ ce_rx_bitloading_fsm_event_param_t data);
/**
- * Handle reception of channel_data_received in INITIAL state.
+ * Handle reception of measure_received in INITIAL state.
* \param ce_rx the CE RX context.
* \param sta the corresponding sta.
- * \param chan_data the data associated to the event (channel data).
+ * \param data the data associated to the event.
+ * \return the next state.
+ */
+ce_rx_bl_fsm_branch_t
+ce_rx_bl__INITIAL__measure_received (ce_rx_t *ce_rx, sta_t *sta,
+ ce_rx_bitloading_fsm_event_param_t data);
+
+/**
+ * Handle reception of measure_received in TRACKING state.
+ * \param ce_rx the CE RX context.
+ * \param sta the corresponding sta.
+ * \param data the data associated to the event.
* \return the next state.
- *
- * It must be based on sound frames.
- *
- * If not the last one, just copy the noise NRJ to initialize the mean/sum.
- * Otherwise, compute initial tone map.
*/
ce_rx_bl_fsm_branch_t
-ce_rx_bl__INITIAL__channel_data_received (ce_rx_t *ce_rx, sta_t *sta,
- ce_rx_bitloading_fsm_event_param_t
- chan_data);
+ce_rx_bl__TRACKING__measure_received (ce_rx_t *ce_rx, sta_t *sta,
+ ce_rx_bitloading_fsm_event_param_t
+ data);
END_DECLS