adc_digi_read_bytes() function
Read bytes from Digital ADC through DMA.
Arguments
buf
Buffer to read from ADC.
length_max
Expected length of data read from the ADC.
out_length
Real length of data read from the ADC via this API.
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_digi_read_bytes() calls 5 functions:
![]()
adc_digi_read_bytes()
adc_digi_read_bytes() reads 9 variables:
![]()
adc_digi_read_bytes()