38.11.3.3 CAN Bus Error Interrupt (CERRIF)
The CxTREC register will count the errors during transmit and receive according to the ISO11898-1:2015. The CERRIF flag will be set based on the error counter values. The flag must be cleared by the application.
CERRIF will be set each time a threshold in the TEC/REC counter is crossed
by the following conditions:
- TEC or REC exceeds the Error Warning state threshold.
- The transmitter or receiver transitions to the Error Passive state.
- The transmitter transitions to the Bus Off state.
- The transmitter or receiver transitions from the Error Passive to Error Active state.
- The module transitions from the Bus Off to Error Active state after the bus off recovery sequence.
When the user clears CERRIF, it will remain clear until a new counter crossing occurs.