17 lines
372 B
C++
17 lines
372 B
C++
#pragma once
|
|
|
|
#include <stdint.h>
|
|
|
|
class Thermistor {
|
|
public:
|
|
static double getResistance(double adcSample);
|
|
|
|
static double getTemperature(double resistance);
|
|
|
|
private:
|
|
static constexpr auto SERIES_RESISTOR = 9951;
|
|
static constexpr auto THERMISTOR_NOMINAL = 9270;
|
|
static constexpr auto BETA_COEFFICIENT = 3212;
|
|
static constexpr auto NOMINAL_TEMPERATURE = 25;
|
|
};
|