I2S play audio
Article Directory
1. Introduction to I2S
There are 3 built-in audio buses in K210 (I²S0, I²S1, I²S2), all of which are in MASTER mode. Among them, I²S0 supports configurable connection to the voice processing module to realize the functions of voice enhancement and sound source orientation. Here are some common features:
- Bus width configurable to 8, 16, and 32 bits
- Each interface supports up to 4 stereo channels
- Full-duplex communication is supported due to the independence of the transmitter and receiver
- Asynchronous clock for APB bus and I²S SCLK
- Audio data resolutions of 12, 16, 20, 24 and 32 bits
- I²S0 transmit FIFO depth is 64 bytes, receive is 8 bytes, I²S1 and I²S2 send and receive FIFO depth is 8 bytes
- Support DMA transfer
- Programmable FIFO Threshold
2. I2S driver API introduction
The WDT driver of K210 i2s.h
is defined in , commonly used to provide the following interfaces for users:
- <