RBRS=B_0x0, EW=B_0x0, BO=B_0x0, PXE=B_0x0, ACT=B_0x0, RESI=B_0x0, REDL=B_0x0, LEC=B_0x0, EP=B_0x0
FDCAN protocol status register
LEC | Last error code The LEC indicates the type of the last error to occur on the CAN bus. This field is cleared to 0 when a message has been transferred (reception or transmission) without error. Access type is RS: set on read. 0 (B_0x0): No Error: No error occurred since LEC has been reset by successful reception or transmission. 1 (B_0x1): Stuff Error: More than 5 equal bits in a sequence have occurred in a part of a received message where this is not allowed. 2 (B_0x2): Form Error: A fixed format part of a received frame has the wrong format. 3 (B_0x3): AckError: The message transmitted by the FDCAN was not acknowledged by another node. 4 (B_0x4): Bit1Error: 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. 5 (B_0x5): Bit0Error: 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). 6 (B_0x6): CRCError: 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. 7 (B_0x7): NoChange: Any read access to the Protocol status register re-initializes the LEC to '7â. When the LEC shows the value '7â, no CAN bus event was detected since the last CPU read access to the Protocol status register. |
ACT | Activity Monitors the moduleâs CAN communication state. 0 (B_0x0): Synchronizing: node is synchronizing on CAN communication. 1 (B_0x1): Idle: node is neither receiver nor transmitter. 2 (B_0x2): Receiver: node is operating as receiver. 3 (B_0x3): Transmitter: node is operating as transmitter. |
EP | Error passive 0 (B_0x0): The FDCAN is in the Error_Active state. It normally takes part in bus communication and sends an active error flag when an error has been detected. 1 (B_0x1): The FDCAN is in the Error_Passive state. |
EW | Warning Sstatus 0 (B_0x0): Both error counters are below the Error_Warning limit of 96. 1 (B_0x1): At least one of error counter has reached the Error_Warning limit of 96. |
BO | Bus_Off status 0 (B_0x0): The FDCAN is not Bus_Off. 1 (B_0x1): The FDCAN is in Bus_Off state. |
DLEC | Data last error code Type of last error that occurred in the data phase of a FDCAN format frame with its BRS flag set. Coding is the same as for LEC. This field is cleared to 0 when a FDCAN format frame with its BRS flag set has been transferred (reception or transmission) without error. Access type is RS: set on read. |
RESI | ESI flag of last received FDCAN message This bit is set together with REDL, independent of acceptance filtering. Access type is RX: reset on read. 0 (B_0x0): Last received FDCAN message did not have its ESI flag set. 1 (B_0x1): Last received FDCAN message had its ESI flag set. |
RBRS | BRS flag of last received FDCAN message This bit is set together with REDL, independent of acceptance filtering. Access type is RX: reset on read. 0 (B_0x0): Last received FDCAN message did not have its BRS flag set. 1 (B_0x1): Last received FDCAN message had its BRS flag set. |
REDL | Received FDCAN message This bit is set independent of acceptance filtering. Access type is RX: reset on read. 0 (B_0x0): Since this bit was reset by the CPU, no FDCAN message has been received. 1 (B_0x1): Message in FDCAN format with EDL flag set has been received. |
PXE | Protocol exception event 0 (B_0x0): No protocol exception event occurred since last read access 1 (B_0x1): Protocol exception event occurred |
TDCV | Transmitter delay compensation value Position of the secondary sample point, defined by the sum of the measured delay from FDCAN_TX to FDCAN_RX and TDCR.TDCO. The SSP position is, in the data phase, the number of minimum time quanta (mtq) between the start of the transmitted bit and the secondary sample point. Valid values are 0 to 127 mtq. |