Trait i2c::Smbus20
[−]
[src]
pub trait Smbus20: Smbus { fn smbus_process_call_block(
&mut self,
command: u8,
write: &[u8],
read: &mut [u8]
) -> Result<usize, Self::Error>; }
SMBus 2.0 operations
Required Methods
fn smbus_process_call_block(
&mut self,
command: u8,
write: &[u8],
read: &mut [u8]
) -> Result<usize, Self::Error>
&mut self,
command: u8,
write: &[u8],
read: &mut [u8]
) -> Result<usize, Self::Error>
Sends up to 31 bytes of data to the designated register, and reads up to 31 bytes in return.
Returns the number of bytes read, which may be larger than read.len()
if the read was truncated.
Implementors
impl<I: ReadWrite> Smbus20 for SmbusReadWrite<I>