adc_continuous_read() function
Read bytes from ADC under continuous mode.
Arguments
handle
ADC continuous mode driver handle
buf
Conversion result buffer to read from ADC. Suggest convert to `adc_digi_output_data_t` for `ADC Conversion Results`. See the subsection `Driver Backgrounds` in this header file to learn about this concept.
length_max
Expected length of the Conversion Results read from the ADC, in bytes.
out_length
Real length of the Conversion Results read from the ADC via this API, in bytes.
timeout_ms
Time to wait for data via this API, in millisecond.
Return value
- ESP_ERR_INVALID_STATE Driver state is invalid. Usually it means the ADC sampling rate is faster than the task processing rate. - ESP_ERR_TIMEOUT Operation timed out - ESP_OK On success
adc_continuous_read() calls 5 functions:
![]()
adc_continuous_read()
adc_continuous_read() reads 9 variables:
![]()
adc_continuous_read()