Jump to main content

##

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

Param | Description
--- | ---
txErrorCount | Transmit Error Count to be received
rxErrorCount | Receive Error Count to be received

## Returns

None.

## Example

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

## Remarks

None.