PER Firmware
Loading...
Searching...
No Matches
thermistor.h
Go to the documentation of this file.
1
9#ifndef THERMISTOR_H
10#define THERMISTOR_H
11
13
14extern const lerp_lut_t thermistor_lut;
15
16// Convert a thermistor resistance to a temperature using the LUT
17[[gnu::always_inline]]
18static inline float thermistor_R_to_T(float resistance) {
19 return lut_lookup(&thermistor_lut, resistance);
20}
21
22#endif // THERMISTOR_H
float lut_lookup(const lerp_lut_t *lut, float key)
Lookup a value in a linear interpolation lookup table (LUT).
Definition lerp_lut.c:20
Linear interpolation lookup table (LUT).
Definition lerp_lut.h:18