@@ -93,21 +93,42 @@ int dlsch_encoding_NB_IoT(unsigned char *a,
//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;
uint8_tnpbch_a[21];
//uint8_t npbch_a[21];
bzero(npbch_a,21);
//bzero(npbch_a,21);
uint8_tnpbch_a[85];
uint8_tnpbch_a_crc[88];
bzero(npbch_a,85);
bzero(npbch_a_crc,88);
//A = dlsch->harq_process_sib1.TBS; // 680
A=19*8;// 680
//A = 19*8; // 680
A=680;
dlsch->length_e=G*Nsf;// G*Nsf (number_of_subframes) = total number of bits to transmit G=236