Expand description
A simple HAL for the Cirrus Logic/Wolfson WM8731 audio codec
This crate provides simple abstractions for the various control registers on the WM8731.
Each function returns a Register
struct, representing the address and value for the register.
With the exception of active
and reset
, registers accept a function for configuration.
For example, to power on/off certain features, we can call power_down
:
WM8731::power_down(|c| {
c.line_input().power_off();
c.adc().power_off();
c.dac().power_off();
});
Re-exports§
pub use enable_disable::EnableDisable;
Modules§
- active
- Control to activate/deactivate interface
- analog_
audio_ path - Configuration for analog audio path
- digital_
audio_ interface_ format - Configuration for the digital audio interface
- digital_
audio_ path - Configuration for digital audio path
- enable_
disable - headphone_
out - Configuration for headphone outputs
- line_in
- Configuration for line inputs
- power_
down - Configuration for power to different parts of the device
- sampling
- Configuration for sampling
- sampling_
rate