1 Star 0 Fork 5.4K

richard-opensource / docs

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

wifiiot_sdio.h

Overview

Related Modules:

Wifiiot

Description:

Declares the SDIO interface functions.

These functions are used for SDIO initialization and data transmission.

Since:

1.0

Version:

1.0

Summary

Data Structures

Data Structure Name

Description

WifiIotSdioExtendFunc

Provides extended SDIO attributes.

WifiIotSdioAdmatable

Defines attributes of an SDIO ADMA table.

WifiIotSdioIntcallback

SDIO interrupt callback structure.

Macros

Macro Name and Value

Description

WIFI_IOT_SDIO_EXTENDREG_COUNT 64

Indicates the number of extended registers on an SDIO device.

Typedefs

Typedef Name

Description

NotifyHostMessageEvent) (void)

typedef void(*

Indicates the callback invoked upon a message event on the host.

Functions

Function Name

Description

SdioInit (void)

unsigned int

Initializes the SDIO device.

SdioReinit (void)

unsigned int

Reinitializes the SDIO device.

SdioSoftReset (void)

void

Resets the SDIO device.

SdioRegisterCallback (const WifiIotSdioIntcallback *callbackFunc)

unsigned int

Registers an interrupt callback for the SDIO device.

SdioCompleteSend (unsigned char *admaTable, unsigned int admaIndex)

unsigned int

Completes data sending on the SDIO device.

SdioSetPadAdmatab (unsigned int padlen, unsigned char *admatable, unsigned int admaIndex)

unsigned int

Sets the ADMA table that requires data padding.

SdioWriteExtinfo (WifiIotSdioExtendFunc *extFunc)

unsigned int

Sets the extended SDIO attributes.

SdioSendData (unsigned int xferBytes)

void

Starts to send data.

SdioSetAdmatable (unsigned char *admatable, unsigned int admaIndex, const unsigned int *dataAddr, unsigned int dataLen)

unsigned int

Sets an SDIO ADMA.

SdioSchedMsg (void)

unsigned int

Sends a suspended SDIO message.

SdioSendSyncMsg (unsigned int msg)

unsigned int

Adds a message to a message queue and sends the message.

SdioSendMsgAck (unsigned int msg)

unsigned int

Sends a specified message.

SdioProcessMsg (unsigned int sendMsg, unsigned int clearMsg)

unsigned int

Clears a specified suspended message in the message queue, adds a new message to it, and sends the new message.

SdioIsPendingMsg (unsigned int msg)

unsigned int

Checks whether a specified message is suspended.

SdioIsSendingMsg (unsigned int msg)

unsigned int

Checks whether a specified message is being sent.

SdioGetExtendInfo (void)

WifiIotSdioExtendFunc *

Obtains the extended configuration.

SdioRegisterNotifyMessageCallback (NotifyHostMessageEvent msgEventCallback)

void

Registers the callback that will be invoked when the host sends a message or data.

SdioSetPowerdownWhenDeepSleep (unsigned char powerDown)

void

Sets whether the SDIO device is powered off in deep sleep mode.

马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/richard-group-opensource/docs.git
git@gitee.com:richard-group-opensource/docs.git
richard-group-opensource
docs
docs
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891