diff options
Diffstat (limited to 'src/Heating/Sensors/RtdSensor31865.h')
-rw-r--r-- | src/Heating/Sensors/RtdSensor31865.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/Heating/Sensors/RtdSensor31865.h b/src/Heating/Sensors/RtdSensor31865.h new file mode 100644 index 00000000..0ff0a110 --- /dev/null +++ b/src/Heating/Sensors/RtdSensor31865.h @@ -0,0 +1,24 @@ +/* + * RtdSensor31865.h + * + * Created on: 8 Jun 2017 + * Author: David + */ + +#ifndef SRC_HEATING_RTDSENSOR31865_H_ +#define SRC_HEATING_RTDSENSOR31865_H_ + +#include "SpiTemperatureSensor.h" + +class RtdSensor31865 : public SpiTemperatureSensor +{ +public: + RtdSensor31865(unsigned int channel); + void Init() override; + TemperatureError GetTemperature(float& t) override; + +private: + TemperatureError TryInitRtd() const; +}; + +#endif /* SRC_HEATING_RTDSENSOR31865_H_ */ |