ESP-IDF + 0/3 examples
SourceVu will show references to i2s_channel_preload_data() from the following samples and libraries:
 
Symbols
loading...
Files
loading...
SummarySyntaxArgumentsRelatedExamplesReferencesCall TreeData Use

Return value

- ESP_OK Load data successful - ESP_ERR_INVALID_ARG NULL pointer or not TX direction - ESP_ERR_INVALID_STATE This channel has not stated

Notes

Only allowed to be called when the channel state is READY, (i.e., channel has been initialized, but not started) As the initial DMA buffer has no data inside, it will transmit the empty buffer after enabled the channel, this function is used to preload the data into the DMA buffer, so that the valid data can be transmitted immediately after the channel is enabled. This function can be called multiple times before enabling the channel, the buffer that loaded later will be concatenated behind the former loaded buffer. But when all the DMA buffers have been loaded, no more data can be preload then, please check the `bytes_loaded` parameter to see how many bytes are loaded successfully, when the `bytes_loaded` is smaller than the `size`, it means the DMA buffers are full.

References

from 0/3 examples