EasyManuals Logo

Espressif ESP32-S2 User Manual

Espressif ESP32-S2
1695 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #316 background imageLoading...
Page #316 background image
Chapter 2. API Reference
enum i2s_channel_t
I2S channel.
Values:
I2S_CHANNEL_MONO = (0x01 << 31) | 0x03
I2S channel (mono), two channel enabled. In this mode, you only need to send one channel data but the
fifo will copy same data for another channel automatically, then both channels will transmit same data.
The highest bit is for differentiating I2S_CHANNEL_STEREO since they both use two channels
I2S_CHANNEL_STEREO = 0x03
I2S channel (stereo), two channel enabled. In this mode, two channels will transmit different data.
enum i2s_comm_format_t
I2S communication standard format.
Values:
I2S_COMM_FORMAT_STAND_I2S = 0X01
I2S communication I2S Philips standard, data launch at second BCK
I2S_COMM_FORMAT_STAND_MSB = 0X02
I2S communication MSB alignment standard, data launch at first BCK
I2S_COMM_FORMAT_STAND_PCM_SHORT = 0x04
PCM Short standard, also known as DSP mode. The period of synchronization signal (WS) is 1 bck
cycle.
I2S_COMM_FORMAT_STAND_PCM_LONG = 0x0C
PCM Long standard. The period of synchronization signal (WS) is channel_bit*bck cycles.
I2S_COMM_FORMAT_STAND_MAX
standard max
I2S_COMM_FORMAT_I2S = 0x01
I2S communication format I2S, correspond to I2S_COMM_FORMAT_STAND_I2S
I2S_COMM_FORMAT_I2S_MSB = 0x01
I2S format MSB, (I2S_COMM_FORMAT_I2S |I2S_COMM_FORMAT_I2S_MSB) correspond to
I2S_COMM_FORMAT_STAND_I2S
I2S_COMM_FORMAT_I2S_LSB = 0x02
I2S format LSB, (I2S_COMM_FORMAT_I2S |I2S_COMM_FORMAT_I2S_LSB) correspond to
I2S_COMM_FORMAT_STAND_MSB
I2S_COMM_FORMAT_PCM = 0x04
I2S communication format PCM, correspond to I2S_COMM_FORMAT_STAND_PCM_SHORT
I2S_COMM_FORMAT_PCM_SHORT = 0x04
PCM Short, (I2S_COMM_FORMAT_PCM | I2S_COMM_FORMAT_PCM_SHORT) correspond to
I2S_COMM_FORMAT_STAND_PCM_SHORT
I2S_COMM_FORMAT_PCM_LONG = 0x08
PCM Long, (I2S_COMM_FORMAT_PCM | I2S_COMM_FORMAT_PCM_LONG) correspond to
I2S_COMM_FORMAT_STAND_PCM_LONG
enum i2s_channel_fmt_t
I2S channel format type.
Values:
I2S_CHANNEL_FMT_RIGHT_LEFT
Separated left and right channel
I2S_CHANNEL_FMT_ALL_RIGHT
Load right channel data in both two channels
I2S_CHANNEL_FMT_ALL_LEFT
Load left channel data in both two channels
Espressif Systems 305
Submit Document Feedback
Release v4.4

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Espressif ESP32-S2 and is the answer not in the manual?

Espressif ESP32-S2 Specifications

General IconGeneral
BrandEspressif
ModelESP32-S2
CategorySingle board computers
LanguageEnglish