1 2 3 4 5 6 7 8 9 10 11 12
//! Interface for digital to analog converters. use returncode::ReturnCode; /// Simple interface for using the DAC. pub trait DacChannel { /// Initialize and enable the DAC. fn initialize(&self) -> ReturnCode; /// Set the DAC output value. fn set_value(&self, value: usize) -> ReturnCode; }