Trait i2c::BulkTransfer
[−]
[src]
pub trait BulkTransfer: Master { fn i2c_transfer_support(
&mut self
) -> Result<(ReadFlags, WriteFlags), Self::Error>; fn i2c_transfer(
&mut self,
messages: &mut [Message]
) -> Result<(), Self::Error>; }
Advanced I2C transfer queues that support repeated START operations.
Required Methods
fn i2c_transfer_support(
&mut self
) -> Result<(ReadFlags, WriteFlags), Self::Error>
&mut self
) -> Result<(ReadFlags, WriteFlags), Self::Error>
Specifies the flags that this implementation supports.
fn i2c_transfer(&mut self, messages: &mut [Message]) -> Result<(), Self::Error>
Executes a queue of I2C transfers, separated by repeated START conditions. Data buffers are truncated to the actual read length on completion.