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_NB_IoT*rm_stats,
time_stats_t_NB_IoT*te_stats,
time_stats_t_NB_IoT*i_stats)
unsignedintG)// G (number of available RE) is implicitly multiplied by 2 (since only QPSK modulation)
{
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
...
...
@@ -97,7 +95,7 @@ int dlsch_encoding_NB_IoT(unsigned char *a,
uint8_tRCC;
A=dlsch->harq_process.TBS;// 680
dlsch->harq_process.length_e=G*Nsf;// G*Nsf (number_of_subframes) = total number of bits to transmit
dlsch->harq_process.length_e=G*Nsf;// G*Nsf (number_of_subframes) = total number of bits to transmit G=236
int32_tnumbits=A+24;
...
...
@@ -114,17 +112,43 @@ int dlsch_encoding_NB_IoT(unsigned char *a,