Enum atsamv71q20b::mcan0::psr::LECSELECT_A
source · [−]#[repr(u8)]
pub enum LECSELECT_A {
NO_ERROR,
STUFF_ERROR,
FORM_ERROR,
ACK_ERROR,
BIT1_ERROR,
BIT0_ERROR,
CRC_ERROR,
NO_CHANGE,
}
Expand description
Last Error Code (set to 111 on read)
Value on reset: 0
Variants
NO_ERROR
0: No error occurred since LEC has been reset by successful reception or transmission.
STUFF_ERROR
1: More than 5 equal bits in a sequence have occurred in a part of a received message where this is not allowed.
FORM_ERROR
2: A fixed format part of a received frame has the wrong format.
ACK_ERROR
3: The message transmitted by the MCAN was not acknowledged by another node.
BIT1_ERROR
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.
BIT0_ERROR
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).
CRC_ERROR
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.
NO_CHANGE
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
sourceimpl Clone for LECSELECT_A
impl Clone for LECSELECT_A
sourcefn clone(&self) -> LECSELECT_A
fn clone(&self) -> LECSELECT_A
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more