1.34.7.7 MCANx_TxBufferIsBusy Function

C

bool MCANx_TxBufferIsBusy(uint8_t bufferNumber) // x - Instance of the MCAN peripheral

Summary

Check if Transmission request is pending for the specific Tx buffer.

Description

Check if Transmission request is pending for the specific Tx buffer.

Precondition

MCANx_Initialize has been called.

Parameters

Param Description
bufferNumber Tx buffer number

Returns

true - Transmission request is pending.

false - Transmission request is not pending.

Example

// Check if Transmission request is pending for the Tx buffer 0
if (MCAN0_TxBufferIsBusy(0) == false)
{
    //Transmission request is not pending
}

Remarks

None.