PER Firmware
Loading...
Searching...
No Matches
thermistor.h
Go to the documentation of this file.
1
8
#ifndef THERMISTOR_H
9
#define THERMISTOR_H
10
11
#include "
common/lerp_lut/lerp_lut.h
"
12
13
extern
const
lerp_lut_t
thermistor_lut;
14
15
// Convert a thermistor resistance to a temperature using the LUT
16
[[gnu::always_inline]]
17
static
inline
float
thermistor_R_to_T(
float
resistance) {
18
return
lut_lookup
(&thermistor_lut, resistance);
19
}
20
21
#endif
// THERMISTOR_H
lut_lookup
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
lerp_lut.h
Linear interpolation lookup table (LUT).
lerp_lut_t
Definition
lerp_lut.h:18
source
a_box
thermistor
thermistor.h
Generated by
1.12.0