| CMSIS-Driver Peripheral Interface for Middleware and Application Code |

Loading...
Searching...
No Matches
Macros
CAN Status Error Codes
CAN Interface

Status codes of the CAN driver. More...

## Macros
#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.

## Description

Status codes of the CAN driver.

The following callback notification unit events are generated:

## Macro Definition Documentation

## ◆ ARM_CAN_UNIT_STATE_INACTIVE

#define ARM_CAN_UNIT_STATE_INACTIVE (0U)

Unit state: Not active on bus (initialization)

## ◆ ARM_CAN_UNIT_STATE_ACTIVE

#define ARM_CAN_UNIT_STATE_ACTIVE (1U)

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

## ◆ ARM_CAN_UNIT_STATE_PASSIVE

#define ARM_CAN_UNIT_STATE_PASSIVE (2U)

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

## ◆ ARM_CAN_UNIT_STATE_BUS_OFF

#define ARM_CAN_UNIT_STATE_BUS_OFF (3U)

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

## ◆ ARM_CAN_LEC_NO_ERROR

#define ARM_CAN_LEC_NO_ERROR (0U)

Last error code: No error.

## ◆ ARM_CAN_LEC_BIT_ERROR

#define ARM_CAN_LEC_BIT_ERROR (1U)

Last error code: Bit error.

## ◆ ARM_CAN_LEC_STUFF_ERROR

#define ARM_CAN_LEC_STUFF_ERROR (2U)

Last error code: Bit stuffing error.

## ◆ ARM_CAN_LEC_CRC_ERROR

#define ARM_CAN_LEC_CRC_ERROR (3U)

Last error code: CRC error.

## ◆ ARM_CAN_LEC_FORM_ERROR

#define ARM_CAN_LEC_FORM_ERROR (4U)

Last error code: Illegal fixed-form bit.

## ◆ ARM_CAN_LEC_ACK_ERROR

#define ARM_CAN_LEC_ACK_ERROR (5U)

Last error code: Acknowledgment error.