ESPHome 2026.11.0b6
Loading...
Searching...
No Matches
esphome::gree::GreeProtocol Class Reference

#include <gree.h>

Public Member Functions

 GreeProtocol (Model model)
 
void encode (remote_base::RemoteTransmitData *data, const GreeState &state) const
 
optional< GreeState > decode (remote_base::RemoteReceiveData data) const
 

Static Public Member Functions

static uint8_t calculate_checksum (const GreeState &state)
 
static bool valid_checksum (const GreeState &state)
 

Protected Attributes

Model model_
 

Detailed Description

Definition at line 145 of file gree.h.

Constructor & Destructor Documentation

◆ GreeProtocol()

esphome::gree::GreeProtocol::GreeProtocol ( Model model)
inlineexplicit

Definition at line 147 of file gree.h.

Member Function Documentation

◆ calculate_checksum()

uint8_t esphome::gree::GreeProtocol::calculate_checksum ( const GreeState & state)
static

Definition at line 219 of file gree.cpp.

◆ decode()

optional< GreeState > esphome::gree::GreeProtocol::decode ( remote_base::RemoteReceiveData data) const

Definition at line 190 of file gree.cpp.

◆ encode()

void esphome::gree::GreeProtocol::encode ( remote_base::RemoteTransmitData * data,
const GreeState & state ) const

Definition at line 171 of file gree.cpp.

◆ valid_checksum()

bool esphome::gree::GreeProtocol::valid_checksum ( const GreeState & state)
static

Definition at line 229 of file gree.cpp.

Field Documentation

◆ model_

Model esphome::gree::GreeProtocol::model_
protected

Definition at line 160 of file gree.h.


The documentation for this class was generated from the following files: