Struct dac8568::Dac[][src]

pub struct Dac<NSS> { /* fields omitted */ }

DAC8568

Implementations

impl<NSS> Dac<NSS> where
    NSS: OutputPin
[src]

pub fn new(nss: NSS) -> Self[src]

Initialize a new instance of dac8568

pub fn enable(&mut self)[src]

pub fn prepare_transfer<F: FnMut([u8; 4])>(
    &mut self,
    message: Message,
    callback: F
)
[src]

For asynchronous communication methods (e.g. Interrupt or DMA), this function prepares the DAC for the transfer, generates the command and passes it back to the initiator via the callback parameter

pub fn write_blocking(
    &mut self,
    spi: &mut dyn Write<u8, Error = ()>,
    message: Message
) -> Result<(), DacError>
[src]

Write to the DAC via a blocking call on the specified SPI interface

Auto Trait Implementations

impl<NSS> Send for Dac<NSS> where
    NSS: Send

impl<NSS> Sync for Dac<NSS> where
    NSS: Sync

impl<NSS> Unpin for Dac<NSS> where
    NSS: Unpin

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.