summaryrefslogtreecommitdiff
path: root/cesar/mac/sar/sar.h
diff options
context:
space:
mode:
Diffstat (limited to 'cesar/mac/sar/sar.h')
-rw-r--r--cesar/mac/sar/sar.h39
1 files changed, 15 insertions, 24 deletions
diff --git a/cesar/mac/sar/sar.h b/cesar/mac/sar/sar.h
index 0d165c2ea3..83a8f65188 100644
--- a/cesar/mac/sar/sar.h
+++ b/cesar/mac/sar/sar.h
@@ -24,30 +24,21 @@
typedef struct sar_t sar_t;
/**
- * Pb measurement RX callback for Channel estimation.
- * \param user User data
- * \param rx_params Frame control information to know date and tonemap used
- * \param pb_nb number of pbs
- * \param first blk to insert the measurements.
- * \param last blk to insert the measurements.
- * \param chandata chan data measurements
- * \param ce_pb_crc_error the number of segment received with the CRC error.
- * \return boolean to indicate if a block had been returned or not.
- *
- * This call back will return one or two block in order to insert all the
- * measurements contained in each PB of the mpdu received.
- * Two cases can happen, the first the pb_nb is lesser than the blk capacity,
- * this callback will return only a blk pointed by the first and the last
- * pointer.
- * In the second case the quantity of PB are greater than one blk capacity, this
- * callback will return two blk (chained) the first pointed by the first pointer
- * and the last one by the last pointer.
- */
-typedef bool
-(*sar_measurement_cb_t) (void *user,
- pbproc_rx_params_t *rx_params, uint pb_nb, blk_t **first,
- blk_t **last, pb_t *chan_data_first, uint nb_chandata,
- u8 **pb_crc_error);
+ * Call back prototype to provide measure to the CE.
+ * \param data the context of the CE RX.
+ * \param rx_params general information on measures (date, from).
+ * \param total_pb_count number of PB available in the frame.
+ * \param chan_data the head of the channel data.
+ * \param chan_data_count the count of PBs in the channel data.
+ * \param false_pb_count number of false PBs (CRC error) inside the frame.
+ * \param ber_sum sum of each BER of each PBs with no CRC error inside the
+ * frame
+ */
+typedef void
+(*sar_measurement_cb_t) (void *data, pbproc_rx_params_t *rx_params,
+ uint total_pb_count, pb_t *chan_data,
+ uint chan_data_count, u8 false_pb_count,
+ u32 ber_sum);
/**
* Segmentation job done for the segmentation module, it send a data to inform