wifiiot_i2s.h

Overview

Related Modules:

Wifiiot

Description:

Declares the I2S interface functions.

These functions are used for I2S initialization and data transmission.

Since:

1.0

Version:

1.0

Summary

Data Structures

Data Structure Name

Description

WifiIotI2sAttribute

Defines I2S attributes.

Enumerations

Enumeration Name

Description

WifiIotI2sSampleRate { WIFI_IOT_I2S_SAMPLE_RATE_8K = 8, WIFI_IOT_I2S_SAMPLE_RATE_16K = 16, WIFI_IOT_I2S_SAMPLE_RATE_32K = 32, WIFI_IOT_I2S_SAMPLE_RATE_48K = 48 }

Enumerates I2S sampling rates.

WifiIotI2sResolution { WIFI_IOT_I2S_RESOLUTION_16BIT = 16, WIFI_IOT_I2S_RESOLUTION_24BIT = 24 }

Enumerates I2S resolution.

Functions

Function Name

Description

I2sInit (const WifiIotI2sAttribute i2sAttribute)

unsigned int 

Initializes the I2S device.

I2sDeinit (void)

unsigned int 

Deinitializes the I2S device.

I2sWrite (unsigned char wrData, unsigned int wrLen, unsigned int timeOutMs)

unsigned int 

Writes data to the I2S device.

I2sRead (unsigned char *rdData, unsigned int rdLen, unsigned int timeOutMs)

unsigned int 

Reads data from the I2S device.