i2s_channel_read() function
I2S read data
Arguments
handle
I2S channel handler
dest
The pointer of receiving data buffer
size
Max data buffer length
bytes_read
Byte number that actually be read, can be NULL if not needed
Return value
- ESP_OK Read successfully - ESP_ERR_INVALID_ARG NULL pointer or this handle is not RX handle - ESP_ERR_TIMEOUT Reading timeout, no reading event received from ISR within ticks_to_wait - ESP_ERR_INVALID_STATE I2S is not ready to read
Notes
Only allowed to be called when the channel state is RUNNING but the RUNNING only stands for the software state, it doesn't mean there is no the signal transporting on line.
i2s_channel_read() calls 5 functions:
![]()
i2s_channel_read()
i2s_channel_read() reads 16 variables and writes 1 variable:
![]()
i2s_channel_read()