Trait async_embedded_traits::i2c::AsyncI2cWrite[][src]

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

I2C write

Associated Types

type Error[src]

Write error

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

Write future for polling on completion

Loading content...

Required methods

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

Sends bytes to the slave, ignoring all the incoming bytes

Loading content...

Implementors

Loading content...