1.3.3.12 1.9.3.12 1.10.3.11 1.11.3.12 1.12.3.12 1.18.2.11 1.21.2.11 1.22.3.11 1.23.3.11 1.24.3.11 1.24.4.12 1.25.3.12 1.29.3.12 1.32.3.12 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.