|
idfxx 1.0.0
Modern C++23 components for ESP-IDF
|
External voltage-divider ratio between a source and an ADC pin. More...
Public Member Functions | |
| constexpr bool | operator== (const divider_ratio &) const noexcept=default |
| Compares two divider ratios for equality. | |
Public Attributes | |
| int | num = 1 |
| Ratio numerator (source = pin × num / den); must be positive. | |
| int | den = 1 |
| Ratio denominator; must be positive. | |
External voltage-divider ratio between a source and an ADC pin.
Describes a resistive divider on the board: the source voltage is the pin voltage multiplied by num / den. The default 1:1 means the pin is connected directly to the source.
|
constexprdefaultnoexcept |
Compares two divider ratios for equality.
| int idfxx::adc::divider_ratio::den = 1 |
| int idfxx::adc::divider_ratio::num = 1 |