1.2.20.6 1.9.18.6 1.25.19.6 1.26.17.6 1.27.19.6 1.28.22.6 SDMMCx_IsCmdLineBusy Function

C

/* x = SDMMC instance number */

bool SDMMCx_IsCmdLineBusy ( void )

Summary

Returns the status of the command line.

Description

This function returns the state of the command line. If the command line is busy, the function returns true; false otherwise. The status of the command line must be checked before issuing a new command.

Precondition

SDMMCx_Initialize() must have been called first for the associated instance.

Parameters

None.

Returns

true - If the command line is busy.

false - If the command line is ready.

Example

if (SDMMC1_IsCmdLineBusy() == false)
{
    // Command line is free. Transmit a new command.
}

Remarks

None.