inttti=/*frame*SUBFRAMES_PER_SYSTEMFRAME*SLOTNUM_PER_SUBFRAME+*/10*frame+slot;//commented out temporarily to check that compilation of oran 5g is working.
//int32_t flowId;
void*ptr=NULL;
void*ptr=NULL;
int32_t*pos=NULL;
int32_t*pos=NULL;
intidx=0;
intidx=0;
staticintprint_tmp=1;
staticintprint_tmp_1=1;
while(first_call_set!=1){
if(print_tmp){
print_tmp=0;
printf("wait in ru_thread() till first_call_set is set in xran\n");
}
}
while(first_rx_set!=1){
if(print_tmp_1){
print_tmp_1=0;
printf("wait in ru_thread for first_rx_set to set in xran\n");
pos=&ru->rxdataF[ant_id][sym_idx*4096/*fp->ofdm_symbol_size*/];// We had to use a different ru structure than benetel so the access to the buffer is not the same.
pos=(int32_t*)(start_ptr+(4*sym_idx*4096));
uint8_t*u8dptr;
uint8_t*u8dptr;
structxran_prb_map*pRbMap=pPrbMap;
structxran_prb_map*pRbMap=pPrbMap;
...
@@ -673,11 +703,9 @@ int xran_fh_rx_read_slot(void *xranlib_, ru_info_t *ru, int frame, int slot){
...
@@ -673,11 +703,9 @@ int xran_fh_rx_read_slot(void *xranlib_, ru_info_t *ru, int frame, int slot){
@@ -735,6 +763,8 @@ int xran_fh_rx_read_slot(void *xranlib_, ru_info_t *ru, int frame, int slot){
...
@@ -735,6 +763,8 @@ int xran_fh_rx_read_slot(void *xranlib_, ru_info_t *ru, int frame, int slot){
}
}
}
}
}
}
return(0);
return(0);
}
}
...
@@ -750,7 +780,7 @@ int xran_fh_tx_send_slot(void *xranlib_, ru_info_t *ru, int frame, int slot, uin
...
@@ -750,7 +780,7 @@ int xran_fh_tx_send_slot(void *xranlib_, ru_info_t *ru, int frame, int slot, uin
xranLibWraper*xranlib=((xranLibWraper*)xranlib_);
xranLibWraper*xranlib=((xranLibWraper*)xranlib_);
inttti=/*frame*SUBFRAMES_PER_SYSTEMFRAME*SLOTNUM_PER_SUBFRAME+*/10*frame+slot;//commented out temporarily to check that compilation of oran 5g is working.
inttti=/*frame*SUBFRAMES_PER_SYSTEMFRAME*SLOTNUM_PER_SUBFRAME+*/20*frame+slot;//commented out temporarily to check that compilation of oran 5g is working.
//int32_t flowId;
//int32_t flowId;
void*ptr=NULL;
void*ptr=NULL;
...
@@ -767,12 +797,6 @@ int xran_fh_tx_send_slot(void *xranlib_, ru_info_t *ru, int frame, int slot, uin
...
@@ -767,12 +797,6 @@ int xran_fh_tx_send_slot(void *xranlib_, ru_info_t *ru, int frame, int slot, uin
LOG_E(PHY,"Received Timestamp doesn't correspond to the time we think it is (proc->tti_rx %d, slot %d)\n",proc->tti_rx,*slot);
if(get_nprocs()<=4){
//exit_fun("Exiting");
// why? what if there are more?
}
proc->tti_tx=(sl+sl_ahead)%20;
proc->frame_tx=(sl>(19-sl_ahead))?(f+1)&1023:f;
if(proc->frame_rx!=*frame){
LOG_E(PHY,"Received Timestamp doesn't correspond to the time we think it is (proc->frame_rx %d frame %d proc->tti_rx %d tti %d)\n",proc->frame_rx,*frame,proc->tti_rx,*slot);