@@ -93,13 +93,15 @@ int dlsch_encoding_NB_IoT(unsigned char *a,
...
@@ -93,13 +93,15 @@ 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
//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;
unsignedintA;
uint8_tRCC;
uint8_tRCC;
uint8_tnpbch_a[21];
A=dlsch->harq_process_sib1.TBS;// 680
bzero(npbch_a,21);
dlsch->harq_process_sib1.length_e=G*Nsf;// G*Nsf (number_of_subframes) = total number of bits to transmit G=236
//A = dlsch->harq_process_sib1.TBS; // 680
A=19*8;// 680
dlsch->length_e=G*Nsf;// G*Nsf (number_of_subframes) = total number of bits to transmit G=236
int32_tnumbits=A+24;
int32_tnumbits=A+24;
if(dlsch->harq_process_sib1.round==0){// This is a new packet