pub type LinuxI2CMessage<'a> = i2c_msg;
Expand description
Linux I2C message
Aliased Type§
struct LinuxI2CMessage<'a> { /* private fields */ }
Implementations§
Source§impl<'a> LinuxI2CMessage<'a>
impl<'a> LinuxI2CMessage<'a>
Sourcepub fn with_address(self, slave_address: u16) -> Self
pub fn with_address(self, slave_address: u16) -> Self
Set the target device address for the message
Sourcepub fn with_flags(self, flags: I2CMessageFlags) -> Self
pub fn with_flags(self, flags: I2CMessageFlags) -> Self
Set optional message flags
Trait Implementations§
Source§impl<'a> I2CMessage<'a> for LinuxI2CMessage<'a>
impl<'a> I2CMessage<'a> for LinuxI2CMessage<'a>
Source§fn read(data: &'a mut [u8]) -> LinuxI2CMessage<'_>
fn read(data: &'a mut [u8]) -> LinuxI2CMessage<'_>
Read data from device
Source§fn write(data: &'a [u8]) -> LinuxI2CMessage<'_>
fn write(data: &'a [u8]) -> LinuxI2CMessage<'_>
Write data to device