Crate wm8731_another_hal

Source
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.
SamplingRates
Abstraction for Sampling Rates. Replace USB/NORMAL, BOSR and SR fields representation.
SideAttdB
Mic to output attenuation in dB. Beware, greater value mean greater attenuation, ie lower volume.
Wm8731
Wm8731 Control Interface Abstraction.

Enums§

DeempV
De-emphasis filter selection.
FormatV
Audio data format selection.
InselV
Inputs to ADC selection.
IwlV
Input audio data bit length selection.
MsV
Master or slave mode selection.