Trait stm32_hal2::dac::SingleChannelDac[][src]

pub trait SingleChannelDac<Word> {
    type Error;
    fn try_set_value(&mut self, value: Word) -> Result<(), Self::Error>;
}

Trait representing a single-channel digital-to-analog converter (DAC).

Associated Types

type Error[src]

Error type returned by DAC methods

Loading content...

Required methods

fn try_set_value(&mut self, value: Word) -> Result<(), Self::Error>[src]

Output a constant signal, given a bit word.

Loading content...

Implementors

impl SingleChannelDac<u32> for Dac[src]

type Error = DacError

fn try_set_value(&mut self, val: u32) -> Result<(), DacError>[src]

Set the DAC value as an integer.

Loading content...