Enum embedded_hal::can::ErrorKind [−][src]
#[non_exhaustive]
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 (Non-exhaustive)
This enum is marked as non-exhaustive
The peripheral receive buffer was overrun.
A bit error is detected at that bit time when the bit value that is monitored differs from the bit value sent.
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.
Calculated CRC sequence does not equal the received one.
A form error shall be detected when a fixed-form bit field contains one or more illegal bits.
An ACK error shall be detected by a transmitter whenever it does not monitor a dominant bit during the ACK slot.
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