1.1.6.4 Library Interface

SDMMC driver library provides the following interfaces:

Functions

NameDescription
DRV_SDMMC_InitializeInitializes the SD Card driver
DRV_SDMMC_StatusProvides the current status of the SD Card driver module
DRV_SDMMC_TasksMaintains the driver's state machine
DRV_SDMMC_OpenOpens the specified SD Card driver instance and returns a handle to it
DRV_SDMMC_CloseCloses an opened-instance of the SD Card driver
DRV_SDMMC_AsyncReadReads blocks of data from the specified block address of the SD Card
DRV_SDMMC_AsyncWriteWrites blocks of data starting at the specified address of the SD Card
DRV_SDMMC_CommandStatusGets the current status of the command
DRV_SDMMC_GeometryGetReturns the geometry of the device
DRV_SDMMC_EventHandlerSetAllows a client to identify an event handling function for the driver to call back when queued operation has completed
DRV_SDMMC_IsAttachedReturns the physical attach status of the SD Card
DRV_SDMMC_IsWriteProtectedReturns the write protect status of the SDMMC

Data types and constants

NameTypeDescription
DRV_SDMMC_COMMAND_HANDLETypedefHandle identifying commands queued in the driver
DRV_SDMMC_COMMAND_HANDLE_INVALIDMacroSDMMC Driver's Invalid Command Handle
DRV_SDMMC_COMMAND_STATUSEnumIdentifies the possible events that can result from a request
DRV_SDMMC_EVENTEnumIdentifies the possible events that can result from a request
DRV_SDMMC_EVENT_HANDLERTypedefPointer to a SDMMCDriver Event handler function