|
NTC_THERMISTOR Driver 0.1.0
API reference
|
Optional ESP-IDF layer: a Config built from the CONFIG_NTC_THERMISTOR_* Kconfig options.
More...
Go to the source code of this file.
Namespaces | |
| namespace | ntc_thermistor |
The NTC thermistor driver: everything it declares lives here; internals in detail. | |
Macros | |
| #define | CONFIG_NTC_THERMISTOR_ADC_CHANNEL 0 |
| #define | CONFIG_NTC_THERMISTOR_ADC_BITS 12 |
| #define | CONFIG_NTC_THERMISTOR_SERIES_OHM 10000 |
| #define | CONFIG_NTC_THERMISTOR_SAMPLES 1 |
Functions | |
| constexpr Config | ntc_thermistor::KconfigDefaults () noexcept |
| The configuration menuconfig selected. | |
Optional ESP-IDF layer: a Config built from the CONFIG_NTC_THERMISTOR_* Kconfig options.
Include it only where menuconfig should choose the defaults; without Kconfig KconfigDefaults() equals Config{} (no part: Validate() refuses it). One configuration per program: every translation unit of one program must see the same CONFIG_ values, and no driver header includes this one (handbook KB-CPP20-018).
| #define CONFIG_NTC_THERMISTOR_ADC_BITS 12 |
ADC resolution when Kconfig does not set it: Config{}.adc_bits.
| #define CONFIG_NTC_THERMISTOR_ADC_CHANNEL 0 |
ADC channel when Kconfig does not set it: Config{}.adc_channel.
| #define CONFIG_NTC_THERMISTOR_SAMPLES 1 |
Samples averaged when Kconfig does not set it: Config{}.sample_count.
| #define CONFIG_NTC_THERMISTOR_SERIES_OHM 10000 |
Series resistor when Kconfig does not set it: Config{}.series_ohm.