Module max31865::temp_conversion[][src]

Temperature conversion vec and lookup function

Structs

LookupTable

The lookup table maps temperature values to resistance values. The temperature values are the range [min, min + step, …, min + step * (len(data) - 1)]. The resistance values are stored in the array data,

Constants

LOOKUP_TABLE_PT100_SHORT

This lookup table contains the resistance values for a PT100 RTD ranging from 0 C° up to 130 C° in steps of 10 C°, corresponding to a range from 100.0 Ohms to 149.83 Ohms.

LOOKUP_VEC_PT100

This lookup table contains the resistance values for a PT100 RTD ranging from -200 C° up to 800 C°, corresponding to a range from 18.52 Ohms to 369.71 Ohms. Calculated using fn make_lookup() below.

LOOKUP_VEC_PT1000

This lookup table contains the resistance values for a PT1000 RTD ranging from -200 C° up to 800 C°, corresponding to a range from 185.20 Ohms to 3697.12 Ohms. Calculated using fn make_lookup() below.

Traits

LookupToI32