Trait async_embedded_traits::i2c::AsyncI2cRead[][src]

pub trait AsyncI2cRead<A: I2cAddressType> {
    type Error;
    type ReadFuture: Future<Output = Result<(), Self::Error>>;
    fn async_read<'a>(
        &'a mut self,
        address: A,
        data: &'a mut [u8]
    ) -> Self::ReadFuture; }

I2C read

Associated Types

type Error[src]

Read error

type ReadFuture: Future<Output = Result<(), Self::Error>>[src]

Read future for polling on completion

Loading content...

Required methods

fn async_read<'a>(
    &'a mut self,
    address: A,
    data: &'a mut [u8]
) -> Self::ReadFuture
[src]

Reads bytes from the slave

Loading content...

Implementors

Loading content...