|
NTC_THERMISTOR Driver 0.1.0
API reference
|
Everything one thermistor and its divider need. There is no default part: a Config{} fails Validate() until a Curve is declared.
More...
#include <ntc_thermistor_types.hpp>
Public Attributes | |
| Curve | curve {} |
| The thermistor. | |
| uint8_t | adc_channel {0} |
Passed to the port's ReadRaw(). | |
| uint8_t | adc_bits {12} |
ADC resolution, kMinAdcBits to kMaxAdcBits. | |
| Topology | topology {Topology::NtcLowSide} |
| Where the thermistor sits in the divider. | |
| uint32_t | series_ohm {10'000} |
The other divider resistor, 1 to kMaxSeriesOhm. | |
| uint32_t | series_tol_ppm {0} |
| Its tolerance; 0 = not declared. | |
| uint32_t | adc_vref_mv {0} |
| ADC reference, mV; 0 = ratiometric. | |
| uint32_t | divider_supply_mv {0} |
| Divider supply, mV; 0 = ratiometric; both or neither. | |
| int32_t | offset_mc {0} |
Added to the temperature; magnitude at most kMaxOffsetMc. | |
| uint8_t | sample_count {1} |
Codes averaged per reading, 1 to kMaxSampleCount. | |
| uint32_t | sample_delay_us {0} |
Wait between samples; needs the port's DelayUs(). | |
| uint32_t | settle_us {0} |
Wait after SetBias(true); needs SetBias() and DelayUs(). | |
| uint32_t | max_spread_codes {0} |
| Largest max-min of the samples; 0 = not checked. | |
| uint32_t | open_margin_codes {2} |
| Codes at the open rail that count as an open circuit. | |
| uint32_t | short_margin_codes {2} |
| Codes at the short rail that count as a short circuit. | |
| int32_t | min_temperature_mc {kNoMinTemperatureMc} |
| int32_t | max_temperature_mc {kNoMaxTemperatureMc} |
Everything one thermistor and its divider need. There is no default part: a Config{} fails Validate() until a Curve is declared.
| int32_t ntc_thermistor::Config::max_temperature_mc {kNoMaxTemperatureMc} |
Upper end of the valid window; mandatory in beta mode.
| int32_t ntc_thermistor::Config::min_temperature_mc {kNoMinTemperatureMc} |
Lower end of the valid window; mandatory in beta mode.