blob: 98e1a513bcb8066da78f5a7f114d56053659f269 (
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
33
34
35
36
|
/*
* TmcDriverTemperatureSensor.h
*
* Created on: 8 Jun 2017
* Author: David
*/
#ifndef SRC_HEATING_SENSORS_TMCDRIVERTEMPERATURESENSOR_H_
#define SRC_HEATING_SENSORS_TMCDRIVERTEMPERATURESENSOR_H_
#include "TemperatureSensor.h"
#if HAS_SMART_DRIVERS
class TmcDriverTemperatureSensor : public TemperatureSensor
{
public:
TmcDriverTemperatureSensor(unsigned int sensorNum, unsigned int chan);
static constexpr const char *PrimaryTypeName = "drivers";
#ifdef DUET_NG
static constexpr const char *DuexTypeName = "drivers-duex";
#endif
// Get the smart drivers channel that this sensor monitors, or -1 if it doesn't
int GetSmartDriversChannel() const override { return (int) channel; }
void Poll() override;
private:
unsigned int channel;
};
#endif
#endif /* SRC_HEATING_SENSORS_TMCDRIVERTEMPERATURESENSOR_H_ */
|