|
MCP9700 Driver 0.1.0
API reference
|
Everything EnsureInitialized() uses. Config{} is an MCP9700 on a 12 bit, 3.3 V ADC.
More...
#include <mcp9700_types.hpp>
Public Attributes | |
| uint8_t | channel {0U} |
Passed to ReadVoltageMv() unchanged. | |
| Variant | variant {Variant::Mcp9700} |
A named part, or Custom. | |
| TemperatureClass | range {TemperatureClass::Extended} |
High only for a part with that option. | |
| CustomSpec | custom {} |
Only with Variant::Custom. | |
| uint32_t | adc_full_scale_mv {3300U} |
| Largest voltage the port can report, mV. | |
| uint8_t | adc_resolution_bits {12U} |
| ADC resolution, 8 to 16 bits. | |
| uint16_t | divider_num {1U} |
| VOUT = pin x divider_num / divider_den. | |
| uint16_t | divider_den {1U} |
See divider_num. | |
| int32_t | offset_cal_mc {0} |
| Added to the result: one-point calibration. | |
| int32_t | range_margin_mc {8000} |
| Plausibility margin each side of the range, milli-C. | |
| uint16_t | samples {8U} |
Conversions averaged per reading, 1 to kMaxSamples. | |
| uint32_t | sample_interval_us {100U} |
Wait between conversions, up to kMaxSampleIntervalUs. | |
| uint8_t | discard_conversions {1U} |
Dummy conversions before a reading, up to kMaxDiscard. | |
| uint32_t | max_spread_mv {30U} |
| Largest max-min of one reading at VOUT, mV. | |
| uint32_t | power_on_settle_us |
Wait after enabling the sensor, up to kMaxPowerOnSettleUs. | |
| uint32_t mcp9700::Config::power_on_settle_us |
Wait after enabling the sensor, up to kMaxPowerOnSettleUs.