pub fn from_adc(raw: i16, battery_mv: u16) -> Option<u16>Expand description
Convert a fresh 14-bit SAADC sample (3.6 V full scale) and VBAT in mV to tenths of a kelvin. Open/short circuits and values beyond the table are unavailable, never clamped into plausible endpoint temperatures.