AssertFatal((prs_cfg->CombSize==2)||(prs_cfg->CombSize==4),"[NR_PRS Channel EStimation] CombSize other than 2 and 4 are NOT supported currently. Exiting!!!");
AssertFatal((prs_cfg->CombSize==2)||(prs_cfg->CombSize==4),"[%s] DL PRS CombSize other than 2 and 4 are NOT supported currently. Exiting!!!",__FUNCTION__);
LOG_I(PHY,"[gNB %d][Rx %d][sfn %d][slot %d] ToA for PRS symbol %2d ==> %d / %d samples, peak channel power %.1f dB\n",gNB_id,rxAnt,proc->frame_rx,proc->nr_slot_rx,l,prs_meas[rxAnt][l].dl_toa-(frame_params->ofdm_symbol_size>>1),frame_params->ofdm_symbol_size,10*log10(ch_pwr));
//prs measurements
prs_meas[rxAnt][l].gNB_id=0;
prs_meas[rxAnt][l].timestamp=0;
prs_meas[rxAnt][l].sfn=proc->frame_rx;
prs_meas[rxAnt][l].slot=proc->nr_slot_rx;
prs_meas[rxAnt][l].symbol=l;
prs_meas[rxAnt][l].rxAnt_idx=rxAnt;
prs_meas[rxAnt][l].snr=0;
prs_meas[rxAnt][l].dl_aoa=0;
}// for rxAnt
}//for l
// Time domain IMPULSE response
idft_size_idx_tidftsizeidx;
switch(frame_params->ofdm_symbol_size){
case128:
idftsizeidx=IDFT_128;
break;
case256:
idftsizeidx=IDFT_256;
break;
case512:
idftsizeidx=IDFT_512;
break;
case768:
idftsizeidx=IDFT_768;
break;
case1024:
idftsizeidx=IDFT_1024;
break;
case1536:
idftsizeidx=IDFT_1536;
break;
case2048:
idftsizeidx=IDFT_2048;
break;
case3072:
idftsizeidx=IDFT_3072;
break;
case4096:
idftsizeidx=IDFT_4096;
break;
default:
LOG_I(PHY,"%s: unsupported ofdm symbol size \n",__FUNCTION__);
LOG_I(PHY,"[gNB %d][Rx %d][sfn %d][slot %d] ToA for PRS symbol %2d ==> %d / %d samples, peak channel power %.1f dB\n",gNB_id,rxAnt,proc->frame_rx,proc->nr_slot_rx,l,prs_meas[rxAnt][l].dl_toa-(frame_params->ofdm_symbol_size>>1),frame_params->ofdm_symbol_size,10*log10(ch_pwr));