Enum embedded_hal::blocking::i2c::Operation[][src]

pub enum Operation<'a> {
    Read(&'a mut [u8]),
    Write(&'a [u8]),
}
Expand description

Transactional I2C operation.

Several operations can be combined as part of a transaction.

Variants

Read

Read data into the provided buffer

Tuple Fields of Read

0: &'a mut [u8]
Write

Write data from the provided buffer

Tuple Fields of Write

0: &'a [u8]

Trait Implementations

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.