CMSIS-Driver
Version 2.04
Peripheral Interface for Middleware and Application Code
|
Status codes of the CAN driver. More...
Macros | |
#define | ARM_CAN_UNIT_STATE_INACTIVE (0U) |
Unit state: Not active on bus (initialize or error bus off) | |
#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_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: Acknowledgement error. | |
Status codes of the CAN driver.
The following callback notification unit events are generated:
#define ARM_CAN_UNIT_STATE_INACTIVE (0U) |
Unit state: Not active on bus (initialize or error bus off)
#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_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: Acknowledgement error.