ESPHome
2025.3.2
|
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 | |
esphome | |
Implementation of SPI Controller mode. | |
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 77 of file tormatic_protocol.h.
|
default |
__attribute__::CommandRequestReply | ( | GateStatus | state | ) |
Definition at line 192 of file tormatic_protocol.h.
|
default |
__attribute__::MessageHeader | ( | MessageType | type, |
uint16_t | seq, | ||
uint32_t | payload_size | ||
) |
Definition at line 64 of file tormatic_protocol.h.
uint32_t __attribute__::payload_size | ( | ) |
Definition at line 85 of file tormatic_protocol.h.
std::string print | ( | ) |
Definition at line 73 of file tormatic_protocol.h.
|
default |
__attribute__::StatusRequest | ( | StatusType | type | ) |
Definition at line 139 of file tormatic_protocol.h.
uint8_t ack = 0x2 |
Definition at line 135 of file tormatic_protocol.h.
uint32_t len |
Definition at line 60 of file tormatic_protocol.h.
uint8_t pad = 0x0 |
Definition at line 183 of file tormatic_protocol.h.
uint16_t seq |
Definition at line 59 of file tormatic_protocol.h.
GateStatus state |
Definition at line 136 of file tormatic_protocol.h.
uint8_t trailer = 0x1 |
Definition at line 136 of file tormatic_protocol.h.
StatusType type = GATE |
Definition at line 61 of file tormatic_protocol.h.