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

pub enum Error {
    AddressNak,
    DataNak,
    ArbitrationLost,
    Overrun,
    NotSupported,
    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.

NotSupported

The requested operation wasn't supported.

CommandComplete

No error occured and the command completed successfully.

Trait Implementations

impl Clone for Error[src]

impl Copy for Error[src]

impl Debug for Error[src]

impl Display for Error[src]

impl Eq for Error[src]

impl PartialEq<Error> for Error[src]

impl StructuralEq for Error[src]

impl StructuralPartialEq for Error[src]

Auto Trait Implementations

impl Send for Error

impl Sync for Error

impl Unpin for Error

Blanket Implementations

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

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

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

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

impl<T, U> Into<U> for T where
    U: From<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> 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.