precision-converters-firmware
ntc_10k_44031.h
Go to the documentation of this file.
1 
17 #include <stdint.h>
18 
19 #ifndef _NTC_10K_44031_H_
20 #define _NTC_10K_44031_H_
21 
22 /******************************************************************************/
23 /***************************** Include Files **********************************/
24 /******************************************************************************/
25 
26 #include "thermistor.h"
27 
28 /* This is a child class of thermistor parent class and contains
29  * attributes specific to 10K 44031 NTC sensor */
31 {
32 private:
33  /* NTC coefficients for Steinhart-Hart equation */
34  float coeff_A;
35  float coeff_B;
36  float coeff_C;
37 #ifdef DEFINE_LOOKUP_TABLES
38  int16_t lut_offset;
39  int16_t lut_size;
40  static const uint32_t lut[];
41 #endif
42 
43 public:
45  float convert(const float resistance);
46 #ifdef DEFINE_LOOKUP_TABLES
47  float lookup(const float resistance);
48 #endif
49 };
50 
51 #endif /* _NTC_10K_44031_H_ */
Definition: ntc_10k_44031.h:31
float convert(const float resistance)
float lookup(const float resistance)
Definition: thermistor.h:26