Jump to main content

##

# 1.1.6.4 Library Interface

SDMMC driver library provides the following interfaces:

Functions

Name | Description
--- | ---
DRV_SDMMC_Initialize | Initializes the SD Card driver
DRV_SDMMC_Status | Provides the current status of the SD Card driver module
DRV_SDMMC_Tasks | Maintains the driver's state machine
DRV_SDMMC_Open | Opens the specified SD Card driver instance and returns a handle to it
DRV_SDMMC_Close | Closes an opened-instance of the SD Card driver
DRV_SDMMC_AsyncRead | Reads blocks of data from the specified block address of the SD Card
DRV_SDMMC_AsyncWrite | Writes blocks of data starting at the specified address of the SD Card
DRV_SDMMC_CommandStatus | Gets the current status of the command
DRV_SDMMC_GeometryGet | Returns the geometry of the device
DRV_SDMMC_EventHandlerSet | Allows a client to identify an event handling function for the driver to call back when queued operation has completed
DRV_SDMMC_IsAttached | Returns the physical attach status of the SD Card
DRV_SDMMC_IsWriteProtected | Returns the write protect status of the SDMMC

Data types and constants

Name | Type | Description
--- | --- | ---
DRV_SDMMC_COMMAND_HANDLE | Typedef | Handle identifying commands queued in the driver
DRV_SDMMC_COMMAND_HANDLE_INVALID | Macro | SDMMC Driver's Invalid Command Handle
DRV_SDMMC_COMMAND_STATUS | Enum | Identifies the possible events that can result from a request
DRV_SDMMC_EVENT | Enum | Identifies the possible events that can result from a request
DRV_SDMMC_EVENT_HANDLER | Typedef | Pointer to a SDMMCDriver Event handler function