1.27.14.11 QSPIx_IsBusy Function

C

// x - Instance of the QSPI peripheral

bool QSPIx_IsBusy (void):

Summary

Returns transfer status of QSPI peripheral. This is used in SPI mode only.

Description

This function returns transfer status of last successful Write, Read or WriteRead request on QSPI module in interrupt mode.

Precondition

None.

Parameters

None.

Returns

Returns the current status of transfer happening on QSPI

  • true: Transfer is still in progress

  • false: Transfer is completed

Example

if (QSPI0_IsBusy() == false)
{
    //Data Transfer is complete, do something else.
}

Remarks

This API is available only for interrupt mode as blocking mode transfer APIs will always return only after completing the transfer.