ESPHome  2024.4.0
Public Member Functions | Static Protected Attributes
esphome::midea_ir::FollowMeData Class Reference

#include <midea_data.h>

Inheritance diagram for esphome::midea_ir::FollowMeData:

Public Member Functions

 FollowMeData ()
 FollowMeData (const MideaData &data)
 FollowMeData (uint8_t temp, bool beeper=false)
uint8_t temp () const
void set_temp (uint8_t val)
bool beeper () const
void set_beeper (bool value)
- 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 Protected Attributes

static const uint8_t MAX_TEMP = 37
- Static Protected Attributes inherited from esphome::remote_base::MideaData
static const uint8_t OFFSET_CS = 5

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_

Detailed Description

Definition at line 59 of file midea_data.h.

Constructor & Destructor Documentation

◆ FollowMeData() [1/3]

esphome::midea_ir::FollowMeData::FollowMeData ( )

Definition at line 62 of file midea_data.h.

◆ FollowMeData() [2/3]

esphome::midea_ir::FollowMeData::FollowMeData ( const MideaData data)

Definition at line 64 of file midea_data.h.

◆ FollowMeData() [3/3]

esphome::midea_ir::FollowMeData::FollowMeData ( uint8_t  temp,
bool  beeper = false 

Definition at line 66 of file midea_data.h.

Member Function Documentation

◆ beeper()

bool esphome::midea_ir::FollowMeData::beeper ( ) const

Definition at line 76 of file midea_data.h.

◆ set_beeper()

void esphome::midea_ir::FollowMeData::set_beeper ( bool  value)

Definition at line 77 of file midea_data.h.

◆ set_temp()

void esphome::midea_ir::FollowMeData::set_temp ( uint8_t  val)

Definition at line 73 of file midea_data.h.

◆ temp()

uint8_t esphome::midea_ir::FollowMeData::temp ( ) const

Definition at line 72 of file midea_data.h.

Field Documentation


const uint8_t esphome::midea_ir::FollowMeData::MAX_TEMP = 37

Definition at line 80 of file midea_data.h.

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