Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Duet3D/RepRapFirmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/Heating/Sensors/RtdSensor31865.h')
-rw-r--r--src/Heating/Sensors/RtdSensor31865.h24
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_ */