ESPHome  2024.11.0
Public Member Functions | Static Public Attributes
esphome::midea_ir::SpecialData Class Reference

#include <midea_data.h>

Inheritance diagram for esphome::midea_ir::SpecialData:
esphome::remote_base::MideaData

Public Member Functions

 SpecialData (uint8_t code)
 
- Public Member Functions inherited from esphome::remote_base::MideaData
 MideaData ()
 
 MideaData (std::initializer_list< uint8_t > data)
 
 MideaData (const std::vector< uint8_t > &data)
 
uint8_t * data ()
 
const uint8_t * data () const
 
uint8_t size () const
 
bool is_valid () const
 
void finalize ()
 
bool is_compliment (const MideaData &rhs) const
 
std::string to_string () const
 
bool operator== (const MideaData &rhs) const
 
MideaDataType type () const
 
template<typename T >
to () const
 
uint8_t & operator[] (size_t idx)
 
const uint8_t & operator[] (size_t idx) const
 

Static Public Attributes

static const uint8_t VSWING_STEP = 1
 
static const uint8_t VSWING_TOGGLE = 2
 
static const uint8_t TURBO_TOGGLE = 9
 

Additional Inherited Members

- Public Types inherited from esphome::remote_base::MideaData
enum  MideaDataType : uint8_t { MIDEA_TYPE_CONTROL = 0xA1, MIDEA_TYPE_SPECIAL = 0xA2, MIDEA_TYPE_FOLLOW_ME = 0xA4 }
 
- Protected Member Functions inherited from esphome::remote_base::MideaData
uint8_t get_value_ (uint8_t idx, uint8_t mask=255, uint8_t shift=0) const
 
void set_value_ (uint8_t idx, uint8_t value, uint8_t mask=255, uint8_t shift=0)
 
void set_mask_ (uint8_t idx, bool state, uint8_t mask=255)
 
uint8_t calc_cs_ () const
 
- Protected Attributes inherited from esphome::remote_base::MideaData
std::array< uint8_t, 6 > data_
 
- Static Protected Attributes inherited from esphome::remote_base::MideaData
static const uint8_t OFFSET_CS = 5
 

Detailed Description

Definition at line 83 of file midea_data.h.

Constructor & Destructor Documentation

◆ SpecialData()

esphome::midea_ir::SpecialData::SpecialData ( uint8_t  code)
inline

Definition at line 85 of file midea_data.h.

Field Documentation

◆ TURBO_TOGGLE

const uint8_t esphome::midea_ir::SpecialData::TURBO_TOGGLE = 9
static

Definition at line 88 of file midea_data.h.

◆ VSWING_STEP

const uint8_t esphome::midea_ir::SpecialData::VSWING_STEP = 1
static

Definition at line 86 of file midea_data.h.

◆ VSWING_TOGGLE

const uint8_t esphome::midea_ir::SpecialData::VSWING_TOGGLE = 2
static

Definition at line 87 of file midea_data.h.


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