PrefixWrite

Trait PrefixWrite 

Source
pub trait PrefixWrite {
    type Error;

    // Required method
    fn prefix_write(
        &mut self,
        prefix: &[u8],
        data: &[u8],
    ) -> Result<(), Self::Error>;
}
Expand description

PrefixWrite trait provides higher level, writye then write function

Required Associated Types§

Required Methods§

Source

fn prefix_write( &mut self, prefix: &[u8], data: &[u8], ) -> Result<(), Self::Error>

Write writes the prefix buffer then writes the output buffer

Implementors§

Source§

impl<T> PrefixWrite for T
where T: SpiDevice<u8>, <T as ErrorType>::Error: Debug,

Automatic driver_pal::PrefixWrite implementation for objects implementing embedded_hal::spi::SpiDevice.