Chapter 2. API Reference
I2S_NUM_0 = 0
I2S port 0
I2S_NUM_MAX
I2S port max
enum i2s_event_type_t
I2S event queue types.
Values:
I2S_EVENT_DMA_ERROR
I2S_EVENT_TX_DONE
I2S DMA finish sent 1 buffer
I2S_EVENT_RX_DONE
I2S DMA finish received 1 buffer
I2S_EVENT_TX_Q_OVF
I2S DMA sent queue overflow
I2S_EVENT_RX_Q_OVF
I2S DMA receive queue overflow
I2S_EVENT_MAX
I2S event max index
Header File
•
components/hal/include/hal/i2s_types.h
Enumerations
enum i2s_bits_per_sample_t
I2S bit width per sample.
Values:
I2S_BITS_PER_SAMPLE_8BIT = 8
data bit-width: 8
I2S_BITS_PER_SAMPLE_16BIT = 16
data bit-width: 16
I2S_BITS_PER_SAMPLE_24BIT = 24
data bit-width: 24
I2S_BITS_PER_SAMPLE_32BIT = 32
data bit-width: 32
enum i2s_bits_per_chan_t
I2S bit width per chan.
Values:
I2S_BITS_PER_CHAN_DEFAULT = (0)
channel bit-width equals to data bit-width
I2S_BITS_PER_CHAN_8BIT = (8)
channel bit-width: 8
I2S_BITS_PER_CHAN_16BIT = (16)
channel bit-width: 16
I2S_BITS_PER_CHAN_24BIT = (24)
channel bit-width: 24
I2S_BITS_PER_CHAN_32BIT = (32)
channel bit-width: 32
Espressif Systems
304
Submit Document Feedback
Release v4.4
Need help?
Do you have a question about the ESP32-S2 and is the answer not in the manual?