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

I2C read command

Fields of Read

The slave address of the device to read from.

A data buffer to read into.

Additional flags can modify the operation to work around device quirks.

I2C write command

Fields of Write

The slave address of the device to write to.

The data to write.

Additional flags can modify the operation to work around device quirks.

Methods

impl<'a> Message<'a>
[src]

[src]

Byte length of the message data buffer.

[src]

Address of the message's slave.

[src]

The data buffer of the message.