NTC_THERMISTOR Driver 0.1.0
API reference
Loading...
Searching...
No Matches
Namespaces | Macros | Functions
ntc_thermistor_kconfig.hpp File Reference

Optional ESP-IDF layer: a Config built from the CONFIG_NTC_THERMISTOR_* Kconfig options. More...

#include "ntc_thermistor_presets.hpp"
#include "ntc_thermistor_types.hpp"

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.
 

Detailed Description

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).

Macro Definition Documentation

◆ CONFIG_NTC_THERMISTOR_ADC_BITS

#define CONFIG_NTC_THERMISTOR_ADC_BITS   12

ADC resolution when Kconfig does not set it: Config{}.adc_bits.

◆ CONFIG_NTC_THERMISTOR_ADC_CHANNEL

#define CONFIG_NTC_THERMISTOR_ADC_CHANNEL   0

ADC channel when Kconfig does not set it: Config{}.adc_channel.

◆ CONFIG_NTC_THERMISTOR_SAMPLES

#define CONFIG_NTC_THERMISTOR_SAMPLES   1

Samples averaged when Kconfig does not set it: Config{}.sample_count.

◆ CONFIG_NTC_THERMISTOR_SERIES_OHM

#define CONFIG_NTC_THERMISTOR_SERIES_OHM   10000

Series resistor when Kconfig does not set it: Config{}.series_ohm.