intpss_search_time_nr(int**rxdata,///rx data in time domain
NR_DL_FRAME_PARMS*frame_parms,
intfo_flag,
int*eNB_id,
int*f_off)
{
unsignedintn,ar,peak_position,pss_source;
int64_tpeak_value;
int64_tresult,result1,result2;
int64_tresult;
int64_tavg[NUMBER_PSS_SEQUENCE];
doubleffo_est;
doubleffo_est=0;
unsignedintlength=(NR_NUMBER_OF_SUBFRAMES_PER_FRAME*frame_parms->samples_per_subframe);/* 1 frame for now, it should be 2 TODO_NR */
...
...
@@ -894,10 +897,11 @@ int pss_search_time_nr(int **rxdata, ///rx data in time domain
}
}
if(fo_flag){
// fractional frequency offser computation according to Cross-correlation Synchronization Algorithm Using PSS
// Shoujun Huang, Yongtao Su, Ying He and Shan Tang, "Joint time and frequency offset estimation in LTE downlink," 7th International Conference on Communications and Networking in China, 2012.
int64_tresult1,result2;
// Computing cross-correlation at peak on half the symbol size for first half of data