1-phase PV router
Loading...
Searching...
No Matches
constants.h File Reference

Some constants. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Variables

constexpr uint8_t CONVERT_TEMPERATURE { 0x44 }
 
constexpr int16_t DEVICE_DISCONNECTED_C { -127 }
 
constexpr int16_t DEVICE_DISCONNECTED_RAW { -7040 }
 
constexpr int16_t OUTOFRANGE_TEMPERATURE { 30200 }
 
constexpr uint8_t READ_SCRATCHPAD { 0xBE }
 
constexpr int16_t TEMP_RANGE_HIGH { 12500 }
 
constexpr int16_t TEMP_RANGE_LOW { -5500 }
 
constexpr uint8_t WRITE_SCRATCH { 0x4E }
 

Detailed Description

Some constants.

Author
Frédéric Metrich (frede.nosp@m.ric..nosp@m.metri.nosp@m.ch@l.nosp@m.ive.f.nosp@m.r)
Version
0.1
Date
2021-10-04

Definition in file constants.h.

Variable Documentation

◆ CONVERT_TEMPERATURE

uint8_t CONVERT_TEMPERATURE { 0x44 }
inlineconstexpr

Definition at line 16 of file constants.h.

Referenced by TemperatureSensing< N >::requestTemperatures().

◆ DEVICE_DISCONNECTED_C

int16_t DEVICE_DISCONNECTED_C { -127 }
inlineconstexpr

Definition at line 24 of file constants.h.

◆ DEVICE_DISCONNECTED_RAW

int16_t DEVICE_DISCONNECTED_RAW { -7040 }
inlineconstexpr

◆ OUTOFRANGE_TEMPERATURE

int16_t OUTOFRANGE_TEMPERATURE { 30200 }
inlineconstexpr

this value (302C) is sent if the sensor reports < -55C or > +125C

Definition at line 20 of file constants.h.

Referenced by printForJSON(), printForSerialText(), TemperatureSensing< N >::readTemperature(), and sendTelemetryData().

◆ READ_SCRATCHPAD

uint8_t READ_SCRATCHPAD { 0xBE }
inlineconstexpr

Definition at line 17 of file constants.h.

Referenced by TemperatureSensing< N >::readTemperature().

◆ TEMP_RANGE_HIGH

int16_t TEMP_RANGE_HIGH { 12500 }
inlineconstexpr

Definition at line 22 of file constants.h.

Referenced by TemperatureSensing< N >::readTemperature().

◆ TEMP_RANGE_LOW

int16_t TEMP_RANGE_LOW { -5500 }
inlineconstexpr

Definition at line 21 of file constants.h.

◆ WRITE_SCRATCH

uint8_t WRITE_SCRATCH { 0x4E }
inlineconstexpr

Definition at line 18 of file constants.h.