CMSIS-Driver  Version 2.7.1
Peripheral Interface for Middleware and Application Code
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Status Error Codes

Status codes of the CAN driver. More...

Macros

#define ARM_CAN_UNIT_STATE_INACTIVE   (0U)
 Unit state: Not active on bus (initialization) More...
 
#define ARM_CAN_UNIT_STATE_ACTIVE   (1U)
 Unit state: Active on bus (can generate active error frame) More...
 
#define ARM_CAN_UNIT_STATE_PASSIVE   (2U)
 Unit state: Error passive (can not generate active error frame) More...
 
#define ARM_CAN_UNIT_STATE_BUS_OFF   (3U)
 Unit state: Bus-off (can recover to active state) More...
 
#define ARM_CAN_LEC_NO_ERROR   (0U)
 Last error code: No error. More...
 
#define ARM_CAN_LEC_BIT_ERROR   (1U)
 Last error code: Bit error. More...
 
#define ARM_CAN_LEC_STUFF_ERROR   (2U)
 Last error code: Bit stuffing error. More...
 
#define ARM_CAN_LEC_CRC_ERROR   (3U)
 Last error code: CRC error. More...
 
#define ARM_CAN_LEC_FORM_ERROR   (4U)
 Last error code: Illegal fixed-form bit. More...
 
#define ARM_CAN_LEC_ACK_ERROR   (5U)
 Last error code: Acknowledgment error. More...
 

Description

Status codes of the CAN driver.

The following callback notification unit events are generated:

Macro Definition Documentation

#define ARM_CAN_UNIT_STATE_INACTIVE   (0U)

Unit state: Not active on bus (initialization)

#define ARM_CAN_UNIT_STATE_ACTIVE   (1U)

Unit state: Active on bus (can generate active error frame)

#define ARM_CAN_UNIT_STATE_PASSIVE   (2U)

Unit state: Error passive (can not generate active error frame)

#define ARM_CAN_UNIT_STATE_BUS_OFF   (3U)

Unit state: Bus-off (can recover to active state)

#define ARM_CAN_LEC_NO_ERROR   (0U)

Last error code: No error.

#define ARM_CAN_LEC_BIT_ERROR   (1U)

Last error code: Bit error.

#define ARM_CAN_LEC_STUFF_ERROR   (2U)

Last error code: Bit stuffing error.

#define ARM_CAN_LEC_CRC_ERROR   (3U)

Last error code: CRC error.

#define ARM_CAN_LEC_FORM_ERROR   (4U)

Last error code: Illegal fixed-form bit.

#define ARM_CAN_LEC_ACK_ERROR   (5U)

Last error code: Acknowledgment error.