# sdio\_if.h - [Overview](#section1871988065165628) - [Summary](#section1692669337165628) - [Data Structures](#nested-classes) - [Typedefs](#typedef-members) - [Enumerations](#enum-members) - [Functions](#func-members) ## **Overview** **Related Modules:** [SDIO](SDIO.md) **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

Description

SdioOpen (int16_t busNum)

DevHandle

Opens an SDIO controller with a specified bus number.

SdioClose (DevHandle handle)

void

Closes an SDIO controller.

SdioReadBytes (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 (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 (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 (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 (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 (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 (DevHandle handle, uint32_t blockSize)

int32_t

Sets the block size.

SdioGetCommonInfo (DevHandle handle, SdioCommonInfo *info, SdioCommonInfoType infoType)

int32_t

Obtains common information.

SdioSetCommonInfo (DevHandle handle, SdioCommonInfo *info, SdioCommonInfoType infoType)

int32_t

Sets common information.

SdioFlushData (DevHandle handle)

int32_t

Flushes data.

SdioClaimHost (DevHandle handle)

void

Claims a host exclusively.

SdioReleaseHost (DevHandle handle)

void

Releases the exclusively claimed host.

SdioEnableFunc (DevHandle handle)

int32_t

Enables the SDIO device so that its register can be accessed.

SdioDisableFunc (DevHandle handle)

int32_t

Disables the SDIO device.

SdioClaimIrq (DevHandle handle, SdioIrqHandler *irqHandler)

int32_t

Claims an SDIO IRQ.

SdioReleaseIrq (DevHandle handle)

int32_t

Releases an SDIO IRQ.