precision-converters-firmware
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
ptc_ky81_110.h
Go to the documentation of this file.
1
17#include <stdint.h>
18
19#ifndef _PTC_KY81_110_H_
20#define _PTC_KY81_110_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 KY81/110 PTC sensor */
31{
32private:
33 /* KY81/110 PTC temperature coefficient */
34 float temperature_coeff;
35#ifdef DEFINE_LOOKUP_TABLES
36 int16_t lut_offset;
37 int16_t lut_size;
38 static const uint32_t lut[];
39#endif
40
41public:
43 float convert(const float resistance);
44#ifdef DEFINE_LOOKUP_TABLES
45 float lookup(const float resistance);
46#endif
47};
48
49#endif /* _PTC_KY81_110_H_ */
Definition ptc_ky81_110.h:31
float convert(const float resistance)
float lookup(const float resistance)
Definition thermistor.h:26