pub fn temperature_to_micro_celsius(raw: i16) -> i32Expand description
Converts a raw temperature register value to micro-degrees Celsius, exactly.
Each count is 1/16 °C, which is 62500 micro-degrees, so the conversion is exact in integer arithmetic and needs no floating point.
§Arguments
raw- the 16-bit two’s-complement temperature register, as a signed value.
§Returns
The temperature in micro-degrees Celsius (millionths of a degree).