nRF Connect SDK API 3.3.99
Loading...
Searching...
No Matches
audio_clock.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2026 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
17#ifndef _AUDIO_CLOCK_H_
18#define _AUDIO_CLOCK_H_
19
20#include <stdint.h>
21#include <nrfx_clock.h>
22
29#define HFCLKAUDIO_12_288_MHZ 0x9BA6
30
31#define HFCLKAUDIO_12_165_MHZ 0x8FD8
32
33#define HFCLKAUDIO_12_411_MHZ 0xA774
34
35/* Audio clock - nRF5340 Analog Phase-Locked Loop (APLL) */
36#define APLL_FREQ_MIN HFCLKAUDIO_12_165_MHZ
37#define APLL_FREQ_CENTER HFCLKAUDIO_12_288_MHZ
38#define APLL_FREQ_MAX HFCLKAUDIO_12_411_MHZ
39
51int audio_clock_set(uint16_t freq_value);
52
62
67#endif /* _AUDIO_CLOCK_H_ */
int audio_clock_init(void)
Initialize the audio clock. This function initializes the audio clock system, which may involve confi...
int audio_clock_set(uint16_t freq_value)
Set the audio clock frequency. This function configures the audio clock to the specified frequency va...