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/CpuTemperatureSensor.h')
-rw-r--r--src/Heating/Sensors/CpuTemperatureSensor.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/Heating/Sensors/CpuTemperatureSensor.h b/src/Heating/Sensors/CpuTemperatureSensor.h
new file mode 100644
index 00000000..7e23ac77
--- /dev/null
+++ b/src/Heating/Sensors/CpuTemperatureSensor.h
@@ -0,0 +1,25 @@
+/*
+ * CpuTemperatureSensor.h
+ *
+ * Created on: 8 Jun 2017
+ * Author: David
+ */
+
+#ifndef SRC_HEATING_SENSORS_CPUTEMPERATURESENSOR_H_
+#define SRC_HEATING_SENSORS_CPUTEMPERATURESENSOR_H_
+
+#include "TemperatureSensor.h"
+
+#ifndef __RADDS__
+
+class CpuTemperatureSensor : public TemperatureSensor
+{
+public:
+ CpuTemperatureSensor(unsigned int channel);
+ void Init() override;
+ TemperatureError GetTemperature(float& t) override;
+};
+
+#endif
+
+#endif /* SRC_HEATING_SENSORS_CPUTEMPERATURESENSOR_H_ */