Expand description
A thin HAL to control and configure the Cirrus Logic/Wolfson WM8731 audio codec
This crate provide abstractions to communicate with the WM8731 Software Control Interface and edit content of Control Registers. Look Wm8731 documentation to know how to control the codec.
Part of this documentation refers to WM8731 datasheets. Copy are available in the project repository.
Modules§
- interface
- Handle communication details
- prelude
- Prelude. Bring into scope everything you need for most common use.
- registers
- Registers of Wm8731 codec.
Structs§
- HpVoldB
- Headphone volume in dB
- InVoldB
- Abstraction to represent input volume in dB.
- Sampling
Rates - Abstraction for Sampling Rates. Replace
USB/NORMAL
,BOSR
andSR
fields representation. - Side
AttdB - Mic to output attenuation in dB. Beware, greater value mean greater attenuation, ie lower volume.
- Wm8731
- Wm8731 Control Interface Abstraction.