Struct dac8568::Dac [−][src]
pub struct Dac<SPI, SYNC> { /* fields omitted */ }
DAC8568
Implementations
impl<SPI, SYNC> Dac<SPI, SYNC> where
SPI: Write<u8>,
SYNC: OutputPin,
[src]
impl<SPI, SYNC> Dac<SPI, SYNC> where
SPI: Write<u8>,
SYNC: OutputPin,
[src]pub fn new(spi: SPI, sync: SYNC) -> Self
[src]
Initialize a new instance of dac8568
pub fn release(self) -> (SPI, SYNC)
[src]
Consume the dac and return the underlying SPI and GPIO pins used by it
pub fn write(&mut self, message: Message) -> Result<(), DacError>
[src]
Write to the DAC via a blocking call on the specified SPI interface