Enum embedded_hal::can::ErrorKind
source · pub enum ErrorKind {
Overrun,
Bit,
Stuff,
Crc,
Form,
Acknowledge,
Other,
}
Expand description
CAN error kind
This represents a common set of CAN operation errors. HAL implementations are free to define more specific or additional error types. However, by providing a mapping to these common CAN errors, generic code can still react to them.
Variants§
Overrun
The peripheral receive buffer was overrun.
Bit
A bit error is detected at that bit time when the bit value that is monitored differs from the bit value sent.
Stuff
A stuff error is detected at the bit time of the sixth consecutive equal bit level in a frame field that shall be coded by the method of bit stuffing.
Crc
Calculated CRC sequence does not equal the received one.
Form
A form error shall be detected when a fixed-form bit field contains one or more illegal bits.
Acknowledge
An ACK error shall be detected by a transmitter whenever it does not monitor a dominant bit during the ACK slot.
Other
A different error occurred. The original error may contain more information.
Trait Implementations§
source§impl Ord for ErrorKind
impl Ord for ErrorKind
source§impl PartialEq<ErrorKind> for ErrorKind
impl PartialEq<ErrorKind> for ErrorKind
source§impl PartialOrd<ErrorKind> for ErrorKind
impl PartialOrd<ErrorKind> for ErrorKind
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read more