ESPHome  2025.3.3
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
Public Member Functions | Data Fields
esphome::tormatic::MessageHeader Struct Reference

#include <tormatic_protocol.h>

Public Member Functions

 MessageHeader ()=default
 
 MessageHeader (MessageType type, uint16_t seq, uint32_t payload_size)
 
std::string print ()
 
void byteswap ()
 
uint32_t payload_size ()
 

Data Fields

uint16_t seq
 
uint32_t len
 
MessageType type
 

Detailed Description

Definition at line 70 of file tormatic_protocol.h.

Constructor & Destructor Documentation

◆ MessageHeader() [1/2]

esphome::tormatic::MessageHeader::MessageHeader ( )
default

◆ MessageHeader() [2/2]

esphome::tormatic::MessageHeader::MessageHeader ( MessageType  type,
uint16_t  seq,
uint32_t  payload_size 
)
inline

Definition at line 76 of file tormatic_protocol.h.

Member Function Documentation

◆ byteswap()

void esphome::tormatic::MessageHeader::byteswap ( )
inline

Definition at line 89 of file tormatic_protocol.h.

◆ payload_size()

uint32_t esphome::tormatic::MessageHeader::payload_size ( )
inline

Definition at line 97 of file tormatic_protocol.h.

◆ print()

std::string esphome::tormatic::MessageHeader::print ( )
inline

Definition at line 85 of file tormatic_protocol.h.

Field Documentation

◆ len

uint32_t esphome::tormatic::MessageHeader::len

Definition at line 72 of file tormatic_protocol.h.

◆ seq

uint16_t esphome::tormatic::MessageHeader::seq

Definition at line 71 of file tormatic_protocol.h.

◆ type

MessageType esphome::tormatic::MessageHeader::type

Definition at line 73 of file tormatic_protocol.h.


The documentation for this struct was generated from the following file: