EasyManua.ls Logo

Espressif ESP32-S2 - Page 235

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
uint32_t adc1_chan_mask
Channel list of ADC1 to be initialized.
uint32_t adc2_chan_mask
Channel list of ADC2 to be initialized.
struct adc_digi_configuration_t
ADC digital controller settings.
Public Members
bool conv_limit_en
To limit ADC conversion times. Conversion stops after finishing conv_limit_num times conversion.
uint32_t conv_limit_num
Set the upper limit of the number of ADC conversion triggers. Range: 1 ~ 255.
uint32_t pattern_num
Number of ADC channels that will be used.
adc_digi_pattern_config_t *adc_pattern
List of configs for each ADC channel that will be used.
uint32_t sample_freq_hz
The expected ADC sampling frequency in Hz. Range: 611Hz ~ 83333Hz Fs = Fd / interval / 2 Fs:
sampling frequency; Fd: digital controller frequency, no larger than 5M for better performance interval:
interval between 2 measurement trigger signal, the smallest interval should not be smaller than the ADC
measurement period, the largest interval should not be larger than 4095
adc_digi_convert_mode_t conv_mode
ADC DMA conversion mode, see adc_digi_convert_mode_t.
adc_digi_output_format_t format
ADC DMA conversion output format, see adc_digi_output_format_t.
Macros
ADC_ATTEN_0db
ADC rtc controller attenuation option.
Note This definitions are only for being back-compatible
ADC_ATTEN_2_5db
ADC_ATTEN_6db
ADC_ATTEN_11db
ADC_WIDTH_BIT_DEFAULT
The default (max) bit width of the ADC of current version. You can also get the maximum bitwidth by
SOC_ADC_MAX_BITWIDTH defined in soc_caps.h.
ADC_WIDTH_9Bit
ADC_WIDTH_10Bit
ADC_WIDTH_11Bit
ADC_WIDTH_12Bit
ADC_MAX_DELAY
Digital ADC DMA read max timeout value, it may make the adc_digi_read_bytes block forever if the
OS supports.
Type Definitions
typedef struct adc_digi_init_config_s adc_digi_init_config_t
ADC DMA driver configuration.
Espressif Systems 224
Submit Document Feedback
Release v4.4

Table of Contents