nulsch_harq->subcarrier_spacing=nfapi_parameters_rel13->handle;// 0 for 15 KHz and 1 for 3.75 KHz// TODO : get the value from the UL_grant of MSG3
nulsch_harq->subcarrier_spacing=nfapi_parameters_rel13->handle;//* TO FIXE*/// // 0 for 15 KHz and 1 for 3.75 KHz// TODO : get the value from the UL_grant of MSG3
nulsch_harq->subcarrier_indication=nfapi_parameters_rel13->subcarrier_indication;// Isc =0->18 , or 0->47 // format 2, 0->3 or 0->7
nulsch_harq->subcarrier_indication=nfapi_parameters_rel13->subcarrier_indication;// Isc =0->18 , or 0->47 // format 2, 0->3 or 0->7
nulsch_harq->resource_assignment=nfapi_parameters_rel13->resource_assignment;// valid for format 1 // this should be set by DCI N0 // not used for msg3 // I_RU --> helps to get N_RU
nulsch_harq->resource_assignment=nfapi_parameters_rel13->resource_assignment;// valid for format 1 // this should be set by DCI N0 // not used for msg3 // I_RU --> helps to get N_RU
nulsch_harq->mcs=nfapi_parameters_rel13->mcs;// I_mcs = 0->10 (single tone) and 0->12 (multi-tone)
nulsch_harq->mcs=nfapi_parameters_rel13->mcs;// I_mcs = 0->10 (single tone) and 0->12 (multi-tone)
// get_UL_I_TBS_from_MCS_NB_IoT() to be used to get the I_TBS for any NPUSCH format
// 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,1,1)];// for the case of MSG3
(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,test_signle_tone_UL_NB_IoT(sc_spacing,((DCIFormatN0_t*)DCI_pdu)->scind,0),1)]/8;// 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