1 Star 0 Fork 4.9K

famoustang / docs

forked from OpenHarmony / docs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
sdio_if-h.md 16.99 KB
一键复制 编辑 原始数据 按行查看 历史
wenjun 提交于 2020-09-08 10:08 . add OpenHarmony 1.0 baseline

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.

1
https://gitee.com/famoustang/docs.git
git@gitee.com:famoustang/docs.git
famoustang
docs
docs
master

搜索帮助