|
idfxx 1.0.0
Modern C++23 components for ESP-IDF
|
Configuration for a one-shot analog input. More...
Public Member Functions | |
| constexpr bool | operator== (const config &) const noexcept=default |
| Compares two configurations for equality. | |
Public Attributes | |
| idfxx::gpio | pin = gpio::nc() |
| ADC-capable GPIO (required). | |
| enum attenuation | attenuation = attenuation::db_12 |
| Input range selection. | |
| divider_ratio | divider {} |
| External voltage-divider ratio between the source and the pin. | |
|
constexprdefaultnoexcept |
Compares two configurations for equality.
| enum attenuation idfxx::adc::input::config::attenuation = attenuation::db_12 |
| divider_ratio idfxx::adc::input::config::divider {} |
External voltage-divider ratio between the source and the pin.
read_voltage scales by it to report the source voltage; read_raw is unaffected.
| idfxx::gpio idfxx::adc::input::config::pin = gpio::nc() |