pucch_resource_id=ue->pucch_config_dedicated_nr[gNB_id].PUCCH_ResourceSet[pucch_resource_set]->pucch_resource_id[pucch_resource_indicator];/* get the first resource of the set */
pucch_resource_id=mac->ULbwp[bwp_id-1]->bwp_Dedicated->pucch_Config->choice.setup->resourceSetToAddModList->list.array[pucch_resource_set]->resourceList.list.array[pucch_resource_indicator][0];/* get the first resource of the set */
}
}
else{
else{
LOG_W(PHY,"PUCCH no resource set found for CSI at line %d in function %s of file %s \n",LINE_FILE,__func__,FILE_NAME);
LOG_W(PHY,"PUCCH no resource set found for CSI at line %d in function %s of file %s \n",LINE_FILE,__func__,FILE_NAME);
max_code_rate=code_rate_r_time_100[ue->pucch_config_dedicated_nr[gNB_id].formatConfig[format-1]->maxCodeRate];/* it is code rate * 10 */
max_code_rate=code_rate_r_time_100[mac->ULbwp[bwp_id-1]->bwp_Dedicated->pucch_Config->choice.setup->format1->choice.setup->maxCodeRate[0]];/* it is code rate * 10 */