Enum efm32gg11b::can1::status::LEC_A[][src]

#[repr(u8)]
pub enum LEC_A {
    NONE,
    STUFF,
    FORM,
    ACK,
    BIT1,
    BIT0,
    CRC,
    UNUSED,
}
Expand description

Last Error Code

Value on reset: 0

Variants

NONE

0: No error occurred during last CAN bus event.

STUFF

1: More than 5 equal bits in a sequence have occurred in a part of a received message where this is not allowed.

FORM

2: A fixed format part of a received frame has the wrong format.

ACK

3: The message this CAN Core transmitted was not acknowledged by another node.

BIT1

4: During the transmission of a message (with the exception of the arbitration field), the device wanted to send a recessive level (bit of logical value 1), but the monitored bus value was dominant.

BIT0

5: During the transmission of a message (or acknowledge bit, or active error flag, or overload flag), the device wanted 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 CPU to monitor the proceeding of the Bus Off recovery sequence (indicating the bus is not stuck at dominant or continuously disturbed).

CRC

6: The CRC check sum was incorrect in the message received; the CRC received for an incoming message does not match with the calculated CRC for the received data.

UNUSED

7: When the LEC shows the value ‘7’, no CAN bus event was detected since the CPU wrote this value to the LEC.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.