Implemented softbuffer RX CRC reset

master
Xavier Arteaga 3 years ago committed by Xavier Arteaga
parent ff3e7c321d
commit 7846bfccb1

@ -65,6 +65,15 @@ SRSRAN_API void srsran_softbuffer_rx_reset_cb(srsran_softbuffer_rx_t* q, uint32_
SRSRAN_API void srsran_softbuffer_rx_free(srsran_softbuffer_rx_t* p);
/**
* @brief Resets a number of CB CRCs
* @note This function is intended to be used if all CB CRC have matched but the TB CRC failed. In this case, all CB
* should be decoded again
* @param q Rx soft-buffer object
* @param nof_cb Number of CB to reset
*/
SRSRAN_API void srsran_softbuffer_rx_reset_cb_crc(srsran_softbuffer_rx_t* q, uint32_t nof_cb);
SRSRAN_API int srsran_softbuffer_tx_init(srsran_softbuffer_tx_t* q, uint32_t nof_prb);
/**

@ -159,6 +159,15 @@ void srsran_softbuffer_rx_reset_cb(srsran_softbuffer_rx_t* q, uint32_t nof_cb)
q->tb_crc = false;
}
void srsran_softbuffer_rx_reset_cb_crc(srsran_softbuffer_rx_t* q, uint32_t nof_cb)
{
if (q == NULL || nof_cb == 0) {
return;
}
SRSRAN_MEM_ZERO(q->cb_crc, bool, SRSRAN_MIN(q->max_cb, nof_cb));
}
int srsran_softbuffer_tx_init(srsran_softbuffer_tx_t* q, uint32_t nof_prb)
{
int ret = srsran_ra_tbs_from_idx(SRSRAN_RA_NOF_TBS_IDX - 1, nof_prb);

Loading…
Cancel
Save