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

Handle communication details

Prelude. Bring into scope everything you need for most common use.

Registers of Wm8731 codec.

Structs

Headphone volume in dB

Abstraction to represent input volume in dB.

Abstraction for Sampling Rates. Replace USB/NORMAL, BOSR and SR fields representation.

Mic to output attenuation in dB. Beware, greater value mean greater attenuation, ie lower volume.

Wm8731 Control Interface Abstraction.

Enums

De-emphasis filter selection.

Audio data format selection.

Inputs to ADC selection.

Input audio data bit length selection.

Master or slave mode selection.