from_lr1110_raw

Function from_lr1110_raw 

Source
pub fn from_lr1110_raw(raw: u16) -> Option<u16>
Expand description

Semtech’s nominal Vana=1.35 V, Vbe25=0.7295 V, slope=-1.7 mV/°C: https://github.com/Lora-net/SWDR001/blob/master/src/lr11xx_system.h Temp[10:0] is an ADC code, despite the pinned lora-phy get_temp comment. Use integer arithmetic and round once into 0.1 K, with ties upward.