AFE4404 Rust driver
This is a AFE4404 driver for Rust embedded-hal. It allows a high level interaction with the AFE.
Usage
Initialise the AFE:
let mut frontend = AFE4404with_three_leds;
Set the LEDs current:
frontend
.set_leds_current
.expect;
Set the TIA resistors:
frontend
.set_tia_resistors
.expect;
Set the clock source:
frontend
.set_clock_source
.expect;
Read the sampled values:
let sample = frontend.read;