uint8_tNsf,// number of subframes required for npdsch pdu transmission calculated from Isf (3GPP spec table)
unsignedintG;// G (number of available RE) is implicitly multiplied by 2 (since only QPSK modulation)
time_stats_t*rm_stats,
time_stats_t*te_stats,
time_stats_t*i_stats)
{
unsignedintcrc=1;
//unsigned char harq_pid = dlsch->current_harq_pid; // to check during implementation if harq_pid is required in the NB_IoT_eNB_DLSCH_t structure in defs_NB_IoT.h
unsignedintA;
uint8_tRCC;
A=dlsch->harq_processe->TBS;// 680
dlsch->harq_processe->length_e=G*Nsf// G*Nsf (number_of_subframes) = total number of bits to transmit
int32_tnumbits=A+24;
if(dlsch->harq_processe->round==0){// This is a new packet