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 PartialOrd for ErrorKind
impl PartialOrd for ErrorKind
impl Copy for ErrorKind
impl Eq for ErrorKind
impl StructuralPartialEq for ErrorKind
Auto Trait Implementations§
impl Freeze for ErrorKind
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnwindSafe for ErrorKind
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)