nRF Connect SDK API 3.4.99
Loading...
Searching...
No Matches
audio_rate_control.h File Reference
#include <stdint.h>
#include <stdbool.h>

Go to the source code of this file.

Data Structures

struct  audio_rate_control_ops
 Audio rate control's callback structure. More...
struct  audio_rate_control_ctx
 Audio rate control's private context. More...

Enumerations

enum  audio_rate_control_state { AUDIO_RATE_CONTROL_STATE_EMPTY = 0 , AUDIO_RATE_CONTROL_STATE_UNINITIALIZED , AUDIO_RATE_CONTROL_STATE_INITIALIZED }
 The state of the audio rate control. More...
enum  audio_rate_control_type { AUDIO_PLL = 0 , USB_ASYNC = 1 , I2S = 2 , AUDIO_RATE_CONTROL_TYPE_COUNT }
 Enumeration of possible audio rate control sources. More...

Functions

int audio_rate_control_reset (enum audio_rate_control_type type)
 Reset an audio rate control module back to the last valid configuration.
int audio_rate_control_cfg_set (enum audio_rate_control_type type, struct audio_rate_control_cfg const *const cfg)
 Configure an audio rate control after it has been initialized.
int audio_rate_control_cfg_get (enum audio_rate_control_type type, struct audio_rate_control_cfg *const cfg)
 Get the configuration of an audio rate control module.
int audio_rate_control_update (enum audio_rate_control_type type, void *const control_val_u)
 Update the error between timestamps for an audio rate control module.
int audio_rate_control_register (enum audio_rate_control_type type, struct audio_rate_control_ops const *const imp_ops)
 Register an audio rate control implementation for a specific type.
int audio_rate_control_uninit (enum audio_rate_control_type type)
 Uninitialize an audio rate control module.
int audio_rate_control_init (enum audio_rate_control_type type)
 Initialize the registered audio rate control module.