1.10.3.11 CANx_ErrorGet Function

C

The prototype of CANx_ErrorGet() varies based on device family. Refer to the generated header file for the actual prototype to be used.

CAN_ERROR CANx_ErrorGet(void) // x - Instance of the CAN peripheral

CANFD_ERROR CANx_ErrorGet(void) // x - Instance of the CAN peripheral

Summary

Returns the error during transfer.

Description

This routine returns the error during transfer.

Precondition

CANx_Initialize must have been called for the associated CAN instance.

Parameters

None.

Returns

Error during transfer.

Example

CAN_ERROR error;
error = CAN1_ErrorGet();
CANFD_ERROR error;
error = CAN1_ErrorGet();

Remarks

None.