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_Async_SDIO_Read | Reads single or multiple bytes of data starting from the specified regAddr of the SDIO card |
| DRV_SDMMC_Async_SDIO_Write | Writes single or multiple bytes of data starting at the specified regAddr of the SDIO card |
| DRV_SDMMC_Async_SDIO_DirByteRead | Reads one byte of data starting at the specified regAddr of the SDIO card |
| DRV_SDMMC_Async_SDIO_DirByteWrite | Writes one byte of data starting at the specified regAddr of the SDIO card |
| DRV_SDMMC_Async_SDIO_ExtBlockRead | Reads blocks of data starting at the specified regAddr of the SDIO card |
| DRV_SDMMC_Async_SDIO_ExtBlockWrite | Writes blocks of data starting at the specified regAddr of the SDIO card |
| DRV_SDMMC_Async_SDIO_ExtBytesRead | Reads multiple bytes of data starting at the specified regAddr of the SDIO card |
| DRV_SDMMC_Async_SDIO_ExtBytesWrite | Writes multiple bytes of data starting at the specified regAddr of the SDIO 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 |
