1e3/RU2UE[ru_id][UE_id][CC_id]->sampling_rate,// sampling time (ns)
1e3/RU2UE[ru_id][UE_id][CC_id]->sampling_rate,// sampling time (ns)
(double)PHY_vars_UE_g[UE_id][CC_id]->rx_total_gain_dB-66.227);// rx_gain (dB) (66.227 = 20*log10(pow2(11)) = gain from the adc that will be applied later)
(double)PHY_vars_UE_g[UE_id][CC_id]->rx_total_gain_dB-66.227);// rx_gain (dB) (66.227 = 20*log10(pow2(11)) = gain from the adc that will be applied later)
#ifdef DEBUG_SIM
#ifdef DEBUG_SIM
rx_pwr=signal_energy_fp(r_re0,r_im0,
rx_pwr=signal_energy_fp(r_re0,r_im0,
nb_antennas_rx,
nb_antennas_rx,
length<length_meas?length:length_meas,
length<length_meas?length:length_meas,
0)/(12.0*frame_parms->N_RB_DL);
0)/(12.0*frame_parms->N_RB_DL);
LOG_D(OCM,"[SIM][DL] UE %d : ADC in (RU %d) %f dBm/RE for subframe %d\n",
LOG_D(OCM,"[SIM][DL] UE %d : ADC in (RU %d) %f dBm/RE for subframe %d\n",
1e3/UE2RU[0][ru_id][CC_id]->sampling_rate,// sampling time (ns)
1e3/UE2RU[0][ru_id][CC_id]->sampling_rate,// sampling time (ns)
(double)RC.ru[ru_id]->max_rxgain-(double)RC.ru[ru_id]->att_rx-66.227);// rx_gain (dB) (66.227 = 20*log10(pow2(11)) = gain from the adc that will be applied later)
(double)RC.ru[ru_id]->max_rxgain-(double)RC.ru[ru_id]->att_rx-66.227);// rx_gain (dB) (66.227 = 20*log10(pow2(11)) = gain from the adc that will be applied later)