nRF Connect SDK API 3.3.99
Loading...
Searching...
No Matches

◆ audio_sync_timer_frame_start_capture_get()

uint32_t audio_sync_timer_frame_start_capture_get ( void )

#include <applications/nrf_audio/src/modules/audio_sync_timer.h>

Returns the last captured value of the sync timer.

The captured time is corresponding to the I2S frame start. NOTE: This function is not reentrant and must only be called once in the I2S ISR. There may be a delay in the capturing of the clock value. Hence, there is a retry-loop with a timeout. Should we not get the new capture value before the timeout, a warning will be printed and calculations based on the old timer capture values.

See audio_sync_timer_capture().

Return values
Thelast captured timestamp of the audio sync timer.