arduino-audio-driver
Loading...
Searching...
No Matches
Classes | Namespaces | Enumerations
DA7212.h File Reference

Header only C++ driver for the Dialog Semiconductor DA7212 audio codec. More...

#include "Codecs/ZephyrDriverCommon.h"

Go to the source code of this file.

Classes

class  DA7212
 Header only C++ driver for the DA7212 audio codec. More...
 

Namespaces

namespace  audio_driver
 Namespace for audio driver components.
 

Enumerations

enum class  DA7212Channel {
  FrontLeft , FrontRight , HeadphoneLeft , HeadphoneRight ,
  All
}
 Logical audio channels. More...
 
enum class  DA7212Protocol { I2S = 0x00 , LeftJustified = 0x01 , RightJustified = 0x02 , DSPMode = 0x03 }
 Digital audio interface protocol (DAI_CTRL FORMAT field) More...
 
enum class  DA7212SampleRate {
  Rate8kHz = (1U << 0) , Rate11025Hz = (2U << 0) , Rate12kHz = (3U << 0) , Rate16kHz = (5U << 0) ,
  Rate22050Hz = (6U << 0) , Rate24kHz = (7U << 0) , Rate32kHz = (9U << 0) , Rate44100Hz = (10U << 0) ,
  Rate48kHz = (11U << 0) , Rate88200Hz = (14U << 0) , Rate96kHz = (15U << 0)
}
 Sample rate (SR register) More...
 

Detailed Description

Header only C++ driver for the Dialog Semiconductor DA7212 audio codec.

Ported from the Zephyr RTOS driver (drivers/audio/da7212.c / da7212.h, Copyright 2025 NXP, Apache-2.0).

Note
The PLL is not configured by this driver: it keeps the PLL disabled and uses MCLK directly as the system clock (matching the Zephyr driver's default, devicetree independent, configuration path).