mirror of
https://github.com/espressif/esp-idf.git
synced 2025-12-07 17:08:49 +00:00
Merge branch 'feature/adc_continuous_new_data_replace_old_data' into 'master'
adc: added a flag to replace internal pool data with newest data, when pool is full Closes IDF-7395 See merge request espressif/esp-idf!23744
This commit is contained in:
@@ -52,6 +52,7 @@ To create an ADC continuous mode driver handle, set up the required configuratio
|
||||
|
||||
- :cpp:member:`adc_continuous_handle_cfg_t::max_store_buf_size` set the maximum size (in bytes) of the pool that the driver saves ADC conversion result into. If this pool is full, new conversion results will be lost.
|
||||
- :cpp:member:`adc_continuous_handle_cfg_t::conv_frame_size` set the size of the ADC conversion frame, in bytes.
|
||||
- :cpp:member:`adc_continuous_handle_cfg_t::flags` set the flags that can change the driver behaviour.
|
||||
|
||||
|
||||
After setting up above configurations for the ADC, call :cpp:func:`adc_continuous_new_handle` with the prepared :cpp:type:`adc_continuous_handle_cfg_t`. This function may fail due to various errors such as invalid argumemts, insufficient memory, etc.
|
||||
|
||||
Reference in New Issue
Block a user