3-phase PV router
|
This class implements the temperature sensing feature. More...
#include <utils_temp.h>
Public Member Functions | |
constexpr | TemperatureSensing ()=delete |
constexpr | TemperatureSensing (uint8_t pin, const DeviceAddress(&ref)[N]) |
Construct a new Temperature Sensing object. | |
constexpr auto | get_pin () const |
Get the pin of the sensor(s) | |
constexpr auto | get_size () const |
Get the number of sensors. | |
void | initTemperatureSensors () |
Initialize the Dallas sensors. | |
int16_t | readTemperature (const uint8_t idx) |
Read temperature of a specific device. | |
void | requestTemperatures () |
Request temperature for all sensors. | |
Private Types | |
using | ScratchPad = uint8_t[9] |
Private Attributes | |
const DeviceAddress | sensorAddrs [N] |
const uint8_t | sensorPin |
This class implements the temperature sensing feature.
N | Number of sensors, automatically deduced |
Definition at line 46 of file utils_temp.h.
|
private |
Definition at line 48 of file utils_temp.h.
|
constexprdelete |
|
inlineconstexpr |
Construct a new Temperature Sensing object.
pin | Pin of the temperature sensor(s) |
ref | The list of temperature sensor(s) |
Definition at line 59 of file utils_temp.h.
|
inlineconstexpr |
Get the pin of the sensor(s)
Definition at line 104 of file utils_temp.h.
|
inlineconstexpr |
Get the number of sensors.
Definition at line 94 of file utils_temp.h.
|
inline |
Initialize the Dallas sensors.
Definition at line 81 of file utils_temp.h.
|
inline |
Read temperature of a specific device.
idx | The index of the device |
Definition at line 115 of file utils_temp.h.
|
inline |
Request temperature for all sensors.
Definition at line 68 of file utils_temp.h.
|
private |
Array of sensors
Definition at line 156 of file utils_temp.h.
|
private |
The pin of the sensor(s)
Definition at line 154 of file utils_temp.h.