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

◆ audio_clock_set()

int audio_clock_set ( uint16_t freq_value)

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

Set the audio clock frequency. This function configures the audio clock to the specified frequency value. The frequency value must be within the range defined by APLL_FREQ_MIN and APLL_FREQ_MAX. The function will adjust the frequency to fit within this range if necessary.

Parameters
[in]freq_valueThe desired frequency value for the audio clock, calculated according to the formula in the nRF5340 SoC documentation.
Returns
0 on success, or a negative error code on failure.