blob: b5d62444bca8089abaf6a525886b9a8508342a50 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
/*
* ThermocoupleSensor31855.h
*
* Created on: 8 Jun 2017
* Author: David
*/
#ifndef SRC_HEATING_THERMOCOUPLESENSOR31855_H_
#define SRC_HEATING_THERMOCOUPLESENSOR31855_H_
#include "SpiTemperatureSensor.h"
class ThermocoupleSensor31855 : public SpiTemperatureSensor
{
public:
ThermocoupleSensor31855(unsigned int sensorNum) noexcept;
GCodeResult Configure(GCodeBuffer& gb, const StringRef& reply, bool& changed) override THROWS(GCodeException);
#if SUPPORT_REMOTE_COMMANDS
GCodeResult Configure(const CanMessageGenericParser& parser, const StringRef& reply) noexcept override; // configure the sensor from M308 parameters
#endif
void Poll() noexcept override;
const char *GetShortSensorType() const noexcept override { return TypeName; }
static constexpr const char *TypeName = "thermocouplemax31855";
private:
GCodeResult FinishConfiguring(bool changed, const StringRef& reply) noexcept;
};
#endif /* SRC_HEATING_THERMOCOUPLESENSOR31855_H_ */
|