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_Async_SDIO_ReadReads single or multiple bytes of data starting from the specified regAddr of the SDIO card
DRV_SDMMC_Async_SDIO_WriteWrites single or multiple bytes of data starting at the specified regAddr of the SDIO card
DRV_SDMMC_Async_SDIO_DirByteReadReads one byte of data starting at the specified regAddr of the SDIO card
DRV_SDMMC_Async_SDIO_DirByteWriteWrites one byte of data starting at the specified regAddr of the SDIO card
DRV_SDMMC_Async_SDIO_ExtBlockReadReads blocks of data starting at the specified regAddr of the SDIO card
DRV_SDMMC_Async_SDIO_ExtBlockWriteWrites blocks of data starting at the specified regAddr of the SDIO card
DRV_SDMMC_Async_SDIO_ExtBytesReadReads multiple bytes of data starting at the specified regAddr of the SDIO card
DRV_SDMMC_Async_SDIO_ExtBytesWriteWrites multiple bytes of data starting at the specified regAddr of the SDIO 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