blob: d627247c9961e41a3d3469fcccd17830425524ce (
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) noexcept;
~SensorWithPort() noexcept;
// 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 noexcept;
IoPort port;
};
#endif /* SRC_HEATING_SENSORS_SENSORWITHPORT_H_ */
|