MCP9700 Driver 0.1.0
API reference
Loading...
Searching...
No Matches
Public Attributes | List of all members
mcp9700::CustomSpec Struct Reference

What the user declares for Variant::Custom. Every field must be set (an all-zero declaration fails Validate()); every field must stay zero for a named variant. More...

#include <mcp9700_types.hpp>

Public Attributes

uint32_t v0_mv {0U}
 Output at 0 C, millivolts (0 is valid).
 
uint32_t tc_uv_per_c {0U}
 Slope, microvolts per C, 1000 to 100000 (positive only).
 
int32_t min_mc {0}
 Lowest specified temperature, milli-C.
 
int32_t max_mc {0}
 Highest specified temperature, milli-C.
 
int32_t accuracy_min_mc {0}
 
int32_t accuracy_max_mc {0}
 

Detailed Description

What the user declares for Variant::Custom. Every field must be set (an all-zero declaration fails Validate()); every field must stay zero for a named variant.

The driver cannot check that these numbers describe the part: a wrong value gives wrong temperatures that look plausible.

Member Data Documentation

◆ accuracy_max_mc

int32_t mcp9700::CustomSpec::accuracy_max_mc {0}

Worst-case error over [min, max], upper limit, milli-C (at least 0).

◆ accuracy_min_mc

int32_t mcp9700::CustomSpec::accuracy_min_mc {0}

Worst-case error over [min, max], lower limit, milli-C (at most 0).


The documentation for this struct was generated from the following file: