Expand description
§Digital to Analog Converter (DAC)
§Overview
Two DAC channels convert digital codes into analog voltages from 0 V to the
reference supply voltage. Dac::resolution gives the code width in bits.
§Configuration
Each DAC channel uses a fixed GPIO pin.
§Examples
§Write a value to a DAC channel
let mut dac1 = Dac::new(peripherals.DAC1, peripherals.GPIO25);
dac1.write(128);Structs§
- Dac
- A digital-to-analog converter (DAC) channel.