EasyManua.ls Logo

Espressif ESP32-S2 - Page 234

Espressif ESP32-S2
1695 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 2. API Reference
idx: Filter index.
config: See adc_digi_filter_t.
esp_err_t adc_digi_filter_get_config(adc_digi_filter_idx_t idx, adc_digi_filter_t *config)
Get adc digital controller filter configuration.
Note For ESP32S2, Filter IDX0/IDX1 can only be used to filter all enabled channels of ADC1/ADC2 unit at
the same time.
Return
ESP_OK Success
Parameters
idx: Filter index.
config: See adc_digi_filter_t.
esp_err_t adc_digi_filter_enable(adc_digi_filter_idx_t idx, bool enable)
Enable/disable adc digital controller filter. Filtering the ADC data to obtain smooth data at higher sampling
rates.
Note For ESP32S2, Filter IDX0/IDX1 can only be used to filter all enabled channels of ADC1/ADC2 unit at
the same time.
Return
ESP_OK Success
Parameters
idx: Filter index.
enable: Enable/Disable filter.
esp_err_t adc_digi_monitor_set_config(adc_digi_monitor_idx_t idx, adc_digi_monitor_t
*config)
Config monitor of adc digital controller.
Note For ESP32S2, The monitor will monitor all the enabled channel data of the each ADC unit at the same
time.
Return
ESP_OK Success
Parameters
idx: Monitor index.
config: See adc_digi_monitor_t.
esp_err_t adc_digi_monitor_enable(adc_digi_monitor_idx_t idx, bool enable)
Enable/disable monitor of adc digital controller.
Note For ESP32S2, The monitor will monitor all the enabled channel data of the each ADC unit at the same
time.
Return
ESP_OK Success
Parameters
idx: Monitor index.
enable: True or false enable monitor.
Structures
struct adc_digi_init_config_s
ADC DMA driver configuration.
Public Members
uint32_t max_store_buf_size
Max length of the converted data that driver can store before they are processed.
uint32_t conv_num_each_intr
Bytes of data that can be converted in 1 interrupt.
Espressif Systems 223
Submit Document Feedback
Release v4.4

Table of Contents