1.22.24.7 SDHCx_IsCardAttached Function

C

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

bool SDHCx_IsCardAttached ( void )

Summary

Indicates if the card is attached or detached

Description

Indicates if the card is attached or detached

Precondition

SDHCx_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 (SDHC1_IsCardAttached() == true)
{
    // Card is attached
}

Remarks

None.