pub enum CanError {
Overrun,
Bit,
Stuff,
Crc,
Form,
Acknowledge,
BusOff,
BusPassive,
BusWarning,
Timeout,
}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
Bit stuffing error - more than 5 equal bits
Crc
The CRC check sum of a received message was incorrect. The CRC of an incoming message does not match with the CRC calculated from the received data.
Form
Form error - A fixed format part of a received message has wrong format
Acknowledge
The message transmitted by the FDCAN was not acknowledged by another node.
BusOff
CAN is in Bus_Off state.
BusPassive
CAN is in the Error_Passive state.
BusWarning
At least one of error counter has reached the Error_Warning limit of 96.
Timeout
Timeout error.
Trait Implementations§
impl Copy for CanError
impl Eq for CanError
impl StructuralPartialEq for CanError
Auto Trait Implementations§
impl Freeze for CanError
impl RefUnwindSafe for CanError
impl Send for CanError
impl Sync for CanError
impl Unpin for CanError
impl UnsafeUnpin for CanError
impl UnwindSafe for CanError
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)