Structure to hold Opentherm data packet content.
More...
#include <opentherm.h>
Structure to hold Opentherm data packet content.
Use f88(), u16() or s16() functions to get appropriate value of data packet accoridng to id of message.
Definition at line 144 of file opentherm.h.
◆ OpenthermData()
esphome::opentherm::OpenthermData::OpenthermData |
( |
| ) |
|
|
inline |
◆ f88() [1/2]
float esphome::opentherm::OpenthermData::f88 |
( |
| ) |
|
- Returns
- float representation of data packet value
Definition at line 543 of file opentherm.cpp.
◆ f88() [2/2]
void esphome::opentherm::OpenthermData::f88 |
( |
float |
value | ) |
|
- Parameters
-
float | number to set as value of this data packet |
Definition at line 545 of file opentherm.cpp.
◆ s16() [1/2]
int16_t esphome::opentherm::OpenthermData::s16 |
( |
| ) |
|
- Returns
- signed 16b integer representation of data packet value
Definition at line 557 of file opentherm.cpp.
◆ s16() [2/2]
void esphome::opentherm::OpenthermData::s16 |
( |
int16_t |
value | ) |
|
- Parameters
-
signed | 16b integer number to set as value of this data packet |
Definition at line 562 of file opentherm.cpp.
◆ u16() [1/2]
uint16_t esphome::opentherm::OpenthermData::u16 |
( |
| ) |
|
- Returns
- unsigned 16b integer representation of data packet value
Definition at line 547 of file opentherm.cpp.
◆ u16() [2/2]
void esphome::opentherm::OpenthermData::u16 |
( |
uint16_t |
value | ) |
|
- Parameters
-
unsigned | 16b integer number to set as value of this data packet |
Definition at line 552 of file opentherm.cpp.
◆ id
uint8_t esphome::opentherm::OpenthermData::id |
◆ type
uint8_t esphome::opentherm::OpenthermData::type |
◆ valueHB
uint8_t esphome::opentherm::OpenthermData::valueHB |
◆ valueLB
uint8_t esphome::opentherm::OpenthermData::valueLB |
The documentation for this struct was generated from the following files:
- /opt/build/esphome/esphome/components/opentherm/opentherm.h
- /opt/build/esphome/esphome/components/opentherm/opentherm.cpp