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

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

#include "mcp9700_types.hpp"

Go to the source code of this file.

Namespaces

namespace  mcp9700
 The MCP970x driver: everything it declares lives here; internals in detail.
 

Macros

#define CONFIG_MCP9700_ADC_CHANNEL   0
 
#define CONFIG_MCP9700_ADC_FULL_SCALE_MV   3300
 
#define CONFIG_MCP9700_SAMPLES   8
 
#define CONFIG_MCP9700_SAMPLE_INTERVAL_US   100
 
#define CONFIG_MCP9700_OFFSET_CAL_MC   0
 
#define CONFIG_MCP9700_CUSTOM_V0_MV   0
 
#define CONFIG_MCP9700_CUSTOM_TC_UV_PER_C   0
 
#define CONFIG_MCP9700_CUSTOM_MIN_MC   0
 
#define CONFIG_MCP9700_CUSTOM_MAX_MC   0
 
#define CONFIG_MCP9700_CUSTOM_ACCURACY_MIN_MC   0
 
#define CONFIG_MCP9700_CUSTOM_ACCURACY_MAX_MC   0
 

Functions

constexpr Config mcp9700::KconfigDefaults () noexcept
 The configuration menuconfig selected, on top of the datasheet defaults.
 

Detailed Description

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

Include it only where menuconfig should choose the defaults; without Kconfig KconfigDefaults() equals Config{}. 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_MCP9700_ADC_CHANNEL

#define CONFIG_MCP9700_ADC_CHANNEL   0

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

◆ CONFIG_MCP9700_ADC_FULL_SCALE_MV

#define CONFIG_MCP9700_ADC_FULL_SCALE_MV   3300

Declared ADC full scale when Kconfig does not set it: Config{}.adc_full_scale_mv.

◆ CONFIG_MCP9700_CUSTOM_ACCURACY_MAX_MC

#define CONFIG_MCP9700_CUSTOM_ACCURACY_MAX_MC   0

Custom accuracy upper limit: 0 (unset).

◆ CONFIG_MCP9700_CUSTOM_ACCURACY_MIN_MC

#define CONFIG_MCP9700_CUSTOM_ACCURACY_MIN_MC   0

Custom accuracy lower limit: 0 (unset).

◆ CONFIG_MCP9700_CUSTOM_MAX_MC

#define CONFIG_MCP9700_CUSTOM_MAX_MC   0

Custom highest temperature: 0 (unset).

◆ CONFIG_MCP9700_CUSTOM_MIN_MC

#define CONFIG_MCP9700_CUSTOM_MIN_MC   0

Custom lowest temperature: 0 (unset).

◆ CONFIG_MCP9700_CUSTOM_TC_UV_PER_C

#define CONFIG_MCP9700_CUSTOM_TC_UV_PER_C   0

Custom slope: 0 (unset).

◆ CONFIG_MCP9700_CUSTOM_V0_MV

#define CONFIG_MCP9700_CUSTOM_V0_MV   0

Custom output at 0 C: 0, so an unset Custom fails Validate().

◆ CONFIG_MCP9700_OFFSET_CAL_MC

#define CONFIG_MCP9700_OFFSET_CAL_MC   0

Calibration offset when Kconfig does not set it: Config{}.offset_cal_mc.

◆ CONFIG_MCP9700_SAMPLE_INTERVAL_US

#define CONFIG_MCP9700_SAMPLE_INTERVAL_US   100

Wait between conversions when Kconfig does not set it: Config{}.sample_interval_us.

◆ CONFIG_MCP9700_SAMPLES

#define CONFIG_MCP9700_SAMPLES   8

Conversions averaged when Kconfig does not set it: Config{}.samples.