Searched refs:cal1 (Results 1 – 1 of 1) sorted by relevance
243 auto cal1 = TempCalibration1::Get().ReadFrom(&fuse_mmio_); in RawToTemperature() local256 int32_t gain = 10000 + FixedPoint(cal1.get_adc_gain()); in RawToTemperature()257 int32_t vts_with_gain = RawWithGain(vts - cal1.get_adc_offset(), gain); in RawToTemperature()258 int32_t temp_c = ((RawWithGain(raw - cal1.get_adc_offset(), gain) - vts_with_gain) * 5) / 6; in RawToTemperature()260 temp_c = cal0.temp_offset() - ((temp_c * 100) / (165 + (cal1.id() == 0 ? 0 : slope))); in RawToTemperature()
Completed in 3 milliseconds