Enum i2c::Message
[−]
[src]
pub enum Message<'a> {
Read {
address: u16,
data: &'a mut [u8],
flags: ReadFlags,
},
Write {
address: u16,
data: &'a [u8],
flags: WriteFlags,
},
}Part of a combined I2C transaction.
Variants
ReadI2C read command
Fields of Read
address: u16 | The slave address of the device to read from. |
data: &'a mut [u8] | A data buffer to read into. |
flags: ReadFlags | Additional flags can modify the operation to work around device quirks. |
WriteI2C write command
Fields of Write
address: u16 | The slave address of the device to write to. |
data: &'a [u8] | The data to write. |
flags: WriteFlags | Additional flags can modify the operation to work around device quirks. |