![]() |
nRF Connect SDK API 3.3.99
|
Audio clock management for nRF Audio application. More...
Macros | |
| #define | HFCLKAUDIO_12_288_MHZ 0x9BA6 |
| HFCLKAUDIO frequency value for 12.288-MHz output. | |
| #define | HFCLKAUDIO_12_165_MHZ 0x8FD8 |
| #define | HFCLKAUDIO_12_411_MHZ 0xA774 |
| #define | APLL_FREQ_MIN HFCLKAUDIO_12_165_MHZ |
| #define | APLL_FREQ_CENTER HFCLKAUDIO_12_288_MHZ |
| #define | APLL_FREQ_MAX HFCLKAUDIO_12_411_MHZ |
Functions | |
| int | audio_clock_set (uint16_t freq_value) |
| 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. | |
| int | audio_clock_init (void) |
| Initialize the audio clock. This function initializes the audio clock system, which may involve configuring the necessary hardware components and ensuring that the clock is ready for use. This should be called before any other audio clock functions are used. | |
Audio clock management for nRF Audio application.
This module provides functions to manage the audio clock. On the nRF5340 SoC, the audio clock is typically derived from the Analog Phase-Locked Loop (APLL), which is used to generate the required frequencies for transmission, for instance I2S or TDM.