Function esp_idf_sys::adc_digi_read_bytes
source ยท pub unsafe extern "C" fn adc_digi_read_bytes(
buf: *mut u8,
length_max: u32,
out_length: *mut u32,
timeout_ms: u32,
) -> esp_err_t
Expand description
@brief Read bytes from Digital ADC through DMA.
@param[out] buf Buffer to read from ADC. @param[in] length_max Expected length of data read from the ADC. @param[out] out_length Real length of data read from the ADC via this API. @param[in] timeout_ms Time to wait for data via this API, in millisecond.
@return - 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