Enum kernel::hil::i2c::Error [] [src]

pub enum Error {
    AddressNak,
    DataNak,
    ArbitrationLost,
    CommandComplete,
}

The type of error encoutered during an I2C command transmission.

Variants

The slave did not acknowledge the chip address. Most likely the address is incorrect or the slave is not properly connected.

The data was not acknowledged by the slave.

Arbitration lost, meaning the state of the data line does not correspond to the data driven onto it. This can happen, for example, when a higher-priority transmission is in progress by a different master.

No error occured and the command completed successfully.

Trait Implementations

impl Copy for Error
[src]

impl Clone for Error
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Error
[src]

[src]

Formats the value using the given formatter. Read more

impl Eq for Error
[src]

[src]

impl PartialEq for Error
[src]

[src]

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

1.0.0
[src]

This method tests for !=.

impl Display for Error
[src]

[src]

Formats the value using the given formatter. Read more