ESPHome  2024.12.2
Public Member Functions | Static Protected Attributes
esphome::midea::IrFollowMeData Class Reference

#include <ir_transmitter.h>

Inheritance diagram for esphome::midea::IrFollowMeData:
esphome::remote_base::MideaData

Public Member Functions

 IrFollowMeData ()
 
 IrFollowMeData (const IrData &data)
 
 IrFollowMeData (uint8_t temp, bool beeper=false)
 
uint8_t temp () const
 
void set_temp (uint8_t val)
 
bool beeper () const
 
void set_beeper (bool val)
 
- 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 13 of file ir_transmitter.h.

Constructor & Destructor Documentation

◆ IrFollowMeData() [1/3]

esphome::midea::IrFollowMeData::IrFollowMeData ( )
inline

Definition at line 16 of file ir_transmitter.h.

◆ IrFollowMeData() [2/3]

esphome::midea::IrFollowMeData::IrFollowMeData ( const IrData data)
inline

Definition at line 18 of file ir_transmitter.h.

◆ IrFollowMeData() [3/3]

esphome::midea::IrFollowMeData::IrFollowMeData ( uint8_t  temp,
bool  beeper = false 
)
inline

Definition at line 20 of file ir_transmitter.h.

Member Function Documentation

◆ beeper()

bool esphome::midea::IrFollowMeData::beeper ( ) const
inline

Definition at line 30 of file ir_transmitter.h.

◆ set_beeper()

void esphome::midea::IrFollowMeData::set_beeper ( bool  val)
inline

Definition at line 31 of file ir_transmitter.h.

◆ set_temp()

void esphome::midea::IrFollowMeData::set_temp ( uint8_t  val)
inline

Definition at line 27 of file ir_transmitter.h.

◆ temp()

uint8_t esphome::midea::IrFollowMeData::temp ( ) const
inline

Definition at line 26 of file ir_transmitter.h.

Field Documentation

◆ MAX_TEMP

const uint8_t esphome::midea::IrFollowMeData::MAX_TEMP = 37
staticprotected

Definition at line 34 of file ir_transmitter.h.


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