Commit 42e4c952 authored by Matthieu Kanj's avatar Matthieu Kanj

operational code version for synchro testing

parent 3c1373a1
This diff is collapsed.
......@@ -221,10 +221,11 @@ void common_signal_procedures_NB_IoT(PHY_VARS_eNB *eNB,eNB_rxtx_proc_t *proc)
int subframe = proc->subframe_tx;
int frame = proc->frame_tx;
uint16_t Ntti = 10; //ntti = 10
int RB_IoT_ID=9 ; // XXX should be initialized (RB reserved for NB-IoT, PRB index)
int With_NSSS; // With_NSSS = 1; if the frame include a sub-Frame with NSSS signal
int RB_IoT_ID=2 ; // XXX should be initialized (RB reserved for NB-IoT, PRB index)
int With_NSSS=0; // With_NSSS = 1; if the frame include a sub-Frame with NSSS signal
/*NSSS only happened in the even frame*/
//NSSS only happened in the even frame
if(frame%2==0)
{
With_NSSS = 1;
......@@ -234,40 +235,42 @@ void common_signal_procedures_NB_IoT(PHY_VARS_eNB *eNB,eNB_rxtx_proc_t *proc)
With_NSSS = 0;
}
/*NPSS when subframe 5*/
if(subframe == 5)
{
generate_npss_NB_IoT(txdataF,
AMP,
fp,
3,
0,
10,
RB_IoT_ID);
}
/*NSSS when subframe 9 on even frame*/
else if((subframe == 9)&&(With_NSSS == 1))
{
//printf("NSSS");
generate_sss_NB_IoT(txdataF,
AMP,
fp,
3,
0,
18,
frame,
RB_IoT_ID);
}
else
/*else
{
/*NRS*/
/* generate_pilots_NB_IoT(eNB,
generate_pilots_NB_IoT(eNB,
txdataF,
AMP,
Ntti,
RB_IoT_ID,
With_NSSS); */
With_NSSS);
}
*/
}
void phy_procedures_eNB_uespec_RX_NB_IoT(PHY_VARS_eNB_NB_IoT *eNB,eNB_rxtx_proc_t *proc,UL_IND_t *UL_INFO)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment