precision-converters-firmware
thermistor.h
Go to the documentation of this file.
1 
17 #include <stdint.h>
18 
19 #ifndef _THERMISTOR_H_
20 #define _THERMISTOR_H_
21 
22 /* Enable this macro to use look-up tables for temperature conversion */
23 #define DEFINE_LOOKUP_TABLES
24 
26 {
27 public:
30  static float lookup(const uint32_t *lut,
31  uint32_t resistance,
32  uint16_t size,
33  int16_t offset);
34  static float convert(const float resistance, float coeff_A, float coeff_B,
35  float coeff_C);
36  virtual float convert(const float resistance) = 0;
37  virtual float lookup(const float resistance) = 0;
38 };
39 
40 #endif /* _THERMISTOR_H_ */
Definition: thermistor.h:26
virtual float convert(const float resistance)=0
static float lookup(const uint32_t *lut, uint32_t resistance, uint16_t size, int16_t offset)
virtual float lookup(const float resistance)=0
static float convert(const float resistance, float coeff_A, float coeff_B, float coeff_C)