Function milli_celsius
Source pub fn milli_celsius(raw: u16) -> i32
Expand description
Decodes the raw temperature word to milli-degrees Celsius.
This is Table 11’s T = -45 + 175 * word / (2^16 - 1), in thousandths, rounded
to the nearest.
§Arguments
raw - the 16-bit temperature word of a measurement.
§Returns
The temperature in milli-degrees Celsius, from -45’000 to 130’000.