Controller area network (bxCAN)
ï€ CAN_ERRORCODE_StuffErr: Stuff Error
ï€ CAN_ERRORCODE_FormErr: Form Error
ï€ CAN_ERRORCODE_ACKErr : Acknowledgment Error
ï€ CAN_ERRORCODE_BitRecessiveErr: Bit Recessive
Error
ï€ CAN_ERRORCODE_BitDominantErr: Bit Dominant
Error
ï€ CAN_ERRORCODE_CRCErr: CRC Error
ï€ CAN_ERRORCODE_SoftwareSetErr: Software Set
Error
4.2.12.2 CAN_GetReceiveErrorCounter
uint8_t CAN_GetReceiveErrorCounter ( CAN_TypeDef *
CANx)
Returns the CANx Receive Error Counter (REC).
ï‚· CANx : where x can be 1 or 2 to to select the CAN
peripheral.
ï‚· CAN Receive Error Counter.
ï‚· In case of an error during reception, this counter is
incremented by 1 or by 8 depending on the error condition as
defined by the CAN standard. After every successful
reception, the counter is decremented by 1 or reset to 120 if
its value was higher than 128. When the counter value
exceeds 127, the CAN controller enters the error passive
state.
4.2.12.3 CAN_GetLSBTransmitErrorCounter
uint8_t CAN_GetLSBTransmitErrorCounter ( CAN_TypeDef *
CANx)
Returns the LSB of the 9-bit CANx Transmit Error Counter(TEC).
ï‚· CANx : where x can be 1 or 2 to to select the CAN
peripheral.
ï‚· LSB of the 9-bit CAN Transmit Error Counter.