EasyManua.ls Logo

ST STM32F31xx

ST STM32F31xx
584 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Controller area network (bxCAN)
UM1581
122/584
DocID023800 Rev 1
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
Notes
None.
4.2.12.2 CAN_GetReceiveErrorCounter
Function Name
uint8_t CAN_GetReceiveErrorCounter ( CAN_TypeDef *
CANx)
Function Description
Returns the CANx Receive Error Counter (REC).
Parameters
CANx : where x can be 1 or 2 to to select the CAN
peripheral.
Return values
CAN Receive Error Counter.
Notes
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
Function Name
uint8_t CAN_GetLSBTransmitErrorCounter ( CAN_TypeDef *
CANx)
Function Description
Returns the LSB of the 9-bit CANx Transmit Error Counter(TEC).
Parameters
CANx : where x can be 1 or 2 to to select the CAN
peripheral.
Return values
LSB of the 9-bit CAN Transmit Error Counter.
Notes
None.

Table of Contents

Related product manuals