You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @brief Write a single sample to the I2S DMA TX buffer.
377
-
*
378
-
* Size of the sample is determined by the channel_format (mono or stereo)) & bits_per_sample configuration (see i2s_config_t).
379
-
*
380
-
* @param i2s_num I2S_NUM_0, I2S_NUM_1
381
-
*
382
-
* @param sample Pointer to buffer containing sample to write. Size of buffer (in bytes) = (number of channels) * bits_per_sample / 8.
369
+
* @param i2s_num I2S_NUM_0, I2S_NUM_1
383
370
*
384
-
* @param[out] sample_write Number of bytes successfully pushed to DMA buffer, will be either zero or the size of configured sample buffer.
371
+
* @param sample Buffer to read data. Size of buffer (in bytes) = bits_per_sample / 8.
385
372
*
386
-
* @param ticks_to_wait Timeout in RTOS ticks. If space is not available in the DMA TX buffer within this period, no data is written and function returns 0.
373
+
* @param ticks_to_wait Timeout in RTOS ticks. If a sample is not available in the DMA buffer within this period, no data is read and function returns zero.
* @brief Read a single sample from the I2S DMA RX buffer.
408
383
*
409
-
* Size of the sample is determined by the channel_format (mono or stereo)) & bits_per_sample configuration (see i2s_config_t).
410
-
*
411
-
* @param i2s_num I2S_NUM_0, I2S_NUM_1
384
+
* This function is deprecated. Use 'i2s_read' instead.
385
+
* This definition will be removed in a future release.
412
386
*
413
-
* @param sample Buffer sample data will be read into. Size of buffer (in bytes) = (number of channels) * bits_per_sample / 8.
387
+
* @param i2s_numI2S_NUM_0, I2S_NUM_1
414
388
*
415
-
* @param[out] sample_readNumber of bytes successfully read from DMA buffer, will be either zero or the size of configured sample buffer.
389
+
* @param sample Buffer to write data. Size of buffer (in bytes) = bits_per_sample / 8.
416
390
*
417
-
* @param ticks_to_wait Timeout in RTOS ticks. If a sample is not available in the DMA buffer within this period, no data is read and function returns zero.
391
+
* @param ticks_to_wait Timeout in RTOS ticks. If a sample is not available in the DMA buffer within this period, no data is read and function returns zero.
418
392
*
419
393
* @return
420
-
* - ESP_OK Success
421
-
* - ESP_ERR_INVALID_ARG Parameter error
394
+
* - Number of bytes successfully read from DMA buffer, will be either zero or the size of configured sample buffer (in bytes).
0 commit comments