Trait crabik_board::blocking::i2c::WriteIterRead[][src]

pub trait WriteIterRead {
    type Error;
    pub fn write_iter_read<B>(
        &mut self,
        address: u8,
        bytes: B,
        buffer: &mut [u8]
    ) -> Result<(), Self::Error>
    where
        B: IntoIterator<Item = u8>
; }

Blocking write (iterator version) + read

Associated Types

type Error[src]

Error type

Loading content...

Required methods

pub fn write_iter_read<B>(
    &mut self,
    address: u8,
    bytes: B,
    buffer: &mut [u8]
) -> Result<(), Self::Error> where
    B: IntoIterator<Item = u8>, 
[src]

Sends bytes to slave with address addr and then reads enough bytes to fill buffer in a single transaction

I2C Events (contract)

Same as the WriteRead trait

Loading content...

Implementors

Loading content...