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
uint32_t
Expected length of the Conversion Results read from the ADC, in bytes.
out_length
uint32_t*
Real length of the Conversion Results read from the ADC via this API, in bytes.
timeout_ms
uint32_t
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