summaryrefslogtreecommitdiff
path: root/cesar/ce/rx/rx.h
diff options
context:
space:
mode:
authordufour2009-12-23 10:26:07 +0000
committerdufour2009-12-23 10:26:07 +0000
commitc788468816e2721f02c8047685ef524a98b41959 (patch)
treea7d217368f2683ef33463ade3a1fa4e026ae4701 /cesar/ce/rx/rx.h
parent8d292d3436612073c81d45f16d28adc1748049fe (diff)
cesar/ce/rx: add a function to get the current NSR of the CE
git-svn-id: svn+ssh://pessac/svn/cesar/trunk@6575 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'cesar/ce/rx/rx.h')
-rw-r--r--cesar/ce/rx/rx.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/cesar/ce/rx/rx.h b/cesar/ce/rx/rx.h
index 3716d2f171..d2ec2cd612 100644
--- a/cesar/ce/rx/rx.h
+++ b/cesar/ce/rx/rx.h
@@ -44,16 +44,21 @@ void
ce_rx_uninit (ce_rx_t *ce_rx);
/**
- * Ask for the CE RX to get the next noise NRJ (nsr) of a peer.
+ * Ask for the CE RX to get the current noise NRJ (nsr) of a peer.
* \param ce_rx the CE in RX context.
* \param tei the TEI of the station from which we want the SNR.
* \param int_index the interval index on which we want the SNR.
* \param int_version the version of the intervals.
- * \return true if the TEI, int_index and int_version is correct and exist.
+ * \param ber the current BER (only available if return is not NULL).
+ * \return some blocks of NSR (or NULL if NSR is not available).
+ *
+ * The NSR returned by this function is the NSR used by the CE: it is not the
+ * channel data returned by the PBProc. For example, just after initial CE,
+ * the NSR will be a mean of all the NSR computed on sound frames.
*/
-bool
+blk_t *
ce_rx_get_nsr (ce_rx_t *ce_rx, cp_tei_t tei, uint int_index,
- uint int_version);
+ uint int_version, u16 *ber);
END_DECLS