summaryrefslogtreecommitdiff
path: root/cesar/ce/rx/inc
diff options
context:
space:
mode:
authordufour2010-04-14 08:57:04 +0000
committerdufour2010-04-14 08:57:04 +0000
commitf57b67f6b2c243c5acc90aa2a3e830c6ba2b0bd5 (patch)
treee3f2bb3d753fd98532ec28ca857a2e20948c90d8 /cesar/ce/rx/inc
parent00d554ff3f2bd8f7b047319c4c4a5f41bb5adc26 (diff)
cesar/{mac/sar,ce/rx}: update SAR callback to get BER, closes #1442
PB measurements are no longer given by the SAR CB: it directly pre-computes the BER sum (on PBs with no CRC error), the total count of PBs inside the frame and the count of PBs with CRC error in the frame. In the CE, measure now contains: - RX params, - channel data if there are some, - some statistics (total PBs count, total false PBs, BER sum) No need any more to give some pointer to the SAR, measure data are directly delivered from the SAR for copy. Configuration for "PB measurements get flag" is now removed from the CE. Tests have been updated. git-svn-id: svn+ssh://pessac/svn/cesar/trunk@6922 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'cesar/ce/rx/inc')
-rw-r--r--cesar/ce/rx/inc/measure.h16
-rw-r--r--cesar/ce/rx/inc/rx.h4
2 files changed, 6 insertions, 14 deletions
diff --git a/cesar/ce/rx/inc/measure.h b/cesar/ce/rx/inc/measure.h
index 26a215cc73..420ef676d8 100644
--- a/cesar/ce/rx/inc/measure.h
+++ b/cesar/ce/rx/inc/measure.h
@@ -46,21 +46,17 @@ typedef struct ce_rx_measure_mbox_t
*/
uint chan_data_count;
/**
- * Count of PB measurements.
- */
- uint pb_measurements_count;
- /**
- * PB measurements.
- */
- blk_t *pb_measurements;
- /**
- * Count of false PB (or -1 if none).
+ * Count of false PB (CRC wrong) in the frame.
*/
u8 false_pb_count;
/**
- * Total PB.
+ * Total count of PB in the frame.
*/
u8 total_pb_count;
+ /**
+ * BER sum of PBs with good CRC in the frame.
+ */
+ u32 ber_sum;
} ce_rx_measure_mbox_t;
diff --git a/cesar/ce/rx/inc/rx.h b/cesar/ce/rx/inc/rx.h
index 4000b11fb1..9be3e1174d 100644
--- a/cesar/ce/rx/inc/rx.h
+++ b/cesar/ce/rx/inc/rx.h
@@ -125,10 +125,6 @@ struct ce_rx_t
*/
trace_buffer_t trace_verbose;
#endif
- /**
- * Get PB measurements from the SAR?
- */
- bool measure_get_pbm;
};
/**