EasyManua.ls Logo

Espressif ESP32-S2 - Page 240

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
ADC_CHANNEL_5
ADC channel
ADC_CHANNEL_6
ADC channel
ADC_CHANNEL_7
ADC channel
ADC_CHANNEL_8
ADC channel
ADC_CHANNEL_9
ADC channel
ADC_CHANNEL_MAX
enum adc_atten_t
ADC attenuation parameter. Different parameters determine the range of the ADC. See
adc1_config_channel_atten.
Values:
ADC_ATTEN_DB_0 = 0
No input attenumation, ADC can measure up to approx. 800 mV.
ADC_ATTEN_DB_2_5 = 1
The input voltage of ADC will be attenuated extending the range of measurement by about 2.5 dB (1.33
x)
ADC_ATTEN_DB_6 = 2
The input voltage of ADC will be attenuated extending the range of measurement by about 6 dB (2 x)
ADC_ATTEN_DB_11 = 3
The input voltage of ADC will be attenuated extending the range of measurement by about 11 dB (3.55
x)
ADC_ATTEN_MAX
enum adc_bits_width_t
ADC resolution setting option.
Note Only used in single read mode
Values:
ADC_WIDTH_BIT_13 = 4
ADC capture width is 13Bit.
ADC_WIDTH_MAX
enum adc_digi_convert_mode_t
ADC digital controller (DMA mode) work mode.
Values:
ADC_CONV_SINGLE_UNIT_1 = 1
Only use ADC1 for conversion.
ADC_CONV_SINGLE_UNIT_2 = 2
Only use ADC2 for conversion.
ADC_CONV_BOTH_UNIT = 3
Use Both ADC1 and ADC2 for conversion simultaneously.
ADC_CONV_ALTER_UNIT = 7
Use both ADC1 and ADC2 for conversion by turn. e.g. ADC1 -> ADC2 -> ADC1 -> ADC2 ..
ADC_CONV_UNIT_MAX
Espressif Systems 229
Submit Document Feedback
Release v4.4

Table of Contents