1.22.24.5 1.32.25.5 SDHCx_IsDatLineBusy Function

C

/* x = SDHC instance number (x is applicable only on devices with more than one instances of SDHC) */

bool SDHCx_IsDatLineBusy ( void )

Summary

Returns the status of the data line

Description

The status of the data line must be checked before initiating a data transfer.

Precondition

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

Parameters

None.

Returns

true - If the data line is busy.

false - If the data line is ready.

Example

if (SDHC1_IsDatLineBusy() == false)
{
    // Transmit next data
}

Remarks

This function must be called to check the status of Commands with busy signal (example R1b).