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

Header only C++ driver for the Wolfson/Cirrus WM8904 audio codec. More...

#include "Codecs/ZephyrDriverCommon.h"

Go to the source code of this file.

Classes

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

Namespaces

namespace  audio_driver
 Namespace for audio driver components.
 

Enumerations

enum class  WM8904Channel {
  FrontLeft , FrontRight , HeadphoneLeft , HeadphoneRight ,
  All
}
 Logical audio channels. More...
 
enum class  WM8904FsRatio {
  Ratio64X = 0x0 , Ratio128X = 0x1 , Ratio192X = 0x2 , Ratio256X = 0x3 ,
  Ratio384X = 0x4 , Ratio512X = 0x5 , Ratio768X = 0x6 , Ratio1024X = 0x7 ,
  Ratio1408X = 0x8 , Ratio1536X = 0x9
}
 SYSCLK / fs ratio. More...
 
enum class  WM8904Protocol {
  RightJustified = 0x0 , LeftJustified = 0x1 , I2S = 0x2 , PCMA = 0x3 ,
  PCMB = 0x3 | (1 << 4)
}
 Audio data transfer protocol. More...
 
enum class  WM8904SampleRate {
  Rate8kHz = 0x0 , Rate12kHz = 0x1 , Rate16kHz = 0x2 , Rate24kHz = 0x3 ,
  Rate32kHz = 0x4 , Rate48kHz = 0x5
}
 Sample rate (WM8904_REG_CLK_RATES_1 SAMPLE_RATE field) More...
 

Detailed Description

Header only C++ driver for the Wolfson/Cirrus WM8904 audio codec.

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