Enum embedded_hal::i2c::ErrorKind [−][src]
#[non_exhaustive]
pub enum ErrorKind {
Bus,
ArbitrationLoss,
NoAcknowledge(NoAcknowledgeSource),
Overrun,
Other,
}
Expand description
I2C error kind
This represents a common set of I2C operation errors. HAL implementations are free to define more specific or additional error types. However, by providing a mapping to these common I2C errors, generic code can still react to them.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Bus error occurred. e.g. A START or a STOP condition is detected and is not located after a multiple of 9 SCL clock pulses.
The arbitration was lost, e.g. electrical problems with the clock signal
NoAcknowledge(NoAcknowledgeSource)
A bus operation was not acknowledged, e.g. due to the addressed device not being available on the bus or the device not being ready to process requests at the moment
Tuple Fields of NoAcknowledge
The peripheral receive buffer was overrun
A different error occurred. The original error may contain more information.
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more