21 lines
428 B
C
21 lines
428 B
C
//
|
|
// Created by cfif on 04.12.2025.
|
|
//
|
|
|
|
#ifndef MDF_ADC_TEMP_KST45_14_2_H
|
|
#define MDF_ADC_TEMP_KST45_14_2_H
|
|
|
|
#include <stdint.h>
|
|
|
|
typedef enum {
|
|
ALG_STEINHART = 0,
|
|
ALG_STEINHART_FULL = 1,
|
|
ALG_LINEAR = 2
|
|
} eAlg;
|
|
|
|
void init_fast_lookup_table(eAlg use_alg);
|
|
float get_temperature_from_adc_KST45(uint16_t adc_value, eAlg alg);
|
|
int16_t get_temperature_fast_KST45(uint16_t adc_value);
|
|
|
|
#endif //MDF_ADC_TEMP_KST45_14_2_H
|