# SDIO ## **Overview** Declares standard APIs of basic secure digital input and output \(SDIO\) capabilities. You can use this module to access the SDIO and enable the driver to operate an SDIO-compliant device. These capabilities include reading and writing data based on SDIO, setting the block size, applying for and releasing interrupts, enabling and disabling devices, and occupying and releasing the bus. **Since:** 1.0 ## **Summary** ## Files
SdioIrqHandler(void *) |
SdioOpen (int16_t busNum) |
struct DevHandle * |
SdioReadBytes (struct DevHandle *handle, uint8_t *data, uint32_t addr, uint32_t size, uint32_t timeOut) |
Incrementally reads a given length of data from the specified SDIO address. |
SdioWriteBytes (struct DevHandle *handle, uint8_t *data, uint32_t addr, uint32_t size, uint32_t timeOut) |
Incrementally writes a given length of data into the specified SDIO address. |
SdioReadBytesFromFixedAddr (struct DevHandle *handle, uint8_t *data, uint32_t addr, uint32_t size, uint32_t timeOut) |
|
SdioWriteBytesToFixedAddr (struct DevHandle *handle, uint8_t *data, uint32_t addr, uint32_t size, uint32_t timeOut) |
|
SdioReadBytesFromFunc0 (struct DevHandle *handle, uint8_t *data, uint32_t addr, uint32_t size, uint32_t timeOut) |
Reads a given length of data from the address space of SDIO function 0. |
SdioWriteBytesToFunc0 (struct DevHandle *handle, uint8_t *data, uint32_t addr, uint32_t size, uint32_t timeOut) |
Writes a given length of data into the address space of SDIO function 0. |
SdioSetBlockSize (struct DevHandle *handle, uint32_t blockSize) |
|
SdioGetCommonInfo (struct DevHandle *handle, SdioCommonInfo *info, SdioCommonInfoType infoType) |
|
SdioSetCommonInfo (struct DevHandle *handle, SdioCommonInfo *info, SdioCommonInfoType infoType) |
|
SdioFlushData (struct DevHandle *handle) |
|
SdioClaimHost (struct DevHandle *handle) |
|
SdioReleaseHost (struct DevHandle *handle) |
|
SdioEnableFunc (struct DevHandle *handle) |
Enables the SDIO device so that its register can be accessed. |
SdioDisableFunc (struct DevHandle *handle) |
|
SdioClaimIrq (struct DevHandle *handle, SdioIrqHandler *irqHandler) |
|
SdioReleaseIrq (struct DevHandle *handle) |
data | Indicates the private data passed to this IRQ (The data is specified when the IRQ is registered). |
SDIO_FUNC_INFO | |
SDIO_OTHER_INFO |
handle | Indicates the pointer to the device handle of the SDIO controller obtained by SdioOpen. |
handle | Indicates the pointer to the device handle of the SDIO controller obtained by SdioOpen. |
irqHandler | Indicates the pointer to the SDIO IRQ function. For details, see SdioIrqHandler. |
handle | Indicates the pointer to the device handle of the SDIO controller. |
handle | Indicates the pointer to the device handle of the SDIO controller obtained by SdioOpen. |
handle | Indicates the pointer to the device handle of the SDIO controller obtained by SdioOpen. |
handle | Indicates the pointer to the device handle of the SDIO controller obtained by SdioOpen. |
handle | Indicates the pointer to the device handle of the SDIO controller obtained by SdioOpen. |
info | Indicates the pointer to the common information to be obtained. For details, see SdioCommonInfo. |
infoType | Indicates the type of the common information to be obtained. For details, see SdioCommonInfoType. |
busNum | Indicates the bus number. |
handle | Indicates the pointer to the device handle of the SDIO controller obtained by SdioOpen. |
data | Indicates the pointer to the data to read. |
addr | Indicates the start address of the data to read. |
size | Indicates the length of the data to read. |
timeOut | Indicates the timeout duration for reading data, in milliseconds. If the value is 0,the default value is used. The default value varies according to the application. Generally, the default value is 1 second. |
handle | Indicates the pointer to the device handle of the SDIO controller obtained by SdioOpen. |
data | Indicates the pointer to the data to read. |
addr | Indicates the fixed address of the data to read. |
size | Indicates the length of the data to read. |
timeOut | Indicates the timeout duration for reading data, in milliseconds. If the value is 0, the default value is used. The default value varies according to the application. Generally, the default value is 1 second. |
handle | Indicates the pointer to the device handle of the SDIO controller obtained by SdioOpen. |
data | Indicates the pointer to the data to read. |
addr | Indicates the start address of the data to read. |
size | Indicates the length of the data to read. |
timeOut | Indicates the timeout duration for reading data, in milliseconds. If the value is 0, the default value is used. The default value varies according to the application. Generally, the default value is 1 second. |
handle | Indicates the pointer to the device handle of the SDIO controller obtained by SdioOpen. |
handle | Indicates the pointer to the device handle of the SDIO controller obtained by SdioOpen. |
handle | Indicates the pointer to the device handle of the SDIO controller obtained by SdioOpen. |
blockSize | Indicates the block size to be set. If the value is 0, the default value is used. The value ranges from 1 to 2048 bytes. |
handle | Indicates the pointer to the device handle of the SDIO controller obtained by SdioOpen. |
info | Indicates the pointer to the common information to be set. For details, see SdioCommonInfo. |
infoType | Indicates the type of the common information to be set. For details, see SdioCommonInfoType. |
handle | Indicates the pointer to the device handle of the SDIO controller obtained by SdioOpen. |
data | Indicates the pointer to the data to write. |
addr | Indicates the start address of the data to write. |
size | Indicates the length of the data to write. |
timeOut | Indicates the timeout duration for writing data, in milliseconds. If the value is 0, the default value is used. The default value varies according to the application. Generally, the default value is 1 second. |
handle | Indicates the pointer to the device handle of the SDIO controller obtained by SdioOpen. |
data | Indicates the pointer to the data to write. |
addr | Indicates the fixed address of the data to write. |
size | Indicates the length of the data to write. |
timeOut | Indicates the timeout duration for writing data, in milliseconds. If the value is 0, the default value is used. The default value varies according to the application. Generally, the default value is 1 second. |
handle | Indicates the pointer to the device handle of the SDIO controller obtained by SdioOpen. |
data | Indicates the pointer to the data to write. |
addr | Indicates the start address of the data to write. |
size | Indicates the length of the data to write. |
timeOut | Indicates the timeout duration for writing data, in milliseconds. If the value is 0, the default value is used. The default value varies according to the application. Generally, the default value is 1 second. |