Espressif ESP32-S2 Programming Manual page 241

Table of Contents

Advertisement

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
(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:
(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
data
format,
[15:12]-channel,
230
Submit Document Feedback
[11:
0]-12
bits
0]-11 bits ADC data
ADC
data
Release v4.4

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ESP32-S2 and is the answer not in the manual?

Questions and answers

Table of Contents

Save PDF