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 WifiIotSdioIntcallbackcallbackFunc)

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.