Trait async_embedded_traits::i2c::AsyncI2cTransfer [−][src]
I2C transfer. An async
version of i2c::blocking::WriteRead
Associated Types
type Error
[src]
Transfer error
type TransferFuture: Future<Output = Result<(), Self::Error>>
[src]
Transfer future for polling on completion
Required methods
fn async_transfer<'a>(
&'a mut self,
address: A,
tx_data: &'a [u8],
rx_data: &'a mut [u8]
) -> Self::TransferFuture
[src]
&'a mut self,
address: A,
tx_data: &'a [u8],
rx_data: &'a mut [u8]
) -> Self::TransferFuture
Sends bytes to the slave. Returns the bytes received from the slave