ADC Configuration.
More...
|
| static constexpr adc_unit_t | UNIT = ADC_UNIT_1 |
| | ADC unit (ADC1)
|
| |
| static constexpr adc_channel_t | CHANNEL = ADC_CHANNEL_0 |
| | ADC channel 0 (GPIO0 on ESP32-C6)
|
| |
| static constexpr adc_atten_t | ATTEN = ADC_ATTEN_DB_12 |
| | 0-3.3V range (12dB attenuation)
|
| |
| static constexpr adc_bitwidth_t | BITWIDTH = ADC_BITWIDTH_12 |
| | 12-bit resolution
|
| |
| static constexpr uint32_t | SAMPLE_RATE_HZ = 1000 |
| | 1kHz sampling rate
|
| |
| static constexpr float | VREF_MV = 3300.0f |
| | Reference voltage (3.3V)
|
| |
| static constexpr float | ADC_MAX = 4095.0f |
| | Maximum ADC value (12-bit)
|
| |
| static constexpr int | GPIO_PIN = 0 |
| | GPIO pin number (GPIO0)
|
| |
ADC Configuration.
ESP32-C6 ADC1 Channel 0 maps to GPIO0
◆ ADC_MAX
| constexpr float ADCConfig::ADC_MAX = 4095.0f |
|
staticconstexpr |
Maximum ADC value (12-bit)
◆ ATTEN
| constexpr adc_atten_t ADCConfig::ATTEN = ADC_ATTEN_DB_12 |
|
staticconstexpr |
0-3.3V range (12dB attenuation)
◆ BITWIDTH
| constexpr adc_bitwidth_t ADCConfig::BITWIDTH = ADC_BITWIDTH_12 |
|
staticconstexpr |
◆ CHANNEL
| constexpr adc_channel_t ADCConfig::CHANNEL = ADC_CHANNEL_0 |
|
staticconstexpr |
ADC channel 0 (GPIO0 on ESP32-C6)
◆ GPIO_PIN
| constexpr int ADCConfig::GPIO_PIN = 0 |
|
staticconstexpr |
◆ SAMPLE_RATE_HZ
| constexpr uint32_t ADCConfig::SAMPLE_RATE_HZ = 1000 |
|
staticconstexpr |
◆ UNIT
| constexpr adc_unit_t ADCConfig::UNIT = ADC_UNIT_1 |
|
staticconstexpr |
◆ VREF_MV
| constexpr float ADCConfig::VREF_MV = 3300.0f |
|
staticconstexpr |
The documentation for this struct was generated from the following file: