19 #ifndef _THERMOCOUPLE_H_
20 #define _THERMOCOUPLE_H_
22 #define DEFINE_LOOKUP_TABLES
23 #ifdef DEFINE_LOOKUP_TABLES
50 static float lookup(
const int32_t *lut,
float voltage,uint16_t size,
54 virtual float lookup(
float voltage) = 0;
74 static const int32_t
lut[];
95 static const int32_t
lut[];
116 static const int32_t
lut[];
137 static const int32_t
lut[];
158 static const int32_t
lut[];
179 static const int32_t
lut[];
200 static const int32_t
lut[];
221 static const int32_t
lut[];
Definition: thermocouple.h:63
float convert(float voltage)
static const thermocouple_poly_subrange inv_poly[2]
Definition: thermocouple.h:66
float convert_inv(float temp)
static const int inv_poly_size
Definition: thermocouple.h:67
static const uint16_t lut_size
Definition: thermocouple.h:76
static const int poly_size
Definition: thermocouple.h:71
float lookup_inv(float temp)
static const thermocouple_poly_subrange poly[2]
Definition: thermocouple.h:70
float lookup(float voltage)
static const int32_t lut[]
Definition: thermocouple.h:74
static const int16_t lut_offset
Definition: thermocouple.h:75
Definition: thermocouple.h:84
static const int poly_size
Definition: thermocouple.h:92
float convert(float voltage)
float lookup_inv(float temp)
static const thermocouple_poly_subrange inv_poly[2]
Definition: thermocouple.h:87
float lookup(float voltage)
float convert_inv(float temp)
static const uint16_t lut_size
Definition: thermocouple.h:97
static const thermocouple_poly_subrange poly[2]
Definition: thermocouple.h:91
static const int inv_poly_size
Definition: thermocouple.h:88
static const int32_t lut[]
Definition: thermocouple.h:95
static const int16_t lut_offset
Definition: thermocouple.h:96
Definition: thermocouple.h:105
static const thermocouple_poly_subrange poly[3]
Definition: thermocouple.h:112
static const int32_t lut[]
Definition: thermocouple.h:116
static const uint16_t lut_size
Definition: thermocouple.h:118
static const int poly_size
Definition: thermocouple.h:113
float lookup(float voltage)
float lookup_inv(float temp)
static const thermocouple_poly_subrange inv_poly[2]
Definition: thermocouple.h:108
static const int inv_poly_size
Definition: thermocouple.h:109
float convert(float voltage)
float convert_inv(float temp)
static const int16_t lut_offset
Definition: thermocouple.h:117
Definition: thermocouple.h:126
float convert(float voltage)
static const thermocouple_poly_subrange poly[3]
Definition: thermocouple.h:133
static const uint16_t lut_size
Definition: thermocouple.h:139
float lookup_inv(float temp)
static const int inv_poly_size
Definition: thermocouple.h:130
float lookup(float voltage)
static const int32_t lut[]
Definition: thermocouple.h:137
float convert_inv(float temp)
static const int16_t lut_offset
Definition: thermocouple.h:138
static const int poly_size
Definition: thermocouple.h:134
static const thermocouple_poly_subrange inv_poly[2]
Definition: thermocouple.h:129
Definition: thermocouple.h:147
float convert(float voltage)
static const thermocouple_poly_subrange poly[3]
Definition: thermocouple.h:154
static const int inv_poly_size
Definition: thermocouple.h:151
float lookup(float voltage)
static const int32_t lut[]
Definition: thermocouple.h:158
static const int16_t lut_offset
Definition: thermocouple.h:159
float lookup_inv(float temp)
static const thermocouple_poly_subrange inv_poly[2]
Definition: thermocouple.h:150
static const uint16_t lut_size
Definition: thermocouple.h:160
static const int poly_size
Definition: thermocouple.h:155
float convert_inv(float temp)
Definition: thermocouple.h:168
static const int16_t lut_offset
Definition: thermocouple.h:180
static const thermocouple_poly_subrange inv_poly[3]
Definition: thermocouple.h:171
static const int poly_size
Definition: thermocouple.h:176
float convert_inv(float temp)
static const thermocouple_poly_subrange poly[4]
Definition: thermocouple.h:175
float lookup(float voltage)
static const uint16_t lut_size
Definition: thermocouple.h:181
static const int inv_poly_size
Definition: thermocouple.h:172
float convert(float voltage)
static const int32_t lut[]
Definition: thermocouple.h:179
float lookup_inv(float temp)
Definition: thermocouple.h:189
static const int poly_size
Definition: thermocouple.h:197
float convert(float voltage)
static const int16_t lut_offset
Definition: thermocouple.h:201
static const thermocouple_poly_subrange inv_poly[3]
Definition: thermocouple.h:192
float lookup(float voltage)
static const int32_t lut[]
Definition: thermocouple.h:200
static const int inv_poly_size
Definition: thermocouple.h:193
float convert_inv(float temp)
static const thermocouple_poly_subrange poly[4]
Definition: thermocouple.h:196
float lookup_inv(float temp)
static const uint16_t lut_size
Definition: thermocouple.h:202
Definition: thermocouple.h:210
float convert(float voltage)
static const int16_t lut_offset
Definition: thermocouple.h:222
static const int inv_poly_size
Definition: thermocouple.h:214
static const int32_t lut[]
Definition: thermocouple.h:221
static const uint16_t lut_size
Definition: thermocouple.h:223
float convert_inv(float temp)
float lookup(float voltage)
static const thermocouple_poly_subrange inv_poly[2]
Definition: thermocouple.h:213
float lookup_inv(float temp)
static const int poly_size
Definition: thermocouple.h:218
static const thermocouple_poly_subrange poly[2]
Definition: thermocouple.h:217
Definition: thermocouple.h:35
virtual float lookup_inv(float temp)=0
virtual float convert_inv(float temp)=0
static float lookup(const int32_t *lut, float voltage, uint16_t size, int16_t offset)
static float convert(float voltage, const thermocouple_poly_subrange range[], const int n)
virtual float lookup(float voltage)=0
virtual float convert(float voltage)=0
Definition: thermocouple.h:39
float max_voltage_range
Definition: thermocouple.h:41
int n
Definition: thermocouple.h:44
float min_voltage_range
Definition: thermocouple.h:40