sdio_if.h

Overview

Related Modules:

SDIO

Description:

Declares the standard SDIO APIs.

Since:

1.0

Summary

Data Structures

Data Structure Name Description
SdioFuncInfo Defines the SDIO capabilities.
SdioCommonInfo Defines SDIO common information.

Typedefs

Typedef Name Description
SdioIrqHandler(void *) typedef void Defines the function type of an SDIO IRQ.

Enumerations

Enumeration Name Description
SdioCommonInfoType { SDIO_FUNC_INFO = 0, SDIO_OTHER_INFO } Enumerates SDIO common information types.

Functions

Function Name Description
SdioOpen (int16_t busNum) struct DevHandle Opens an SDIO controller with a specified bus number.
SdioClose (struct DevHandle handle) void Closes an SDIO controller.
SdioReadBytes (struct DevHandle handle, uint8_t data, uint32_t addr, uint32_t size, uint32_t timeOut) int32_t 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) int32_t 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) int32_t Reads a given length of data from the fixed SDIO address.
SdioWriteBytesToFixedAddr (struct DevHandle handle, uint8_t data, uint32_t addr, uint32_t size, uint32_t timeOut) int32_t Writes a given length of data into the fixed SDIO address.
SdioReadBytesFromFunc0 (struct DevHandle handle, uint8_t data, uint32_t addr, uint32_t size, uint32_t timeOut) int32_t 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) int32_t Writes a given length of data into the address space of SDIO function 0.
SdioSetBlockSize (struct DevHandle handle, uint32_t blockSize) int32_t Sets the block size.
SdioGetCommonInfo (struct DevHandle handle, SdioCommonInfo info, SdioCommonInfoType infoType) int32_t Obtains common information.
SdioSetCommonInfo (struct DevHandle handle, SdioCommonInfo info, SdioCommonInfoType infoType) int32_t Sets common information.
SdioFlushData (struct DevHandle handle) int32_t Flushes data.
SdioClaimHost (struct DevHandle handle) void Claims a host exclusively.
SdioReleaseHost (struct DevHandle handle) void Releases the exclusively claimed host.
SdioEnableFunc (struct DevHandle handle) int32_t Enables the SDIO device so that its register can be accessed.
SdioDisableFunc (struct DevHandle handle) int32_t Disables the SDIO device.
SdioClaimIrq (struct DevHandle handle, SdioIrqHandler irqHandler) int32_t Claims an SDIO IRQ.
SdioReleaseIrq (struct DevHandle *handle) int32_t Releases an SDIO IRQ.