Dear Albert,
I am trying to solve a similar problem. I have a setup in which the Ue Rx receives samples and calculates a frame boundary offset. Instead of correcting for this frame boundary offset by software, I am trying to use AT2 events to appropriately delay the arrival of interrupts to the DSP. At first, AT Evt 2 is enabled and upon estimation of the frame boundary offset, AT evt 1 is initialized and enabled. I first convert the required frame boundary offset into nanoseconds and then translate that into byte clocks using the IQN2 LLD. I paste a code snippet below:
at_evt2->EventSelect = IQN2_AT2_EVENT_1; // Evt 1
at_evt2->EventOffset = (frame_offset)*130;// Offset from frame boundary in nanoseconds
at_evt2->EvtStrobeSel =IQN2_getRadioTimerFrameStrobe(radtId);
at_evt2->EventModulo = 500000; // 0.5ms in ns (lte slot)
// Convert to byte clocks prior to IQN2_initAt2Event()
IQN2_initNanoSecsToByteClocks(pIqn2LldObj,at_evt2);
Would this approach work?
Thanks,
Regards,
Shiv.