Trait i2c::BlockTransfer 
                   
                       [−]
                   
               [src]
pub trait BlockTransfer: Master {
    fn i2c_read_block_data(
        &mut self, 
        command: u8, 
        value: &mut [u8]
    ) -> Result<usize, Self::Error>;
    fn i2c_write_block_data(
        &mut self, 
        command: u8, 
        value: &[u8]
    ) -> Result<(), Self::Error>;
}Basic I2C transfer without including length prefixes associated with SMBus.
Required Methods
fn i2c_read_block_data(
    &mut self, 
    command: u8, 
    value: &mut [u8]
) -> Result<usize, Self::Error>
&mut self,
command: u8,
value: &mut [u8]
) -> Result<usize, Self::Error>
Reads a block of bytes from the designated device register.
Unlike smbus_read_block_data this does not receive a data length.
fn i2c_write_block_data(
    &mut self, 
    command: u8, 
    value: &[u8]
) -> Result<(), Self::Error>
&mut self,
command: u8,
value: &[u8]
) -> Result<(), Self::Error>
Writes a block of bytes to the designated device register.
Unlike smbus_write_block_data this does not transfer the data length.
Implementors
- impl<I: ReadWrite> BlockTransfer for SmbusReadWrite<I>