ESPHome 2025.5.0
|
Go to the source code of this file.
Data Structures | |
struct | esphome::tormatic::MessageHeader |
struct | esphome::tormatic::StatusRequest |
struct | esphome::tormatic::StatusReply |
struct | esphome::tormatic::CommandRequestReply |
Namespaces | |
namespace | esphome |
Providing packet encoding functions for exchanging data with a remote host. | |
namespace | esphome::tormatic |
Enumerations | |
enum | esphome::tormatic::MessageType : uint16_t { esphome::tormatic::STATUS = 0x0104 , esphome::tormatic::COMMAND = 0x0106 } |
enum | esphome::tormatic::StatusType : uint16_t { esphome::tormatic::GATE = 0x0A , esphome::tormatic::UNKNOWN = 0x0B } |
enum | esphome::tormatic::GateStatus : uint8_t { esphome::tormatic::PAUSED , esphome::tormatic::CLOSED , esphome::tormatic::VENTILATING , esphome::tormatic::OPENED , esphome::tormatic::OPENING , esphome::tormatic::CLOSING } |
Functions | |
const char * | esphome::tormatic::message_type_to_str (MessageType t) |
struct esphome::tormatic::MessageHeader | esphome::tormatic::__attribute__ ((packed)) |
MessageHeader ()=default | |
MessageHeader (MessageType type, uint16_t seq, uint32_t payload_size) | |
std::string | print () |
void | byteswap () |
uint32_t | payload_size () |
CoverOperation | esphome::tormatic::gate_status_to_cover_operation (GateStatus s) |
const char * | esphome::tormatic::gate_status_to_str (GateStatus s) |
StatusRequest ()=default | |
StatusRequest (StatusType type) | |
template<typename T > | |
std::vector< uint8_t > | esphome::tormatic::serialize (T obj) |
CommandRequestReply ()=default | |
CommandRequestReply (GateStatus state) | |
Variables | |
uint16_t | seq |
uint32_t | len |
MessageType | type = GATE |
enum esphome::tormatic::StatusType | esphome::tormatic::__attribute__ |
uint16_t | trailer = 0x1 |
uint8_t | ack = 0x2 |
GateStatus | state |
uint8_t | pad = 0x0 |
void byteswap | ( | ) |
Definition at line 18 of file tormatic_protocol.h.
|
default |
__attribute__::CommandRequestReply | ( | GateStatus | state | ) |
Definition at line 11 of file tormatic_protocol.h.
|
default |
__attribute__::MessageHeader | ( | MessageType | type, |
uint16_t | seq, | ||
uint32_t | payload_size ) |
Definition at line 5 of file tormatic_protocol.h.
uint32_t __attribute__::payload_size | ( | ) |
Definition at line 26 of file tormatic_protocol.h.
std::string print | ( | ) |
Definition at line 14 of file tormatic_protocol.h.
|
default |
__attribute__::StatusRequest | ( | StatusType | type | ) |
Definition at line 4 of file tormatic_protocol.h.
uint8_t ack = 0x2 |
Definition at line 0 of file tormatic_protocol.h.
uint32_t len |
Definition at line 1 of file tormatic_protocol.h.
uint8_t pad = 0x0 |
Definition at line 2 of file tormatic_protocol.h.
uint16_t seq |
Definition at line 0 of file tormatic_protocol.h.
GateStatus state |
Definition at line 1 of file tormatic_protocol.h.
uint8_t trailer = 0x1 |
Definition at line 1 of file tormatic_protocol.h.
StatusType type = GATE |
Definition at line 2 of file tormatic_protocol.h.