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

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

The type of error encoutered during I2C communication.

Variants

AddressNak

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

DataNak

The data was not acknowledged by the slave.

ArbitrationLost

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.

Overrun

A start condition was received before received data has been read from the receive register.

CommandComplete

No error occured and the command completed successfully.

Trait Implementations

impl Display for Error[src]

impl Debug for Error[src]

impl PartialEq<Error> for Error[src]

impl Eq for Error[src]

impl Copy for Error[src]

impl Clone for Error[src]

Auto Trait Implementations

impl Unpin for Error

impl Send for Error

impl Sync for Error

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]