3-phase PV router
Loading...
Searching...
No Matches
constants.h
Go to the documentation of this file.
1
12#ifndef CONSTANTS_H
13#define CONSTANTS_H
14
15// Dallas DS18B20 commands
16inline constexpr uint8_t CONVERT_TEMPERATURE{ 0x44 };
17inline constexpr uint8_t READ_SCRATCHPAD{ 0xBE };
18inline constexpr uint8_t WRITE_SCRATCH{ 0x4E };
19
20inline constexpr int16_t OUTOFRANGE_TEMPERATURE{ 30200 };
21inline constexpr int16_t TEMP_RANGE_LOW{ -5500 };
22inline constexpr int16_t TEMP_RANGE_HIGH{ 12500 };
23
24inline constexpr int16_t DEVICE_DISCONNECTED_C{ -127 };
25inline constexpr int16_t DEVICE_DISCONNECTED_RAW{ -7040 };
26
27#endif // CONSTANTS_H
constexpr uint8_t WRITE_SCRATCH
Definition: constants.h:18
constexpr uint8_t CONVERT_TEMPERATURE
Definition: constants.h:16
constexpr int16_t TEMP_RANGE_LOW
Definition: constants.h:21
constexpr int16_t DEVICE_DISCONNECTED_RAW
Definition: constants.h:25
constexpr uint8_t READ_SCRATCHPAD
Definition: constants.h:17
constexpr int16_t OUTOFRANGE_TEMPERATURE
Definition: constants.h:20
constexpr int16_t TEMP_RANGE_HIGH
Definition: constants.h:22
constexpr int16_t DEVICE_DISCONNECTED_C
Definition: constants.h:24