[−][src]Enum atsame70n20b::mcan0::mcan_psr::LEC_A
Last Error Code (set to 111 on read)
Value on reset: 0
Variants
0: No error occurred since LEC has been reset by successful reception or transmission.
1: More than 5 equal bits in a sequence have occurred in a part of a received message where this is not allowed.
2: A fixed format part of a received frame has the wrong format.
3: The message transmitted by the MCAN was not acknowledged by another node.
4: During transmission of a message (with the exception of the arbitration field), the device tried to send a recessive level (bit of logical value '1'), but the monitored bus value was dominant.
5: During transmission of a message (or acknowledge bit, or active error flag, or overload flag), the device tried to send a dominant level (data or identifier bit logical value '0'), but the monitored bus value was recessive. During Bus_Off recovery, this status is set each time a sequence of 11 recessive bits has been monitored. This enables the processor to monitor the proceeding of the Bus_Off recovery sequence (indicating the bus is not stuck at dominant or continuously disturbed).
6: The CRC check sum of a received message was incorrect. The CRC of an incoming message does not match the CRC calculated from the received data.
7: Any read access to the Protocol Status Register re-initializes the LEC to '7'. When the LEC shows value '7', no CAN bus event was detected since the last processor read access to the Protocol Status Register.
Trait Implementations
impl Clone for LEC_A
[src]
fn clone(&self) -> LEC_A
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for LEC_A
[src]
impl Debug for LEC_A
[src]
impl From<LEC_A> for u8
[src]
impl PartialEq<LEC_A> for LEC_A
[src]
impl StructuralPartialEq for LEC_A
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,