1.1.6.4.2 DRV_SDMMC_Status Function

C

SYS_STATUS DRV_SDMMC_Status ( SYS_MODULE_OBJ object );

Summary

Provides the current status of the SD Card driver module.

Description

This routine provides the current status of the SD Card driver module.

Precondition

Function DRV_SDMMC_Initialize must have been called before calling this function

Parameters

ParamDescription
objectDriver object handle, returned from the DRV_SDMMC_Initialize routine

Returns

SYS_STATUS_READY - Indicates that the driver is busy with a previous system level operation and cannot start another Note Any value greater than SYS_STATUS_READY is also a normal running state in which the driver is ready to accept new operations.

SYS_STATUS_UNINITIALIZED - Driver is not initialized.

Example

SYS_MODULE_OBJ object; // Returned from DRV_SDMMC_Initialize
SYS_STATUS status;

status = DRV_SDMMC_Status(object);

if (status == SYS_STATUS_READY)
{
    // Driver is initialized and ready to accept requests
}

Remarks

None.