class Ntc

Defined at line 38 of file ../../src/devices/lib/thermal/include/lib/thermal/ntc.h

Public Methods

void Ntc (NtcInfo ntc_info, uint32_t pullup_ohms)

Defined at line 40 of file ../../src/devices/lib/thermal/include/lib/thermal/ntc.h

zx_status_t GetTemperatureCelsius (float norm_sample, float * out)

we use a normalized sample [0-1] to prevent having to worry about adc resolution

in this library. This assumes the call site will normalize the value appropriately

Since the thermistor is in series with a pullup resistor, we must convert our sample

value to a resistance then lookup in the profile table.

Defined at line 60 of file ../../src/devices/lib/thermal/include/lib/thermal/ntc.h

zx_status_t GetNormalizedSample (float temperature_c, float * out)

Returns the normalized sample. Convert from resistance.

Defined at line 77 of file ../../src/devices/lib/thermal/include/lib/thermal/ntc.h