//we always advance the timestamp by samples_per_slot, even if we have not read the (full) slot. This is to keep the timestamp updated even when there is no RX.
proc->timestamp_rx+=samples_per_slot;
proc->frame_rx=*frame;
proc->tti_rx=*slot;
// synchronize first reception to frame 0 subframe 0
// synchronize first reception to frame 0 subframe 0
LOG_E(PHY,"Received Timestamp (%llu) doesn't correspond to the time we think it is (proc->tti_rx %d, slot %d)\n",(longlongunsignedint)proc->timestamp_rx,proc->tti_rx,*slot);
exit_fun("Exiting");
}
if(proc->frame_rx!=*frame){
LOG_E(PHY,"Received Timestamp (%llu) doesn't correspond to the time we think it is (proc->frame_rx %d frame %d)\n",(longlongunsignedint)proc->timestamp_rx,proc->frame_rx,*frame);