get_UL_slots_per_RU_NB_IoT(nulsch_harq->subcarrier_spacing,nulsch_harq->subcarrier_indication,nulsch->npusch_format)*get_UL_N_ru_NB_IoT(nulsch_harq->mcs,nulsch_harq->resource_assignment,nulsch->Msg3_flag),// total number of occupied slots = get_nb_slot_per_RU * NB_of_RU
N_slots,// total number of occupied slots = get_nb_slot_per_RU * NB_of_RU
// get_UL_I_TBS_from_MCS_NB_IoT() to be used to get the I_TBS for any NPUSCH format
(ul_config_pdu+i)->nulsch_pdu.nulsch_pdu_rel13.size=UL_TBS_Table_msg3[get_UL_I_TBS_from_MCS_NB_IoT(((DCIFormatN0_t*)DCI_pdu)->mcs,0,1)];// for the case of MSG3
//LOG_D(MAC,"test\n");
//LOG_D(MAC,"test\n");
(ul_config_pdu+i)->nulsch_pdu.nulsch_pdu_rel13.rnti=schedule_result_list_UL->rnti;//TODO : check if it is the right rnti // get from msg2
(ul_config_pdu+i)->nulsch_pdu.nulsch_pdu_rel13.rnti=schedule_result_list_UL->rnti;//TODO : check if it is the right rnti // get from msg2
...
@@ -302,7 +304,7 @@ int output_handler(eNB_MAC_INST_NB_IoT *mac_inst, module_id_t module_id, int CC_
...
@@ -302,7 +304,7 @@ int output_handler(eNB_MAC_INST_NB_IoT *mac_inst, module_id_t module_id, int CC_