blob: cb2bc6a5f4b58e426fcaf4fe096e58f848695327 (
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
|
/*
* ThermocoupleSensor31856.h
*
* Created on: 27 Jun 2017
* Author: David
*/
#ifndef SRC_HEATING_SENSORS_THERMOCOUPLESENSOR31856_H_
#define SRC_HEATING_SENSORS_THERMOCOUPLESENSOR31856_H_
#include "SpiTemperatureSensor.h"
class ThermocoupleSensor31856 : public SpiTemperatureSensor
{
public:
ThermocoupleSensor31856(unsigned int sensorNum);
GCodeResult Configure(GCodeBuffer& gb, const StringRef& reply) override;
static constexpr const char *TypeName = "thermocouplemax31856";
void Poll() override;
private:
TemperatureError TryInitThermocouple() const;
uint8_t cr0;
uint8_t thermocoupleType;
};
#endif /* SRC_HEATING_SENSORS_THERMOCOUPLESENSOR31856_H_ */
|