blob: 140cd0e9004ae33c13a3e4f45e71c5b7108f052e (
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
|
/*
* SensorWithPort.h
*
* Created on: 18 Jul 2019
* Author: David
*/
#ifndef SRC_HEATING_SENSORS_SENSORWITHPORT_H_
#define SRC_HEATING_SENSORS_SENSORWITHPORT_H_
#include "TemperatureSensor.h"
class SensorWithPort : public TemperatureSensor
{
protected:
SensorWithPort(unsigned int sensorNum, const char *type);
~SensorWithPort();
// Try to configure the port
bool ConfigurePort(GCodeBuffer& gb, const StringRef& reply, PinAccess access, bool& seen);
// Copy the basic details to the reply buffer. This hides the version in the base class.
void CopyBasicDetails(const StringRef& reply) const;
IoPort port;
};
#endif /* SRC_HEATING_SENSORS_SENSORWITHPORT_H_ */
|