1.3.3.5 CANx_TxBufferIsBusy Function

C

bool CANx_TxBufferIsBusy(uint8_t bufferNumber) // x - Instance of the CAN 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

CANx_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 (CAN0_TxBufferIsBusy(0) == false)
{
    //Transmission request is not pending
}

Remarks

None.