EasyManua.ls Logo

Espressif ESP32-S2 - Page 241

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
enum adc_digi_output_format_t
ADC digital controller (DMA mode) output data format option.
Values:
ADC_DIGI_FORMAT_12BIT
ADC to DMA data format, [15:12]-channel, [11: 0]-12 bits ADC data
(adc_digi_output_data_t). Note: For single convert mode.
ADC_DIGI_FORMAT_11BIT
ADC to DMA data format, [15]-adc unit, [14:11]-channel, [10: 0]-11 bits ADC data
(adc_digi_output_data_t). Note: For multi or alter convert mode.
ADC_DIGI_FORMAT_MAX
ADC_DIGI_OUTPUT_FORMAT_TYPE1
See adc_digi_output_data_t.type1
ADC_DIGI_OUTPUT_FORMAT_TYPE2
See adc_digi_output_data_t.type2
enum adc_arbiter_mode_t
ADC arbiter work mode option.
Note ESP32-S2: Only ADC2 support arbiter.
Values:
ADC_ARB_MODE_SHIELD
Force shield arbiter, Select the highest priority controller to work.
ADC_ARB_MODE_FIX
Fixed priority switch controller mode.
ADC_ARB_MODE_LOOP
Loop priority switch controller mode. Each controller has the same priority, and the arbiter will switch
to the next controller after the measurement is completed.
enum adc_digi_filter_idx_t
ADC digital controller (DMA mode) filter index options.
Note For ESP32-S2, The filter object of the ADC is fixed.
Values:
ADC_DIGI_FILTER_IDX0 = 0
The filter index 0. For ESP32-S2, It can only be used to filter all enabled channels of ADC1 unit at the
same time.
ADC_DIGI_FILTER_IDX1
The filter index 1. For ESP32-S2, It can only be used to filter all enabled channels of ADC2 unit at the
same time.
ADC_DIGI_FILTER_IDX_MAX
enum adc_digi_filter_mode_t
ADC digital controller (DMA mode) filter type options. Expression: filter_data = (k-1)/k * last_data +
new_data / k.
Values:
ADC_DIGI_FILTER_IIR_2 = 0
The filter mode is first-order IIR filter. The coefficient is 2.
ADC_DIGI_FILTER_IIR_4
The filter mode is first-order IIR filter. The coefficient is 4.
ADC_DIGI_FILTER_IIR_8
The filter mode is first-order IIR filter. The coefficient is 8.
Espressif Systems 230
Submit Document Feedback
Release v4.4

Table of Contents