# Wifiiot ## **Overview** Provides dedicated device operation interfaces on the Wi-Fi module, including ADC, AT, flash, GPIO, I2C, I2S, partition, PWM, SDIO, UART, and watchdog. **Since:** 1.0 **Version:** 1.0 ## **Summary** ## Files
Declares the extended flash interface functions for obtaining flash information. |
|
Defines a module-level return value to indicate a successful operation. |
|
WIFI_IOT_FAILURE (-1) |
Defines a module-level return value to indicate an operation failure. |
WIFI_IOT_ERR_UART_INVALID_PARAMETER 0x80001000 |
|
WIFI_IOT_ERR_UART_INVALID_SUSPEND 0x80001001 |
Defines a UART error code to indicate an invalid pause operation. |
WIFI_IOT_ERR_UART_INVALID_PARITY 0x80001002 |
Defines a UART error code to indicate an invalid parity check. |
WIFI_IOT_ERR_UART_INVALID_DATA_BITS 0x80001003 |
|
WIFI_IOT_ERR_UART_INVALID_STOP_BITS 0x80001004 |
|
WIFI_IOT_ERR_UART_INVALID_BAUD 0x80001005 |
|
WIFI_IOT_ERR_UART_INVALID_COM_PORT 0x80001006 |
Defines a UART error code to indicate an invalid port number. |
WIFI_IOT_ERR_UART_NOT_SUPPORT_DMA 0x80001007 |
Defines a UART error code to indicate a non-support for DMA. |
WIFI_IOT_ERR_UART_NOT_BLOCK_MODE 0x80001008 |
|
WIFI_IOT_ERR_GPIO_INVALID_PARAMETER 0x80001040 |
|
WIFI_IOT_ERR_GPIO_REPEAT_INIT 0x80001041 |
Defines a GPIO error code to indicate repeated initialization. |
WIFI_IOT_ERR_GPIO_NOT_INIT 0x80001042 |
|
WIFI_IOT_ERR_GPIO_NOT_SUPPORT 0x80001043 |
|
WIFI_IOT_ERR_FLASH_NOT_INIT 0x800010C0 |
|
WIFI_IOT_ERR_FLASH_INVALID_PARAM 0x800010C1 |
Defines a flash error code to indicate an invalid parameter. |
WIFI_IOT_ERR_FLASH_INVALID_PARAM_BEYOND_ADDR 0x800010C2 |
Defines a flash error code to indicate that the address is out of range. |
WIFI_IOT_ERR_FLASH_INVALID_PARAM_SIZE_ZERO 0x800010C3 |
Defines a flash error code to indicate that the parameter size is 0 |
Defines a flash error code to indicate that the erase size is not aligned. |
|
WIFI_IOT_ERR_FLASH_INVALID_PARAM_IOCTRL_DATA_NULL 0x800010C5 |
Defines a flash error code to indicate that the data of the I/O controller is empty. |
WIFI_IOT_ERR_FLASH_INVALID_PARAM_DATA_NULL 0x800010C6 |
|
WIFI_IOT_ERR_FLASH_INVALID_PARAM_PAD1 0x800010C7 |
Defines a flash error code to indicate that pad1 is incorrect. |
WIFI_IOT_ERR_FLASH_INVALID_PARAM_PAD2 0x800010C8 |
Defines a flash error code to indicate that pad2 is incorrect. |
WIFI_IOT_ERR_FLASH_INVALID_PARAM_PAD3 0x800010C9 |
Defines a flash error code to indicate that pad3 is incorrect. |
WIFI_IOT_ERR_FLASH_INVALID_PARAM_PAD4 0x800010CA |
Defines a flash error code to indicate that pad4 is incorrect. |
WIFI_IOT_ERR_FLASH_TIME_OUT_WAIT_READY 0x800010CB |
Defines a flash error code to indicate a timeout on waiting for ready. |
WIFI_IOT_ERR_FLASH_QUAD_MODE_READ_REG1 0x800010CC |
Defines a flash error code to indicate that an error occurs when reading register 1. |
WIFI_IOT_ERR_FLASH_QUAD_MODE_READ_REG2 0x800010CD |
Defines a flash error code to indicate that an error occurs when reading register 2. |
WIFI_IOT_ERR_FLASH_QUAD_MODE_COMPARE_REG 0x800010CE |
Defines a flash error code to indicate that an error occurs when comparing registers. |
WIFI_IOT_ERR_FLASH_NO_MATCH_FLASH 0x800010CF |
|
WIFI_IOT_ERR_FLASH_WRITE_ENABLE 0x800010D0 |
Defines a flash error code to indicate a failure in enabling write. |
WIFI_IOT_ERR_FLASH_NO_MATCH_ERASE_SIZE 0x800010D1 |
Defines a flash error code to indicate a mismatch in the size of data to erase. |
WIFI_IOT_ERR_FLASH_MAX_SPI_OP 0x800010D2 |
Defines a flash error code to indicate the maximum value of the SPI operation. |
WIFI_IOT_ERR_FLASH_NOT_SUPPORT_IOCTRL_ID 0x800010D3 |
Defines a flash error code to indicate an unsupported IO controller ID.. |
WIFI_IOT_ERR_FLASH_INVALID_CHIP_ID 0x800010D4 |
|
WIFI_IOT_ERR_FLASH_RE_INIT 0x800010D5 |
Defines a flash error code to indicate repeated initialization. |
WIFI_IOT_ERR_FLASH_WRITE_NOT_SUPPORT_ERASE 0x800010D6 |
Defines a flash error code to indicate a non-support for data erasure. |
WIFI_IOT_ERR_FLASH_WRITE_COMPARE_WRONG 0x800010D7 |
Defines a flash error code to indicate that an error occurs when comparing the data written. |
WIFI_IOT_ERR_FLASH_WAIT_CFG_START_TIME_OUT 0x800010D8 |
Defines a flash error code to indicate a timeout on waiting for a configuration to start. |
WIFI_IOT_ERR_FLASH_PATITION_INIT_FAIL 0x800010D9 |
Defines a flash error code to indicate a partition initialization failure. |
WIFI_IOT_ERR_FLASH_INITILIZATION 0x800010DA |
|
WIFI_IOT_ERR_FLASH_ERASE_NOT_4K_ALIGN 0x800010DB |
Defines a flash error code to indicate that the size of data to erase is not a multiple of 4K bytes. |
WIFI_IOT_ERR_FLASH_PROTECT_NOT_SUPPORT 0x800010DC |
|
WIFI_IOT_ERR_FLASH_PROTECT_NOT_INIT 0x800010DD |
|
WIFI_IOT_ERR_FLASH_PROTECT_RE_INIT 0x800010DE |
Defines a flash error code to indicate repeated initialization. |
WIFI_IOT_ERR_FLASH_PROTECT_NOT_FIND_CHIP 0x800010DF |
Defines a flash error code to indicate that no chip is found. |
WIFI_IOT_ERR_FLASH_CRYPTO_INVALID_PARAM 0x800010F0 |
Defines a flash error code to indicate an invalid parameter. |
WIFI_IOT_ERR_FLASH_CRYPTO_BEYOND_ADDR_SIZE 0x800010F1 |
Defines a flash error code to indicate that the address is out of range. |
WIFI_IOT_ERR_FLASH_CRYPTO_MALLOC_FAIL 0x800001F2 |
Defines a flash error code to indicate a failure in applying for memory. |
WIFI_IOT_ERR_FLASH_CRYPTO_DATA_ENCRYPT_ERR 0x800001F3 |
|
WIFI_IOT_ERR_FLASH_CRYPTO_DATA_DECRYPT_ERR 0x800001F4 |
|
WIFI_IOT_ERR_FLASH_CRYPTO_KEY_EMPTY_ERR 0x800001F5 |
|
WIFI_IOT_ERR_FLASH_CRYPTO_MEMCPY_FAIL 0x800001F6 |
|
WIFI_IOT_ERR_FLASH_CRYPTO_NOT_SUPPORT 0x800001F7 |
Defines a flash error code to indicate a non-support for encryption. |
WIFI_IOT_ERR_FLASH_CRYPTO_PREPARE_ERR 0x800001F8 |
Defines a flash error code to indicate an incorrect parameter during encryption. |
WIFI_IOT_ERR_FLASH_CRYPTO_KEY_INVALID_ERR 0x800001F9 |
|
WIFI_IOT_ERR_FLASH_CRYPTO_KEY_SAVE_ERR 0x800001FA |
Defines a flash error code to indicate a failure in saving the key. |
WIFI_IOT_ERR_FLASH_CRYPTO_KERNEL_ADDR_ERR 0x800001FB |
Defines a flash error code to indicate an incorrect kernel address.. |
WIFI_IOT_ERR_I2C_NOT_INIT 0x80001180 |
|
WIFI_IOT_ERR_I2C_INVALID_PARAMETER 0x80001181 |
|
WIFI_IOT_ERR_I2C_TIMEOUT_START 0x80001182 |
|
WIFI_IOT_ERR_I2C_TIMEOUT_WAIT 0x80001183 |
|
WIFI_IOT_ERR_I2C_TIMEOUT_STOP 0x80001184 |
|
WIFI_IOT_ERR_I2C_TIMEOUT_RCV_BYTE 0x80001185 |
|
WIFI_IOT_ERR_I2C_TIMEOUT_RCV_BYTE_PROC 0x80001186 |
|
WIFI_IOT_ERR_I2C_WAIT_SEM_FAIL 0x80001187 |
|
WIFI_IOT_ERR_I2C_START_ACK_ERR 0x80001188 |
|
WIFI_IOT_ERR_I2C_WAIT_ACK_ERR 0x80001189 |
Defines an I2C error code to indicate a failure in waiting for a response. |
WIFI_IOT_ERR_SPI_NOT_INIT 0x800011C0 |
|
WIFI_IOT_ERR_SPI_REINIT 0x800011C1 |
Defines an SPI error code to indicate repeated initialization. |
WIFI_IOT_ERR_SPI_PARAMETER_WRONG 0x800011C2 |
|
WIFI_IOT_ERR_SPI_BUSY 0x800011C3 |
|
WIFI_IOT_ERR_SPI_WRITE_TIMEOUT 0x800011C4 |
|
WIFI_IOT_ERR_SPI_READ_TIMEOUT 0x800011C5 |
|
WIFI_IOT_ERR_SPI_NOT_SUPPORT_DMA 0x800011C6 |
Defines an SPI error code to indicate a non-support for DMA. |
WIFI_IOT_ERR_SDIO_INVALID_PARAMETER 0x80001280 |
Defines an SDIO error code to indicate an invalid parameter. |
WIFI_IOT_ERR_ADC_PARAMETER_WRONG 0x80001300 |
|
WIFI_IOT_ERR_ADC_INVALID_CHANNEL_ID 0x80001301 |
|
WIFI_IOT_ERR_ADC_TIMEOUT 0x80001302 |
|
WIFI_IOT_ERR_ADC_NOT_INIT 0x80001303 |
|
WIFI_IOT_ERR_PWM_NO_INIT 0x80001340 |
|
WIFI_IOT_ERR_PWM_INITILIZATION_ALREADY 0x80001341 |
Defines a PWM error code to indicate an initialization error. |
WIFI_IOT_ERR_PWM_INVALID_PARAMETER 0x80001342 |
|
WIFI_IOT_ERR_DMA_INVALID_PARA 0x80001380 |
|
WIFI_IOT_ERR_DMA_NOT_INIT 0x80001381 |
|
WIFI_IOT_ERR_DMA_BUSY 0x80001382 |
|
WIFI_IOT_ERR_DMA_TRANSFER_FAIL 0x80001383 |
Defines a DMA error code to indicate a transmission failure. |
WIFI_IOT_ERR_DMA_TRANSFER_TIMEOUT 0x80001384 |
Defines a DMA error code to indicate a transmission timeout. |
WIFI_IOT_ERR_DMA_GET_NOTE_FAIL 0x80001385 |
|
WIFI_IOT_ERR_DMA_LLI_NOT_CREATE 0x80001386 |
Defines a DMA error code to indicate that the LLI is not created. |
WIFI_IOT_ERR_DMA_CH_IRQ_ENABLE_FAIL 0x80001387 |
Defines a DMA error code to indicate a failure in enabling channel interrupt. |
WIFI_IOT_ERR_I2S_INVALID_PARAMETER 0x80001400 |
|
WIFI_IOT_ERR_I2S_WRITE_TIMEOUT 0x80001401 |
|
Defines an AT error code to indicate repeated function registration. |
|
WIFI_IOT_ERR_AT_INVALID_PARAMETER 0x80003281 |
|
Indicates the number of extended registers on an SDIO device. |
GpioIsrCallbackFunc) (char *arg) |
|
I2CResetFunc) (void) |
Indicates the callback invoked when a device exception occurs. |
I2cPrepareFunc) (void) |
|
I2cRestoreFunc) (void) |
|
TickIdleKalCallback) (void) |
|
Indicates the callback invoked upon a message event on the host. |
|
Indicates the SPI callback, which is used in SpiRegisterUsrFunc. |
AdcRead (WifiIotAdcChannelIndex channel, unsigned short *data, WifiIotAdcEquModelSel equModel, WifiIotAdcCurBais curBais, unsigned short rstCnt) |
Reads a piece of sampled data from a specified ADC channel based on the input parameters. |
AtRegisterCmd (const AtCmdTbl *cmdTbl, unsigned short cmdNum) |
|
AtSysCmdRegister (void) |
|
AtPrintf (const char *fmt,...) |
|
AtInit (void) |
|
AtCheckUartBusy (unsigned char enable) |
Sets whether to check the UART busy status during low-power voting. |
FlashRead (const unsigned int flashOffset, const unsigned int size, unsigned char *ramData) |
|
FlashWrite (const unsigned int flashOffset, unsigned int size, const unsigned char *ramData, unsigned char doErase) |
|
FlashErase (const unsigned int flashOffset, const unsigned int size) |
|
FlashInit (void) |
|
FlashDeinit (void) |
|
FlashIoctl (unsigned short cmd, char *data) |
|
GpioInit (void) |
|
GpioDeinit (void) |
|
GpioSetDir (WifiIotGpioIdx id, WifiIotGpioDir dir) |
|
GpioGetDir (WifiIotGpioIdx id, WifiIotGpioDir *dir) |
|
GpioSetOutputVal (WifiIotGpioIdx id, WifiIotGpioValue val) |
|
GpioGetOutputVal (WifiIotGpioIdx id, WifiIotGpioValue *val) |
|
GpioGetInputVal (WifiIotGpioIdx id, WifiIotGpioValue *val) |
|
GpioRegisterIsrFunc (WifiIotGpioIdx id, WifiIotGpioIntType intType, WifiIotGpioIntPolarity intPolarity, GpioIsrCallbackFunc func, char *arg) |
|
GpioSetIsrMask (WifiIotGpioIdx id, unsigned char mask) |
|
GpioSetIsrMode (WifiIotGpioIdx id, WifiIotGpioIntType intType, WifiIotGpioIntPolarity intPolarity) |
|
IoSetPull (WifiIotIoName id, WifiIotIoPull val) |
|
IoSetFunc (WifiIotIoName id, unsigned char val) |
|
IoGetPull (WifiIotIoName id, WifiIotIoPull *val) |
|
IoGetFunc (WifiIotIoName id, unsigned char *val) |
|
IOGetDriverStrength (WifiIotIoName id, WifiIotIoDriverStrength *val) |
|
IOSetDriverStrength (WifiIotIoName id, WifiIotIoDriverStrength val) |
|
I2cInit (WifiIotI2cIdx id, unsigned int baudrate) |
|
I2cDeinit (WifiIotI2cIdx id) |
|
I2cWrite (WifiIotI2cIdx id, unsigned short deviceAddr, const WifiIotI2cData *i2cData) |
|
I2cRead (WifiIotI2cIdx id, unsigned short deviceAddr, const WifiIotI2cData *i2cData) |
|
I2cWriteread (WifiIotI2cIdx id, unsigned short deviceAddr, const WifiIotI2cData *i2cData) |
Sends data to and receives data responses from an I2C device. |
I2cRegisterResetBusFunc (WifiIotI2cIdx id, WifiIotI2cFunc pfn) |
|
I2cSetBaudrate (WifiIotI2cIdx id, unsigned int baudrate) |
|
I2sInit (const WifiIotI2sAttribute *i2sAttribute) |
|
I2sDeinit (void) |
|
I2sWrite (unsigned char *wrData, unsigned int wrLen, unsigned int timeOutMs) |
|
I2sRead (unsigned char *rdData, unsigned int rdLen, unsigned int timeOutMs) |
|
FlashPartitionInit (void) |
|
GetPartitionTable (void) |
|
PwmInit (WifiIotPwmPort port) |
|
PwmDeinit (WifiIotPwmPort port) |
|
PwmStart (WifiIotPwmPort port, unsigned short duty, unsigned short freq) |
|
PwmStop (WifiIotPwmPort port) |
|
SdioInit (void) |
|
SdioReinit (void) |
|
SdioSoftReset (void) |
|
SdioRegisterCallback (const WifiIotSdioIntcallback *callbackFunc) |
|
SdioCompleteSend (unsigned char *admaTable, unsigned int admaIndex) |
|
SdioSetPadAdmatab (unsigned int padlen, unsigned char *admatable, unsigned int admaIndex) |
|
SdioWriteExtinfo (WifiIotSdioExtendFunc *extFunc) |
|
SdioSendData (unsigned int xferBytes) |
|
SdioSetAdmatable (unsigned char *admatable, unsigned int admaIndex, const unsigned int *dataAddr, unsigned int dataLen) |
|
SdioSchedMsg (void) |
|
SdioSendSyncMsg (unsigned int msg) |
|
SdioSendMsgAck (unsigned int msg) |
|
SdioProcessMsg (unsigned int sendMsg, unsigned int clearMsg) |
Clears a specified suspended message in the message queue, adds a new message to it, and sends the new message. |
SdioIsPendingMsg (unsigned int msg) |
|
SdioIsSendingMsg (unsigned int msg) |
|
SdioGetExtendInfo (void) |
|
SdioRegisterNotifyMessageCallback (NotifyHostMessageEvent msgEventCallback) |
Registers the callback that will be invoked when the host sends a message or data. |
SdioSetPowerdownWhenDeepSleep (unsigned char powerDown) |
Sets whether the SDIO device is powered off in deep sleep mode. |
SpiSlaveWrite (WifiIotSpiIdx spiId, char *writeData, unsigned int byteLen, unsigned int timeOutMs) |
|
SpiSlaveRead (WifiIotSpiIdx spiId, char *readData, unsigned int byteLen, unsigned int timeOutMs) |
|
SpiHostWrite (WifiIotSpiIdx spiId, char *writeData, unsigned int byteLen) |
|
SpiHostRead (WifiIotSpiIdx spiId, char *readData, unsigned int byteLen) |
|
SpiHostWriteread (WifiIotSpiIdx spiId, char *writeData, char *readData, unsigned int byteLen) |
|
SpiSetBasicInfo (WifiIotSpiIdx spiId, const WifiIotSpiCfgBasicInfo *param) |
|
SpiInit (WifiIotSpiIdx spiId, WifiIotSpiCfgInitParam initParam, const WifiIotSpiCfgBasicInfo *param) |
|
SpiDeinit (WifiIotSpiIdx spiId) |
|
SpiSetIrqMode (WifiIotSpiIdx spiId, unsigned char irqEn) |
Sets whether to enable the interrupt request (IRQ) mode for an SPI device. |
SpiSetDmaMode (WifiIotSpiIdx spiId, unsigned char dmaEn) |
Sets whether to enable DMA to transfer data for an SPI device in slave mode. |
SpiRegisterUsrFunc (WifiIotSpiIdx spiId, SpiIsrFunc prepareF, SpiIsrFunc restoreF) |
|
SpiSetLoopBackMode (WifiIotSpiIdx spiId, unsigned char lbEn) |
|
UartInit (WifiIotUartIdx id, const WifiIotUartAttribute *param, const WifiIotUartExtraAttr *extraAttr) |
|
UartRead (WifiIotUartIdx id, unsigned char *data, unsigned int dataLen) |
|
UartWrite (WifiIotUartIdx id, const unsigned char *data, unsigned int dataLen) |
|
UartDeinit (WifiIotUartIdx id) |
|
UartSetFlowCtrl (WifiIotUartIdx id, WifiIotFlowCtrl flowCtrl) |
|
UartIsBufEmpty (WifiIotUartIdx id, unsigned char *empty) |
|
UartWriteImmediately (WifiIotUartIdx id, const unsigned char *data, unsigned int dataLen) |
|
UartGetAttribute (WifiIotUartIdx id, WifiIotUartAttribute *attr, WifiIotUartExtraAttr *extraAttr) |
|
UartIsBusy (WifiIotUartIdx id, unsigned char *busy) |
|
WatchDogEnable (void) |
|
WatchDogKick (void) |
|
WatchDogDisable (void) |
WIFI_IOT_IO_FUNC_GPIO_1_GPIO |
WIFI_IOT_ADC_CUR_BAIS_DEFAULT | |
WIFI_IOT_ADC_CUR_BAIS_AUTO | |
WIFI_IOT_ADC_CUR_BAIS_1P8V | |
WIFI_IOT_ADC_CUR_BAIS_3P3V | |
WIFI_IOT_ADC_CUR_BAIS_BUTT |
WIFI_IOT_ADC_EQU_MODEL_1 | |
WIFI_IOT_ADC_EQU_MODEL_2 | |
WIFI_IOT_ADC_EQU_MODEL_4 | |
WIFI_IOT_ADC_EQU_MODEL_8 | |
WIFI_IOT_ADC_EQU_MODEL_BUTT |
WIFI_IOT_FLOW_CTRL_NONE | |
WIFI_IOT_FLOW_CTRL_RTS_CTS | |
WIFI_IOT_FLOW_CTRL_RTS_ONLY | |
WIFI_IOT_FLOW_CTRL_CTS_ONLY |
WIFI_IOT_GPIO_DIR_IN | |
WIFI_IOT_GPIO_DIR_OUT |
WIFI_IOT_GPIO_EDGE_FALL_LEVEL_LOW | |
WIFI_IOT_GPIO_EDGE_RISE_LEVEL_HIGH |
WIFI_IOT_INT_TYPE_LEVEL | |
WIFI_IOT_INT_TYPE_EDGE |
WIFI_IOT_GPIO_VALUE0 | |
WIFI_IOT_GPIO_VALUE1 |
WIFI_IOT_I2C_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K_CPOL_1 |
WIFI_IOT_SPI_CFG_ENDIAN_LITTLE | |
WIFI_IOT_SPI_CFG_ENDIAN_BIG |
WIFI_IOT_SPI_CFG_FRAM_MODE_MOTOROLA | |
WIFI_IOT_SPI_CFG_FRAM_MODE_TI | |
WIFI_IOT_SPI_CFG_FRAM_MODE_MICROWIRE |
WIFI_IOT_SPI_ID_0 | |
WIFI_IOT_SPI_ID_1 |
WIFI_IOT_UART_BLOCK_STATE_NONE_BLOCK | |
WIFI_IOT_UART_BLOCK_STATE_BLOCK |
WIFI_IOT_UART_NONE_DMA | |
WIFI_IOT_UART_USE_DMA |
WIFI_IOT_FIFO_LINE_ONE_EIGHT | |
WIFI_IOT_FIFO_LINE_ONE_QUARTER | |
WIFI_IOT_FIFO_LINE_HALF | |
WIFI_IOT_FIFO_LINE_THREE_QUARTERS | |
WIFI_IOT_FIFO_LINE_SEVEN_EIGHTS |
WIFI_IOT_UART_IDX_0 | |
WIFI_IOT_UART_IDX_1 | |
WIFI_IOT_UART_IDX_2 | |
WIFI_IOT_UART_IDX_MAX |
WIFI_IOT_UART_DATA_BIT_5 | |
WIFI_IOT_UART_DATA_BIT_6 | |
WIFI_IOT_UART_DATA_BIT_7 | |
WIFI_IOT_UART_DATA_BIT_8 |
WIFI_IOT_UART_PARITY_NONE | |
WIFI_IOT_UART_PARITY_ODD | |
WIFI_IOT_UART_PARITY_EVEN |
WIFI_IOT_UART_STOP_BIT_1 | |
WIFI_IOT_UART_STOP_BIT_2 |
channel | Indicates the ADC channel index. |
data | Indicates the pointer to the address for storing the read data. |
equModel | Indicates the equation model. |
curBais | Indicates the analog power control mode. |
rstCnt | Indicates the count of the time from reset to conversion start. One count is equal to 334 ns. The value must range from 0 to 0xFF0. |
enable | Specifies whether to check the UART busy status. The value 1 means to check the UART busy status, and 0 means not to check the busy status. |
fmt | Indicates the pointer to the control character string to format. |
... | Represents a variable parameter list in the character string format. |
cmdTbl | Indicates the command table. |
cmdNum | Indicates the number of AT commands in the command table. |
flashOffset | Indicates the address of the flash memory data to erase. |
size | Indicates the length of the data to erase, in bytes. The value must be a multiple of 4000 bytes. |
flashOffset | Indicates the address of the flash memory from which data is to read. |
size | Indicates the length of the data to read. |
ramData | Indicates the pointer to the RAM for storing the read data. |
flashOffset | Indicates the address of the flash memory to which data is to write. |
size | Indicates the length of the data to write. |
ramData | Indicates the pointer to the RAM for storing the data to write. |
doErase | Indicates whether to automatically erase and overwrite the data. |
id | Indicates the GPIO pin ID. |
dir | Indicates the pointer to the GPIO input/output direction. |
id | Indicates the GPIO pin ID. |
val | Indicates the pointer to the input level value. |
id | Indicates the GPIO pin ID. |
val | Indicates the pointer to the output level value. |
id | Indicates the GPIO pin ID. |
intType | Indicates the interrupt type. |
intPolarity | Indicates the interrupt polarity. |
func | Indicates the interrupt callback function. |
arg | Indicates the pointer to the argument used in the interrupt callback function. |
id | Indicates the GPIO pin ID. |
dir | Indicates the GPIO input/output direction. |
id | Indicates the GPIO pin ID. |
mask | Indicates whether the interrupt function is masked. The value 1 means to mask the interrupt function, and 0 means not to mask the interrupt function. |
id | Indicates the GPIO pin ID. |
intType | Indicates the interrupt type. |
intPolarity | Indicates the interrupt polarity. |
id | Indicates the GPIO pin ID. |
val | Indicates the output level value. |
id | Indicates the GPIO pin ID. |
id | Indicates the I2C device ID. |
id | Indicates the I2C device ID. |
baudrate | Indicates the I2C baud rate. |
id | Indicates the I2C device ID. |
deviceAddr | Indicates the I2C device address. |
i2cData | Indicates the pointer to the data descriptor to read. |
id | Indicates the I2C device ID. |
pfn | Indicates the type of the callback to register. |
id | Indicates the I2C device ID. |
baudrate | Indicates the I2C baud rate to set. |
id | Indicates the I2C device ID. |
deviceAddr | Indicates the I2C device address. |
i2cData | Indicates the pointer to the data descriptor to write. |
id | Indicates the I2C device ID. |
deviceAddr | Indicates the I2C device address. |
i2cData | Indicates the pointer to the device descriptor of the data to receive. |
i2sAttribute | Indicates the pointer to the I2S configuration parameter. |
rdData | Indicates the pointer to the data to read. |
rdLen | Indicates the length of the data to read. |
timeOutMs | Indicates the timeout interval. |
wrData | Indicates the pointer to the data to write. |
wrLen | Indicates the length of the data to write. |
timeOutMs | Indicates the timeout interval. |
id | Indicates the GPIO pin. |
val | Indicates the pointer to the address where the I/O driver strength level is to be stored. |
id | Indicates the GPIO pin. |
val | Indicates the pointer to the address whether I/O multiplexing function is to be stored. For example, if the value of id is WIFI_IOT_IO_NAME_GPIO_0, the value type of val is WifiIotIoFuncGpio0. If the value of id is WIFI_IOT_IO_NAME_GPIO_1, the value type of val is WifiIotIoFuncGpio1. The same rule applies to other values. |
id | Indicates the GPIO pin. |
val | Indicates the pointer to the address where the pull type is to be stored. |
id | Indicates the GPIO pin. |
val | Indicates the I/O driver strength level obtained. |
id | Indicates the GPIO pin. |
val | Indicates the I/O multiplexing function. For example, if the value of id is WIFI_IOT_IO_NAME_GPIO_0, the value type of val is WifiIotIoFuncGpio0. If the value of id is WIFI_IOT_IO_NAME_GPIO_1, the value type of val is WifiIotIoFuncGpio1. The same rule applies to other values. |
id | Indicates the GPIO pin. |
val | Indicates the pull-up or pull-down to set. |
cb | Indicates the idle task callback to register. |
cb | Indicates the CPU tick callback to register. |
port | Indicates the PWM port number. |
port | Indicates the PWM port number. |
port | Indicates the PWM port number. |
duty | Indicates the PWM duty cycle. |
freq | Indicates the frequency-division multiple. |
port | Indicates the PWM port number. |
admaTable | Indicates the pointer to the start address of the ADMA table. Each ADMA table occupies 8 bytes. |
admaIndex | Indicates the ADMA ID, ranging from 0 to 130. |
msg | Indicates the ID of the message to check, ranging from 0 to 31. |
msg | Indicates the ID of the message to check, ranging from 0 to 31. |
sendMsg | Indicates the ID of the message to send, ranging from 0 to 31. |
clearMsg | Indicates the ID of the message to clear, ranging from 0 to 31. |
callbackFunc | Indicates the pointer to the interrupt callback to register. |
msgEventCallback | Indicates the callback to be invoked when a message or data is sent. |
xferBytes | Indicates the length of the data to send. |
msg | Indicates the ID of the message to send, ranging from 0 to 31. |
msg | Indicates the ID of the message to add to the message queue and send, ranging from 0 to 31. |
admatable | Indicates the pointer to the start address of the ADMA table. Each ADMA table occupies 8 bytes. |
admaIndex | Indicates the ADMA ID, ranging from 0 to 130. |
dataAddr | Indicates the pointer to the address where data is to send. |
dataLen | Indicates the length of the data to send. |
padlen | Indicates the length of the data to pad. |
admatable | Indicates the pointer to the start address of the ADMA table. Each ADMA table occupies 8 bytes. |
admaIndex | Indicates the ADMA ID, ranging from 0 to 130. |
powerDown | Specifies whether to power off the SDIO device. The value 1 means to power it off, and 0 means not to power it off. |
extFunc | Indicates the pointer to the extended attributes. |
spiId | Indicates the SPI channel ID. |
spiId | Indicates the SPI channel ID. |
readData | Indicates the pointer to the data to read. |
byteLen | Indicates the length of the data to read. |
spiId | Indicates the SPI channel ID. |
writeData | Indicates the pointer to the data to send. |
byteLen | Indicates the length of the data to send. |
spiId | Indicates the SPI channel ID. |
writeData | Indicates the pointer to the data to send. |
readData | Indicates the pointer to the data to read. |
byteLen | Indicates the length of the data to read. |
spiId | Indicates the SPI channel ID. |
initParam | Specifies whether the device is a slave one. |
param | Indicates the pointer to the SPI device parameter. |
spiId | Indicates the SPI channel ID. |
prepareF | Indicates the function used for data preparation. |
restoreF | Indicates the function used for data recovery. |
spiId | Indicates the SPI channel ID. |
param | Indicates the pointer to the SPI parameter to set. |
spiId | Indicates the SPI channel ID. |
dmaEn | Specifies whether to enable DMA. The value 1 means to enable DMA, and 0 means to disable DMA. |
spiId | Indicates the SPI channel ID. |
irqEn | Specifies whether to enable IRQ. The value 1 means to enable IRQ, and 0 means to disable IRQ. |
spiId | Indicates the SPI channel ID. |
lbEn | Specifies whether to enable loopback test. The value 1 means to enable loopback test, and 0 means to disable loopback test. |
spiId | Indicates the SPI channel ID. |
readData | Indicates the pointer to the data to read. |
byteLen | Indicates the length of the data to read. |
timeOutMs | Indicates the timeout interval. |
spiId | Indicates the SPI channel ID. |
writeData | Indicates the pointer to the data to send. |
byteLen | Indicates the length of the data to send. |
timeOutMs | Indicates the timeout interval. |
id | Indicates the UART port number. |
id | Indicates the UART port number. |
attr | Indicates the pointer to the basic UART attributes. |
extraAttr | Indicates the pointer to the extended UART attributes. |
id | Indicates the UART port number. |
param | Indicates the pointer to the basic UART attributes. |
extraAttr | Indicates the pointer to the extended UART attributes. |
id | Indicates the UART port number. |
data | Indicates the pointer to the start address of the data to read. |
dataLen | Indicates the number of bytes to read. |
id | Indicates the UART port number. |
flowCtrl | Indicates the parameter used for hardware flow control. |
id | Indicates the UART port number. |
data | Indicates the pointer to the start address of the data to write. |
dataLen | Indicates the number of bytes to write. |
id | Indicates the UART port number. |
data | Indicates the pointer to the start address of the data to write. |
dataLen | Indicates the number of bytes to write. |