1.27.19.7 SDMMCx_IsCardAttached Function

C

/* x = SDMMC instance number */

bool SDMMCx_IsCardAttached ( void )

Summary

Indicates if the card is attached or detached.

Description

Indicates if the card is attached or detached.

Precondition

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

Parameters

None.

Returns

true - If the card is inserted.

false - If the card is removed.

Example

if (SDMMC1_IsCardAttached() == true)
{
    // Card is attached
}

Remarks

None.