Enum embedded_hal::spi::ErrorKind [−][src]
#[non_exhaustive]
pub enum ErrorKind {
Overrun,
ModeFault,
FrameFormat,
Other,
}
Expand description
SPI error kind
This represents a common set of SPI operation errors. HAL implementations are free to define more specific or additional error types. However, by providing a mapping to these common SPI errors, generic code can still react to them.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
The peripheral receive buffer was overrun
Multiple devices on the SPI bus are trying to drive the slave select pin, e.g. in a multi-master setup
Received data does not conform to the peripheral configuration
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