|
MCP9700 Driver
API reference
|
Classes | |
| class | Mcp9700Thermistor |
| Template driver for MCP9700 family sensors on a multiplexed ADC. More... | |
Enumerations | |
| enum class | Error : uint8_t { kNone = 0 , kNotInitialized , kInvalidArgument , kInvalidCoefficients , kAdcError , kOutOfRange } |
| Why the last call failed (see Mcp9700Thermistor::LastError()). More... | |
Variables | |
| constexpr float | kDefaultVoltsAtZeroC = 0.5F |
| Default output voltage at 0 °C (500 mV typical, MCP9700/MCP9700A). | |
| constexpr float | kDefaultVoltsPerCelsius = 0.01F |
| Default sensitivity (10 mV/°C typical). | |
| constexpr float | kDefaultSpecifiedMinCelsius = -40.0F |
| Default lower end of the specified temperature range (°C). | |
| constexpr float | kDefaultSpecifiedMaxCelsius = 125.0F |
| Default upper end of the specified temperature range (°C). | |
| constexpr float | kDefaultRangeMarginCelsius = 8.0F |
| Default plausibility margin (°C) added on both sides of the specified range. | |
|
strong |
Why the last call failed (see Mcp9700Thermistor::LastError()).
|
inlineconstexpr |
Default plausibility margin (°C) added on both sides of the specified range.
Covers the worst-case sensor accuracy of the MCP9700 (-4 °C / +6 °C, DC Electrical Characteristics) plus a little ADC error. With the default coefficients a reading is accepted from -48 °C (20 mV) to +133 °C (1.83 V); an open or grounded input (0 V, -50 °C) is rejected.
|
inlineconstexpr |
Default upper end of the specified temperature range (°C).
|
inlineconstexpr |
Default lower end of the specified temperature range (°C).
MCP9700/9700A/9700B: -40 °C to +125 °C (DS20001942, Temperature Characteristics). Over that range VOUT is 100 mV to 1.75 V (Section 3.2).
|
inlineconstexpr |
Default output voltage at 0 °C (500 mV typical, MCP9700/MCP9700A).
|
inlineconstexpr |
Default sensitivity (10 mV/°C typical).