2.61.15 MCANx_ErrorCountGet Function

C

void MCANx_ErrorCountGet(uint8_t *txErrorCount, uint8_t *rxErrorCount) // x - Instance of the MCAN peripheral

Summary

Returns the transmit and receive error count during transfer.

Precondition

MCANx_Initialize must have been called for the associated MCAN instance.

Parameters

ParamDescription
txErrorCountTransmit Error Count to be received
rxErrorCountReceive Error Count to be received

Returns

None.

Example

uint8_t txErrorCount = 0;
uint8_t rxErrorCount = 0;
MCAN0_ErrorCountGet(&txErrorCount, &rxErrorCount);

Remarks

None.