IRremoteESP8266
ir_Mitsubishi.h
Go to the documentation of this file.
1 // Copyright 2009 Ken Shirriff
2 // Copyright 2017-2021 David Conran
3 // Copyright 2019 Mark Kuchel
4 
19 
20 // Supports:
21 // Brand: Mitsubishi, Model: TV (MITSUBISHI)
22 // Brand: Mitsubishi, Model: HC3000 Projector (MITSUBISHI2)
23 // Brand: Mitsubishi, Model: MS-GK24VA A/C
24 // Brand: Mitsubishi, Model: KM14A 0179213 remote
25 // Brand: Mitsubishi Electric, Model: PEAD-RP71JAA Ducted A/C (MITSUBISHI136)
26 // Brand: Mitsubishi Electric, Model: 001CP T7WE10714 remote (MITSUBISHI136)
27 // Brand: Mitsubishi Electric, Model: MSH-A24WV A/C (MITSUBISHI112)
28 // Brand: Mitsubishi Electric, Model: MUH-A24WV A/C (MITSUBISHI112)
29 // Brand: Mitsubishi Electric, Model: KPOA remote (MITSUBISHI112)
30 // Brand: Mitsubishi Electric, Model: MLZ-RX5017AS A/C (MITSUBISHI_AC)
31 // Brand: Mitsubishi Electric, Model: SG153/M21EDF426 remote (MITSUBISHI_AC)
32 // Brand: Mitsubishi Electric, Model: MSZ-GV2519 A/C (MITSUBISHI_AC)
33 // Brand: Mitsubishi Electric, Model: RH151/M21ED6426 remote (MITSUBISHI_AC)
34 // Brand: Mitsubishi Electric, Model: MSZ-SF25VE3 A/C (MITSUBISHI_AC)
35 // Brand: Mitsubishi Electric, Model: SG15D remote (MITSUBISHI_AC)
36 // Brand: Mitsubishi Electric, Model: MSZ-ZW4017S A/C (MITSUBISHI_AC)
37 
38 #ifndef IR_MITSUBISHI_H_
39 #define IR_MITSUBISHI_H_
40 
41 #define __STDC_LIMIT_MACROS
42 #include <stdint.h>
43 #ifndef UNIT_TEST
44 #include <Arduino.h>
45 #endif
46 #include "IRremoteESP8266.h"
47 #include "IRsend.h"
48 #ifdef UNIT_TEST
49 #include "IRsend_test.h"
50 #endif
51 
55  struct {
56  // Byte 0~4
57  uint8_t pad0[5];
58  // Byte 5
59  uint8_t :5;
60  uint8_t Power :1;
61  uint8_t :2;
62  // Byte 6
63  uint8_t :3;
64  uint8_t Mode :3;
65  uint8_t :2;
66  // Byte 7
67  uint8_t Temp :4;
68  uint8_t HalfDegree :1;
69  uint8_t :3;
70  // Byte 8
71  uint8_t :4;
72  uint8_t WideVane:4; // SwingH
73  // Byte 9
74  uint8_t Fan :3;
75  uint8_t Vane :3; // SwingV
76  uint8_t VaneBit :1;
77  uint8_t FanAuto :1;
78  // Byte 10
79  uint8_t Clock :8;
80  // Byte 11
81  uint8_t StopClock :8;
82  // Byte 12
83  uint8_t StartClock:8;
84  // Byte 13
85  uint8_t Timer :3;
86  uint8_t WeeklyTimer :1;
87  uint8_t :4;
88  // Byte 14
89  uint8_t :8;
90  // Byte 15
91  uint8_t :8;
92  // Byte 16
93  uint8_t :3;
94  uint8_t VaneLeft :3; // SwingV(Left)
95  uint8_t :2;
96  // Byte 17
97  uint8_t Sum :8;
98  };
99 };
100 
101 // Constants
102 const uint8_t kMitsubishiAcAuto = 0b100;
103 const uint8_t kMitsubishiAcCool = 0b011;
104 const uint8_t kMitsubishiAcDry = 0b010;
105 const uint8_t kMitsubishiAcHeat = 0b001;
106 const uint8_t kMitsubishiAcFan = 0b111;
107 const uint8_t kMitsubishiAcFanAuto = 0;
108 const uint8_t kMitsubishiAcFanMax = 5;
109 const uint8_t kMitsubishiAcFanRealMax = 4;
110 const uint8_t kMitsubishiAcFanSilent = 6;
112 const float kMitsubishiAcMinTemp = 16.0; // 16C
113 const float kMitsubishiAcMaxTemp = 31.0; // 31C
114 const uint8_t kMitsubishiAcVaneAuto = 0b000; // Vanes move when AC wants to.
115 const uint8_t kMitsubishiAcVaneHighest = 0b001;
116 const uint8_t kMitsubishiAcVaneHigh = 0b010;
117 const uint8_t kMitsubishiAcVaneMiddle = 0b011;
118 const uint8_t kMitsubishiAcVaneLow = 0b100;
119 const uint8_t kMitsubishiAcVaneLowest = 0b101;
120 const uint8_t kMitsubishiAcVaneSwing = 0b111; // Vanes move all the time.
121 const uint8_t kMitsubishiAcVaneAutoMove = kMitsubishiAcVaneSwing; // Deprecated
122 const uint8_t kMitsubishiAcWideVaneLeftMax = 0b0001; // 1
123 const uint8_t kMitsubishiAcWideVaneLeft = 0b0010; // 2
124 const uint8_t kMitsubishiAcWideVaneMiddle = 0b0011; // 3
125 const uint8_t kMitsubishiAcWideVaneRight = 0b0100; // 4
126 const uint8_t kMitsubishiAcWideVaneRightMax = 0b0101; // 5
127 const uint8_t kMitsubishiAcWideVaneWide = 0b0110; // 6
128 const uint8_t kMitsubishiAcWideVaneAuto = 0b1000; // 8
129 const uint8_t kMitsubishiAcNoTimer = 0;
130 const uint8_t kMitsubishiAcStartTimer = 5;
131 const uint8_t kMitsubishiAcStopTimer = 3;
132 const uint8_t kMitsubishiAcStartStopTimer = 7;
133 
137  struct {
138  // Byte 0~4
139  uint8_t pad[5];
140  // Byte 5
141  uint8_t :6;
142  uint8_t Power :1;
143  uint8_t :1;
144  // Byte 6
145  uint8_t Mode :3;
146  uint8_t :1;
147  uint8_t Temp :4;
148  // Byte 7
149  uint8_t :1;
150  uint8_t Fan :2;
151  uint8_t :1;
152  uint8_t SwingV :4;
153  };
154 };
155 
156 const uint8_t kMitsubishi136PowerByte = 5;
157 const uint8_t kMitsubishi136MinTemp = 17; // 17C
158 const uint8_t kMitsubishi136MaxTemp = 30; // 30C
159 const uint8_t kMitsubishi136Fan = 0b000;
160 const uint8_t kMitsubishi136Cool = 0b001;
161 const uint8_t kMitsubishi136Heat = 0b010;
162 const uint8_t kMitsubishi136Auto = 0b011;
163 const uint8_t kMitsubishi136Dry = 0b101;
164 const uint8_t kMitsubishi136SwingVLowest = 0b0000;
165 const uint8_t kMitsubishi136SwingVLow = 0b0001;
166 const uint8_t kMitsubishi136SwingVHigh = 0b0010;
167 const uint8_t kMitsubishi136SwingVHighest = 0b0011;
168 const uint8_t kMitsubishi136SwingVAuto = 0b1100;
169 const uint8_t kMitsubishi136FanMin = 0b00;
170 const uint8_t kMitsubishi136FanLow = 0b01;
171 const uint8_t kMitsubishi136FanMed = 0b10;
172 const uint8_t kMitsubishi136FanMax = 0b11;
174 
178  struct {
179  // Byte 0~4
180  uint8_t pad0[5];
181  // Byte 5
182  uint8_t :2;
183  uint8_t Power :1;
184  uint8_t :5;
185  // Byte 6
186  uint8_t Mode :3;
187  uint8_t :5;
188  // Byte 7
189  uint8_t Temp :4;
190  uint8_t :4;
191  // Byte 8
192  uint8_t Fan :3;
193  uint8_t SwingV :3;
194  uint8_t :2;
195  // Byte 9~11
196  uint8_t pad1[3];
197  // Byte 12
198  uint8_t :2;
199  uint8_t SwingH :4;
200  uint8_t :2;
201  // Byte 13
202  uint8_t Sum :8;
203  };
204 };
205 
206 const uint8_t kMitsubishi112Cool = 0b011;
207 const uint8_t kMitsubishi112Heat = 0b001;
208 const uint8_t kMitsubishi112Auto = 0b111;
209 const uint8_t kMitsubishi112Dry = 0b010;
210 
211 const uint8_t kMitsubishi112MinTemp = 16; // 16C
212 const uint8_t kMitsubishi112MaxTemp = 31; // 31C
213 
214 const uint8_t kMitsubishi112FanMin = 0b010;
215 const uint8_t kMitsubishi112FanLow = 0b011;
216 const uint8_t kMitsubishi112FanMed = 0b101;
217 const uint8_t kMitsubishi112FanMax = 0b000;
219 const uint8_t kMitsubishi112SwingVLowest = 0b101;
220 const uint8_t kMitsubishi112SwingVLow = 0b100;
221 const uint8_t kMitsubishi112SwingVMiddle = 0b011;
222 const uint8_t kMitsubishi112SwingVHigh = 0b010;
223 const uint8_t kMitsubishi112SwingVHighest = 0b001;
224 const uint8_t kMitsubishi112SwingVAuto = 0b111;
225 
226 const uint8_t kMitsubishi112SwingHLeftMax = 0b0001;
227 const uint8_t kMitsubishi112SwingHLeft = 0b0010;
228 const uint8_t kMitsubishi112SwingHMiddle = 0b0011;
229 const uint8_t kMitsubishi112SwingHRight = 0b0100;
230 const uint8_t kMitsubishi112SwingHRightMax = 0b0101;
231 const uint8_t kMitsubishi112SwingHWide = 0b1000;
232 const uint8_t kMitsubishi112SwingHAuto = 0b1100;
233 
234 // Legacy defines (Deprecated)
235 #define MITSUBISHI_AC_VANE_AUTO_MOVE kMitsubishiAcVaneAutoMove
236 #define MITSUBISHI_AC_VANE_AUTO kMitsubishiAcVaneAuto
237 #define MITSUBISHI_AC_MIN_TEMP kMitsubishiAcMinTemp
238 #define MITSUBISHI_AC_MAX_TEMP kMitsubishiAcMaxTemp
239 #define MITSUBISHI_AC_HEAT kMitsubishiAcHeat
240 #define MITSUBISHI_AC_FAN_SILENT kMitsubishiAcFanSilent
241 #define MITSUBISHI_AC_FAN_REAL_MAX kMitsubishiAcFanRealMax
242 #define MITSUBISHI_AC_FAN_MAX kMitsubishiAcFanMax
243 #define MITSUBISHI_AC_FAN_AUTO kMitsubishiAcFanAuto
244 #define MITSUBISHI_AC_DRY kMitsubishiAcDry
245 #define MITSUBISHI_AC_COOL kMitsubishiAcCool
246 #define MITSUBISHI_AC_AUTO kMitsubishiAcAuto
247 
248 
253  public:
254  explicit IRMitsubishiAC(const uint16_t pin, const bool inverted = false,
255  const bool use_modulation = true);
256  void stateReset(void);
257  static bool validChecksum(const uint8_t* data);
258 #if SEND_MITSUBISHI_AC
259  void send(const uint16_t repeat = kMitsubishiACMinRepeat);
264  int8_t calibrate(void) { return _irsend.calibrate(); }
265 #endif // SEND_MITSUBISHI_AC
266  void begin(void);
267  void on(void);
268  void off(void);
269  void setPower(const bool on);
270  bool getPower(void) const;
271  void setTemp(const float degrees);
272  float getTemp(void) const;
273  void setFan(const uint8_t speed);
274  uint8_t getFan(void) const;
275  void setMode(const uint8_t mode);
276  uint8_t getMode(void) const;
277  void setVane(const uint8_t position);
278  void setWideVane(const uint8_t position);
279  uint8_t getVane(void) const;
280  uint8_t getWideVane(void) const;
281  void setVaneLeft(const uint8_t position);
282  uint8_t getVaneLeft(void) const;
283  uint8_t* getRaw(void);
284  void setRaw(const uint8_t* data);
285  uint8_t getClock(void) const;
286  void setClock(const uint8_t clock);
287  uint8_t getStartClock(void) const;
288  void setStartClock(const uint8_t clock);
289  uint8_t getStopClock(void) const;
290  void setStopClock(const uint8_t clock);
291  uint8_t getTimer(void) const;
292  void setTimer(const uint8_t timer);
293  bool getWeeklyTimerEnabled(void) const;
294  void setWeeklyTimerEnabled(const bool on);
295  static uint8_t convertMode(const stdAc::opmode_t mode);
296  static uint8_t convertFan(const stdAc::fanspeed_t speed);
297  static uint8_t convertSwingV(const stdAc::swingv_t position);
298  static uint8_t convertSwingH(const stdAc::swingh_t position);
299  static stdAc::opmode_t toCommonMode(const uint8_t mode);
300  static stdAc::fanspeed_t toCommonFanSpeed(const uint8_t speed);
301  static stdAc::swingv_t toCommonSwingV(const uint8_t pos);
302  static stdAc::swingh_t toCommonSwingH(const uint8_t pos);
303  stdAc::state_t toCommon(void) const;
304  String toString(void) const;
305 #ifndef UNIT_TEST
306 
307  private:
309 #else // UNIT_TEST
310  IRsendTest _irsend;
312 #endif // UNIT_TEST
315  void checksum(void);
316  static uint8_t calculateChecksum(const uint8_t* data);
317 };
318 
321  public:
322  explicit IRMitsubishi136(const uint16_t pin, const bool inverted = false,
323  const bool use_modulation = true);
324  void stateReset(void);
325 #if SEND_MITSUBISHI136
326  void send(const uint16_t repeat = kMitsubishi136MinRepeat);
331  int8_t calibrate(void) { return _irsend.calibrate(); }
332 #endif // SEND_MITSUBISHI136
333  void begin(void);
334  static bool validChecksum(const uint8_t* data,
335  const uint16_t len = kMitsubishi136StateLength);
336  void on(void);
337  void off(void);
338  void setPower(const bool on);
339  bool getPower(void) const;
340  void setTemp(const uint8_t degrees);
341  uint8_t getTemp(void) const;
342  void setFan(const uint8_t speed);
343  uint8_t getFan(void) const;
344  void setMode(const uint8_t mode);
345  uint8_t getMode(void) const;
346  void setSwingV(const uint8_t position);
347  uint8_t getSwingV(void) const;
348  void setQuiet(const bool on);
349  bool getQuiet(void) const;
350  uint8_t* getRaw(void);
351  void setRaw(const uint8_t* data);
352  static uint8_t convertMode(const stdAc::opmode_t mode);
353  static uint8_t convertFan(const stdAc::fanspeed_t speed);
354  static uint8_t convertSwingV(const stdAc::swingv_t position);
355  static stdAc::opmode_t toCommonMode(const uint8_t mode);
356  static stdAc::fanspeed_t toCommonFanSpeed(const uint8_t speed);
357  static stdAc::swingv_t toCommonSwingV(const uint8_t pos);
358  stdAc::state_t toCommon(void) const;
359  String toString(void) const;
360 #ifndef UNIT_TEST
361 
362  private:
364 #else // UNIT_TEST
365  IRsendTest _irsend;
367 #endif // UNIT_TEST
370  void checksum(void);
371 };
372 
375  public:
376  explicit IRMitsubishi112(const uint16_t pin, const bool inverted = false,
377  const bool use_modulation = true);
378  void stateReset(void);
379 #if SEND_MITSUBISHI112
380  void send(const uint16_t repeat = kMitsubishi112MinRepeat);
385  int8_t calibrate(void) { return _irsend.calibrate(); }
386 #endif // SEND_MITSUBISHI112
387  void begin(void);
388  void on(void);
389  void off(void);
390  void setPower(const bool on);
391  bool getPower(void) const;
392  void setTemp(const uint8_t degrees);
393  uint8_t getTemp(void) const;
394  void setFan(const uint8_t speed);
395  uint8_t getFan(void) const;
396  void setMode(const uint8_t mode);
397  uint8_t getMode(void) const;
398  void setSwingV(const uint8_t position);
399  uint8_t getSwingV(void) const;
400  void setSwingH(const uint8_t position);
401  uint8_t getSwingH(void) const;
402  void setQuiet(const bool on);
403  bool getQuiet(void) const;
404  uint8_t* getRaw(void);
405  void setRaw(const uint8_t* data);
406  static uint8_t convertMode(const stdAc::opmode_t mode);
407  static uint8_t convertFan(const stdAc::fanspeed_t speed);
408  static uint8_t convertSwingV(const stdAc::swingv_t position);
409  static uint8_t convertSwingH(const stdAc::swingh_t position);
410  static stdAc::opmode_t toCommonMode(const uint8_t mode);
411  static stdAc::fanspeed_t toCommonFanSpeed(const uint8_t speed);
412  static stdAc::swingv_t toCommonSwingV(const uint8_t pos);
413  static stdAc::swingh_t toCommonSwingH(const uint8_t pos);
414  stdAc::state_t toCommon(void) const;
415  String toString(void) const;
416 #ifndef UNIT_TEST
417 
418  private:
420 #else // UNIT_TEST
421  IRsendTest _irsend;
423 #endif // UNIT_TEST
426  void checksum(void);
427 };
428 
429 #endif // IR_MITSUBISHI_H_
kMitsubishi112SwingVMiddle
const uint8_t kMitsubishi112SwingVMiddle
Definition: ir_Mitsubishi.h:221
Mitsubishi144Protocol::VaneLeft
uint8_t VaneLeft
Definition: ir_Mitsubishi.h:94
Mitsubishi112Protocol::SwingV
uint8_t SwingV
Definition: ir_Mitsubishi.h:193
IRMitsubishi112::setMode
void setMode(const uint8_t mode)
Set the operating mode of the A/C.
Definition: ir_Mitsubishi.cpp:1363
kMitsubishi112SwingVLowest
const uint8_t kMitsubishi112SwingVLowest
Definition: ir_Mitsubishi.h:219
kMitsubishi112SwingVAuto
const uint8_t kMitsubishi112SwingVAuto
Definition: ir_Mitsubishi.h:224
Mitsubishi112Protocol::pad1
uint8_t pad1[3]
Definition: ir_Mitsubishi.h:196
kMitsubishi112FanQuiet
const uint8_t kMitsubishi112FanQuiet
Definition: ir_Mitsubishi.h:218
Mitsubishi144Protocol::Timer
uint8_t Timer
Definition: ir_Mitsubishi.h:85
IRMitsubishi112::stateReset
void stateReset(void)
Reset the state of the remote to a known good state/sequence.
Definition: ir_Mitsubishi.cpp:1266
kMitsubishi112SwingHLeft
const uint8_t kMitsubishi112SwingHLeft
Definition: ir_Mitsubishi.h:227
IRMitsubishi112::getQuiet
bool getQuiet(void) const
Get the Quiet mode of the A/C.
Definition: ir_Mitsubishi.cpp:1441
IRMitsubishiAC::getVane
uint8_t getVane(void) const
Get the Vane (Vertical Swing) mode of the A/C.
Definition: ir_Mitsubishi.cpp:475
Mitsubishi144Protocol::StartClock
uint8_t StartClock
Definition: ir_Mitsubishi.h:83
kMitsubishi112FanMed
const uint8_t kMitsubishi112FanMed
Definition: ir_Mitsubishi.h:216
kMitsubishiACStateLength
const uint16_t kMitsubishiACStateLength
Definition: IRremoteESP8266.h:1121
Mitsubishi112Protocol::Fan
uint8_t Fan
Definition: ir_Mitsubishi.h:192
kMitsubishiAcHeat
const uint8_t kMitsubishiAcHeat
Definition: ir_Mitsubishi.h:105
kMitsubishiAcMinTemp
const float kMitsubishiAcMinTemp
Definition: ir_Mitsubishi.h:112
kMitsubishiAcAuto
const uint8_t kMitsubishiAcAuto
Definition: ir_Mitsubishi.h:102
IRMitsubishi136::_
Mitsubishi136Protocol _
Definition: ir_Mitsubishi.h:369
IRMitsubishi136::toString
String toString(void) const
Convert the internal state into a human readable string.
Definition: ir_Mitsubishi.cpp:1119
IRMitsubishi112::begin
void begin(void)
Set up hardware to be able to send a message.
Definition: ir_Mitsubishi.cpp:1279
IRMitsubishi136::getTemp
uint8_t getTemp(void) const
Get the current temperature setting.
Definition: ir_Mitsubishi.cpp:936
IRMitsubishi112::getFan
uint8_t getFan(void) const
Get the current fan speed setting.
Definition: ir_Mitsubishi.cpp:1351
kMitsubishi112SwingHRight
const uint8_t kMitsubishi112SwingHRight
Definition: ir_Mitsubishi.h:229
kMitsubishiAcFanSilent
const uint8_t kMitsubishiAcFanSilent
Definition: ir_Mitsubishi.h:110
IRMitsubishi112::calibrate
int8_t calibrate(void)
Run the calibration to calculate uSec timing offsets for this platform.
Definition: ir_Mitsubishi.h:385
Mitsubishi112Protocol::SwingH
uint8_t SwingH
Definition: ir_Mitsubishi.h:199
kMitsubishiAcVaneAuto
const uint8_t kMitsubishiAcVaneAuto
Definition: ir_Mitsubishi.h:114
kMitsubishi112SwingHRightMax
const uint8_t kMitsubishi112SwingHRightMax
Definition: ir_Mitsubishi.h:230
IRMitsubishi136::stateReset
void stateReset(void)
Reset the state of the remote to a known good state/sequence.
Definition: ir_Mitsubishi.cpp:852
IRMitsubishiAC::getClock
uint8_t getClock(void) const
Get the clock time of the A/C unit.
Definition: ir_Mitsubishi.cpp:498
IRMitsubishi136::begin
void begin(void)
Set up hardware to be able to send a message.
Definition: ir_Mitsubishi.cpp:885
IRMitsubishi112::toCommon
stdAc::state_t toCommon(void) const
Convert the current internal state into its stdAc::state_t equivalent.
Definition: ir_Mitsubishi.cpp:1558
kMitsubishi136MinRepeat
const uint16_t kMitsubishi136MinRepeat
Definition: IRremoteESP8266.h:1126
stdAc::swingv_t
swingv_t
Common A/C settings for Vertical Swing.
Definition: IRsend.h:70
IRMitsubishi112::getTemp
uint8_t getTemp(void) const
Get the current temperature setting.
Definition: ir_Mitsubishi.cpp:1330
kMitsubishiAcVaneHighest
const uint8_t kMitsubishiAcVaneHighest
Definition: ir_Mitsubishi.h:115
kMitsubishiAcWideVaneRightMax
const uint8_t kMitsubishiAcWideVaneRightMax
Definition: ir_Mitsubishi.h:126
kMitsubishiAcWideVaneRight
const uint8_t kMitsubishiAcWideVaneRight
Definition: ir_Mitsubishi.h:125
IRMitsubishiAC::stateReset
void stateReset(void)
Reset the state of the remote to a known good state/sequence.
Definition: ir_Mitsubishi.cpp:320
IRMitsubishiAC::setVane
void setVane(const uint8_t position)
Set the requested vane (Vertical Swing) operation mode of the a/c unit.
Definition: ir_Mitsubishi.cpp:460
kMitsubishi136FanMed
const uint8_t kMitsubishi136FanMed
Definition: ir_Mitsubishi.h:171
Mitsubishi136Protocol::raw
uint8_t raw[kMitsubishi136StateLength]
The state in code form.
Definition: ir_Mitsubishi.h:136
kMitsubishi136PowerByte
const uint8_t kMitsubishi136PowerByte
Definition: ir_Mitsubishi.h:156
IRMitsubishi112::getSwingH
uint8_t getSwingH(void) const
Get the Horizontal Swing mode of the A/C.
Definition: ir_Mitsubishi.cpp:1424
stdAc::fanspeed_t
fanspeed_t
Common A/C settings for Fan Speeds.
Definition: IRsend.h:58
IRMitsubishiAC::setStopClock
void setStopClock(const uint8_t clock)
Set the desired stop time of the A/C unit.
Definition: ir_Mitsubishi.cpp:527
kMitsubishi136MaxTemp
const uint8_t kMitsubishi136MaxTemp
Definition: ir_Mitsubishi.h:158
IRMitsubishiAC::getTemp
float getTemp(void) const
Get the current temperature setting.
Definition: ir_Mitsubishi.cpp:407
Mitsubishi112Protocol::Temp
uint8_t Temp
Definition: ir_Mitsubishi.h:189
IRMitsubishi136::convertMode
static uint8_t convertMode(const stdAc::opmode_t mode)
Convert a stdAc::opmode_t enum into its native mode.
Definition: ir_Mitsubishi.cpp:1015
IRMitsubishiAC::setRaw
void setRaw(const uint8_t *data)
Set the internal state from a valid code for this protocol.
Definition: ir_Mitsubishi.cpp:349
IRMitsubishi136::setFan
void setFan(const uint8_t speed)
Set the speed of the fan.
Definition: ir_Mitsubishi.cpp:942
IRMitsubishiAC::getPower
bool getPower(void) const
Get the value of the current power setting.
Definition: ir_Mitsubishi.cpp:386
kMitsubishi112MinRepeat
const uint16_t kMitsubishi112MinRepeat
Definition: IRremoteESP8266.h:1129
IRMitsubishi112::setRaw
void setRaw(const uint8_t *data)
Set the internal state from a valid code for this protocol.
Definition: ir_Mitsubishi.cpp:1298
IRMitsubishiAC::setTemp
void setTemp(const float degrees)
Set the temperature.
Definition: ir_Mitsubishi.cpp:393
IRMitsubishiAC::setStartClock
void setStartClock(const uint8_t clock)
Set the desired start time of the A/C unit.
Definition: ir_Mitsubishi.cpp:515
kMitsubishi112FanLow
const uint8_t kMitsubishi112FanLow
Definition: ir_Mitsubishi.h:215
IRMitsubishi112::toCommonFanSpeed
static stdAc::fanspeed_t toCommonFanSpeed(const uint8_t speed)
Convert a native fan speed into its stdAc equivalent.
Definition: ir_Mitsubishi.cpp:1517
IRMitsubishiAC::checksum
void checksum(void)
Calculate and set the checksum values for the internal state.
Definition: ir_Mitsubishi.cpp:354
IRMitsubishi136::getFan
uint8_t getFan(void) const
Get the current fan speed setting.
Definition: ir_Mitsubishi.cpp:948
kMitsubishi112Heat
const uint8_t kMitsubishi112Heat
Definition: ir_Mitsubishi.h:207
kMitsubishi112SwingHLeftMax
const uint8_t kMitsubishi112SwingHLeftMax
Definition: ir_Mitsubishi.h:226
IRMitsubishiAC::validChecksum
static bool validChecksum(const uint8_t *data)
Verify the checksum is valid for a given state.
Definition: ir_Mitsubishi.cpp:361
IRMitsubishi136::calibrate
int8_t calibrate(void)
Run the calibration to calculate uSec timing offsets for this platform.
Definition: ir_Mitsubishi.h:331
kMitsubishi112Cool
const uint8_t kMitsubishi112Cool
Definition: ir_Mitsubishi.h:206
IRMitsubishi136::setQuiet
void setQuiet(const bool on)
Set the Quiet mode of the A/C.
Definition: ir_Mitsubishi.cpp:1000
IRsend.h
IRMitsubishi112::getPower
bool getPower(void) const
Get the value of the current power setting.
Definition: ir_Mitsubishi.cpp:1316
Mitsubishi144Protocol::StopClock
uint8_t StopClock
Definition: ir_Mitsubishi.h:81
kMitsubishiAcNoTimer
const uint8_t kMitsubishiAcNoTimer
Definition: ir_Mitsubishi.h:129
IRMitsubishiAC::getVaneLeft
uint8_t getVaneLeft(void) const
Get the Left Vane (Vertical Swing) mode of the A/C.
Definition: ir_Mitsubishi.cpp:493
IRMitsubishi112::send
void send(const uint16_t repeat=kMitsubishi112MinRepeat)
Send the current internal state as an IR message.
Definition: ir_Mitsubishi.cpp:1284
IRMitsubishi112::getSwingV
uint8_t getSwingV(void) const
Get the Vertical Swing mode of the A/C.
Definition: ir_Mitsubishi.cpp:1398
IRMitsubishiAC::setPower
void setPower(const bool on)
Change the power setting.
Definition: ir_Mitsubishi.cpp:380
IRMitsubishi112::toCommonMode
static stdAc::opmode_t toCommonMode(const uint8_t mode)
Convert a native mode into its stdAc equivalent.
Definition: ir_Mitsubishi.cpp:1505
IRMitsubishiAC::calculateChecksum
static uint8_t calculateChecksum(const uint8_t *data)
Calculate the checksum for a given state.
Definition: ir_Mitsubishi.cpp:368
IRsend
Class for sending all basic IR protocols.
Definition: IRsend.h:208
Mitsubishi144Protocol::Temp
uint8_t Temp
Definition: ir_Mitsubishi.h:67
kMitsubishiAcVaneLowest
const uint8_t kMitsubishiAcVaneLowest
Definition: ir_Mitsubishi.h:119
IRsend::calibrate
int8_t calibrate(uint16_t hz=38000U)
Calculate & set any offsets to account for execution times during sending.
Definition: IRsend.cpp:207
kMitsubishi136Cool
const uint8_t kMitsubishi136Cool
Definition: ir_Mitsubishi.h:160
kMitsubishi136Dry
const uint8_t kMitsubishi136Dry
Definition: ir_Mitsubishi.h:163
IRMitsubishi112::IRMitsubishi112
IRMitsubishi112(const uint16_t pin, const bool inverted=false, const bool use_modulation=true)
Class constructor.
Definition: ir_Mitsubishi.cpp:1261
IRMitsubishiAC::setClock
void setClock(const uint8_t clock)
Set the clock time on the A/C unit.
Definition: ir_Mitsubishi.cpp:503
IRMitsubishiAC::getWeeklyTimerEnabled
bool getWeeklyTimerEnabled(void) const
Get the value of the WeeklyTimer Enabled setting.
Definition: ir_Mitsubishi.cpp:717
Mitsubishi112Protocol::Sum
uint8_t Sum
Definition: ir_Mitsubishi.h:202
IRMitsubishiAC::getMode
uint8_t getMode(void) const
Get the operating mode setting of the A/C.
Definition: ir_Mitsubishi.cpp:435
String
std::string String
Definition: IRremoteESP8266.h:1309
IRMitsubishiAC
Class for handling detailed Mitsubishi 144-bit A/C messages.
Definition: ir_Mitsubishi.h:252
IRMitsubishiAC::toCommon
stdAc::state_t toCommon(void) const
Convert the current internal state into its stdAc::state_t equivalent.
Definition: ir_Mitsubishi.cpp:685
Mitsubishi144Protocol::Vane
uint8_t Vane
Definition: ir_Mitsubishi.h:75
kMitsubishiAcVaneHigh
const uint8_t kMitsubishiAcVaneHigh
Definition: ir_Mitsubishi.h:116
IRMitsubishi112::toString
String toString(void) const
Convert the internal state into a human readable string.
Definition: ir_Mitsubishi.cpp:1586
IRMitsubishiAC::convertSwingV
static uint8_t convertSwingV(const stdAc::swingv_t position)
Convert a stdAc::swingv_t enum into it's native setting.
Definition: ir_Mitsubishi.cpp:582
IRMitsubishiAC::toCommonFanSpeed
static stdAc::fanspeed_t toCommonFanSpeed(const uint8_t speed)
Convert a native fan speed into its stdAc equivalent.
Definition: ir_Mitsubishi.cpp:633
IRMitsubishi112
Class for handling detailed Mitsubishi 122-bit A/C messages.
Definition: ir_Mitsubishi.h:374
Mitsubishi136Protocol::Temp
uint8_t Temp
Definition: ir_Mitsubishi.h:147
IRMitsubishiAC::setFan
void setFan(const uint8_t speed)
Set the speed of the fan.
Definition: ir_Mitsubishi.cpp:413
kMitsubishi112SwingVLow
const uint8_t kMitsubishi112SwingVLow
Definition: ir_Mitsubishi.h:220
IRMitsubishiAC::convertSwingH
static uint8_t convertSwingH(const stdAc::swingh_t position)
Convert a stdAc::swingh_t enum into it's native setting.
Definition: ir_Mitsubishi.cpp:604
IRMitsubishi112::setTemp
void setTemp(const uint8_t degrees)
Set the temperature.
Definition: ir_Mitsubishi.cpp:1322
kMitsubishi112SwingHAuto
const uint8_t kMitsubishi112SwingHAuto
Definition: ir_Mitsubishi.h:232
kMitsubishi112MinTemp
const uint8_t kMitsubishi112MinTemp
Definition: ir_Mitsubishi.h:211
IRMitsubishi136
Class for handling detailed Mitsubishi 136-bit A/C messages.
Definition: ir_Mitsubishi.h:320
Mitsubishi144Protocol::Clock
uint8_t Clock
Definition: ir_Mitsubishi.h:79
IRMitsubishi112::setPower
void setPower(const bool on)
Change the power setting.
Definition: ir_Mitsubishi.cpp:1310
IRMitsubishi112::checksum
void checksum(void)
Calculate the checksum for the current internal state of the remote.
Definition: ir_Mitsubishi.cpp:1274
IRremoteESP8266.h
stdAc::swingh_t
swingh_t
Common A/C settings for Horizontal Swing.
Definition: IRsend.h:83
IRMitsubishiAC::convertMode
static uint8_t convertMode(const stdAc::opmode_t mode)
Convert a stdAc::opmode_t enum into its native mode.
Definition: ir_Mitsubishi.cpp:552
kMitsubishiAcStopTimer
const uint8_t kMitsubishiAcStopTimer
Definition: ir_Mitsubishi.h:131
kMitsubishiAcFanMax
const uint8_t kMitsubishiAcFanMax
Definition: ir_Mitsubishi.h:108
Mitsubishi136Protocol::Mode
uint8_t Mode
Definition: ir_Mitsubishi.h:145
IRMitsubishiAC::getFan
uint8_t getFan(void) const
Get the current fan speed setting.
Definition: ir_Mitsubishi.cpp:427
kMitsubishi112SwingVHighest
const uint8_t kMitsubishi112SwingVHighest
Definition: ir_Mitsubishi.h:223
IRMitsubishiAC::toCommonSwingH
static stdAc::swingh_t toCommonSwingH(const uint8_t pos)
Convert a native horizontal swing postion to it's common equivalent.
Definition: ir_Mitsubishi.cpp:671
kMitsubishi136FanLow
const uint8_t kMitsubishi136FanLow
Definition: ir_Mitsubishi.h:170
kMitsubishiACMinRepeat
const uint16_t kMitsubishiACMinRepeat
Definition: IRremoteESP8266.h:1123
kMitsubishi136MinTemp
const uint8_t kMitsubishi136MinTemp
Definition: ir_Mitsubishi.h:157
Mitsubishi144Protocol::Power
uint8_t Power
Definition: ir_Mitsubishi.h:60
IRMitsubishi136::toCommonSwingV
static stdAc::swingv_t toCommonSwingV(const uint8_t pos)
Convert a native vertical swing postion to it's common equivalent.
Definition: ir_Mitsubishi.cpp:1081
IRMitsubishi136::IRMitsubishi136
IRMitsubishi136(const uint16_t pin, const bool inverted=false, const bool use_modulation=true)
Class constructor.
Definition: ir_Mitsubishi.cpp:847
Mitsubishi112Protocol::pad0
uint8_t pad0[5]
Definition: ir_Mitsubishi.h:180
IRMitsubishiAC::_irsend
IRsend _irsend
Instance of the IR send class.
Definition: ir_Mitsubishi.h:308
kMitsubishi136Auto
const uint8_t kMitsubishi136Auto
Definition: ir_Mitsubishi.h:162
IRMitsubishiAC::_
Mitsubishi144Protocol _
Definition: ir_Mitsubishi.h:314
kMitsubishi136FanMax
const uint8_t kMitsubishi136FanMax
Definition: ir_Mitsubishi.h:172
IRMitsubishiAC::getRaw
uint8_t * getRaw(void)
Get a PTR to the internal state/code for this protocol.
Definition: ir_Mitsubishi.cpp:342
kMitsubishiAcFanAuto
const uint8_t kMitsubishiAcFanAuto
Definition: ir_Mitsubishi.h:107
IRMitsubishiAC::setWeeklyTimerEnabled
void setWeeklyTimerEnabled(const bool on)
Change the Weekly Timer Enabled setting.
Definition: ir_Mitsubishi.cpp:711
IRMitsubishiAC::getStopClock
uint8_t getStopClock(void) const
Get the desired stop time of the A/C unit.
Definition: ir_Mitsubishi.cpp:522
IRMitsubishiAC::on
void on(void)
Set the requested power state of the A/C to on.
Definition: ir_Mitsubishi.cpp:373
Mitsubishi136Protocol::Fan
uint8_t Fan
Definition: ir_Mitsubishi.h:150
kMitsubishiAcFanQuiet
const uint8_t kMitsubishiAcFanQuiet
Definition: ir_Mitsubishi.h:111
IRMitsubishi112::convertFan
static uint8_t convertFan(const stdAc::fanspeed_t speed)
Convert a stdAc::fanspeed_t enum into it's native speed.
Definition: ir_Mitsubishi.cpp:1461
IRMitsubishi112::convertMode
static uint8_t convertMode(const stdAc::opmode_t mode)
Convert a stdAc::opmode_t enum into its native mode.
Definition: ir_Mitsubishi.cpp:1448
Mitsubishi144Protocol::raw
uint8_t raw[kMitsubishiACStateLength]
The state in code form.
Definition: ir_Mitsubishi.h:54
kMitsubishiAcWideVaneAuto
const uint8_t kMitsubishiAcWideVaneAuto
Definition: ir_Mitsubishi.h:128
IRMitsubishi136::send
void send(const uint16_t repeat=kMitsubishi136MinRepeat)
Send the current internal state as an IR message.
Definition: ir_Mitsubishi.cpp:890
kMitsubishi136Fan
const uint8_t kMitsubishi136Fan
Definition: ir_Mitsubishi.h:159
IRMitsubishi112::setFan
void setFan(const uint8_t speed)
Set the speed of the fan.
Definition: ir_Mitsubishi.cpp:1336
Mitsubishi136Protocol::Power
uint8_t Power
Definition: ir_Mitsubishi.h:142
IRMitsubishiAC::calibrate
int8_t calibrate(void)
Run the calibration to calculate uSec timing offsets for this platform.
Definition: ir_Mitsubishi.h:264
IRMitsubishi112::off
void off(void)
Set the requested power state of the A/C to off.
Definition: ir_Mitsubishi.cpp:1306
IRMitsubishiAC::setMode
void setMode(const uint8_t mode)
Set the operating mode of the A/C.
Definition: ir_Mitsubishi.cpp:441
Mitsubishi144Protocol::FanAuto
uint8_t FanAuto
Definition: ir_Mitsubishi.h:77
IRMitsubishi112::getRaw
uint8_t * getRaw(void)
Get a PTR to the internal state/code for this protocol.
Definition: ir_Mitsubishi.cpp:1291
IRMitsubishi112::convertSwingH
static uint8_t convertSwingH(const stdAc::swingh_t position)
Convert a stdAc::swingh_t enum into it's native setting.
Definition: ir_Mitsubishi.cpp:1489
IRMitsubishi112::setSwingH
void setSwingH(const uint8_t position)
Set the Horizontal Swing mode of the A/C.
Definition: ir_Mitsubishi.cpp:1404
IRMitsubishi136::toCommonMode
static stdAc::opmode_t toCommonMode(const uint8_t mode)
Convert a native mode into its stdAc equivalent.
Definition: ir_Mitsubishi.cpp:1055
Mitsubishi144Protocol::Fan
uint8_t Fan
Definition: ir_Mitsubishi.h:74
IRMitsubishiAC::begin
void begin(void)
Set up hardware to be able to send a message.
Definition: ir_Mitsubishi.cpp:330
Mitsubishi112Protocol::raw
uint8_t raw[kMitsubishi112StateLength]
The state in code form.
Definition: ir_Mitsubishi.h:177
IRMitsubishiAC::IRMitsubishiAC
IRMitsubishiAC(const uint16_t pin, const bool inverted=false, const bool use_modulation=true)
Class constructor.
Definition: ir_Mitsubishi.cpp:315
kMitsubishi136FanMin
const uint8_t kMitsubishi136FanMin
Definition: ir_Mitsubishi.h:169
kMitsubishi136SwingVAuto
const uint8_t kMitsubishi136SwingVAuto
Definition: ir_Mitsubishi.h:168
IRMitsubishi112::_irsend
IRsend _irsend
Instance of the IR send class.
Definition: ir_Mitsubishi.h:419
kMitsubishi136Heat
const uint8_t kMitsubishi136Heat
Definition: ir_Mitsubishi.h:161
IRMitsubishi136::setTemp
void setTemp(const uint8_t degrees)
Set the temperature.
Definition: ir_Mitsubishi.cpp:928
Mitsubishi112Protocol::Power
uint8_t Power
Definition: ir_Mitsubishi.h:183
IRMitsubishiAC::toCommonMode
static stdAc::opmode_t toCommonMode(const uint8_t mode)
Convert a native mode into its stdAc equivalent.
Definition: ir_Mitsubishi.cpp:620
IRMitsubishi136::getMode
uint8_t getMode(void) const
Get the operating mode setting of the A/C.
Definition: ir_Mitsubishi.cpp:954
IRMitsubishi136::checksum
void checksum(void)
Calculate the checksum for the current internal state of the remote.
Definition: ir_Mitsubishi.cpp:862
IRMitsubishiAC::getStartClock
uint8_t getStartClock(void) const
Get the desired start time of the A/C unit.
Definition: ir_Mitsubishi.cpp:510
kMitsubishi112FanMin
const uint8_t kMitsubishi112FanMin
Definition: ir_Mitsubishi.h:214
kMitsubishiAcFanRealMax
const uint8_t kMitsubishiAcFanRealMax
Definition: ir_Mitsubishi.h:109
kMitsubishiAcStartStopTimer
const uint8_t kMitsubishiAcStartStopTimer
Definition: ir_Mitsubishi.h:132
IRMitsubishiAC::convertFan
static uint8_t convertFan(const stdAc::fanspeed_t speed)
Convert a stdAc::fanspeed_t enum into it's native speed.
Definition: ir_Mitsubishi.cpp:565
kMitsubishiAcVaneSwing
const uint8_t kMitsubishiAcVaneSwing
Definition: ir_Mitsubishi.h:120
kMitsubishi112SwingVHigh
const uint8_t kMitsubishi112SwingVHigh
Definition: ir_Mitsubishi.h:222
kMitsubishi112SwingHMiddle
const uint8_t kMitsubishi112SwingHMiddle
Definition: ir_Mitsubishi.h:228
kMitsubishi136SwingVLow
const uint8_t kMitsubishi136SwingVLow
Definition: ir_Mitsubishi.h:165
Mitsubishi144Protocol::HalfDegree
uint8_t HalfDegree
Definition: ir_Mitsubishi.h:68
IRMitsubishi112::_
Mitsubishi112Protocol _
Definition: ir_Mitsubishi.h:425
IRMitsubishiAC::getTimer
uint8_t getTimer(void) const
Get the timers active setting of the A/C.
Definition: ir_Mitsubishi.cpp:536
Mitsubishi144Protocol::Sum
uint8_t Sum
Definition: ir_Mitsubishi.h:97
IRMitsubishi136::convertFan
static uint8_t convertFan(const stdAc::fanspeed_t speed)
Convert a stdAc::fanspeed_t enum into it's native speed.
Definition: ir_Mitsubishi.cpp:1028
kMitsubishiAcVaneLow
const uint8_t kMitsubishiAcVaneLow
Definition: ir_Mitsubishi.h:118
kMitsubishiAcVaneAutoMove
const uint8_t kMitsubishiAcVaneAutoMove
Definition: ir_Mitsubishi.h:121
IRMitsubishiAC::send
void send(const uint16_t repeat=kMitsubishiACMinRepeat)
Send the current internal state as an IR message.
Definition: ir_Mitsubishi.cpp:335
IRMitsubishi136::getRaw
uint8_t * getRaw(void)
Get a PTR to the internal state/code for this protocol.
Definition: ir_Mitsubishi.cpp:897
IRMitsubishiAC::setWideVane
void setWideVane(const uint8_t position)
Set the requested wide-vane (Horizontal Swing) operation mode of the a/c.
Definition: ir_Mitsubishi.cpp:468
Mitsubishi144Protocol::WeeklyTimer
uint8_t WeeklyTimer
Definition: ir_Mitsubishi.h:86
IRMitsubishi136::getQuiet
bool getQuiet(void) const
Get the Quiet mode of the A/C.
Definition: ir_Mitsubishi.cpp:1008
kMitsubishi112Auto
const uint8_t kMitsubishi112Auto
Definition: ir_Mitsubishi.h:208
IRMitsubishi112::getMode
uint8_t getMode(void) const
Get the operating mode setting of the A/C.
Definition: ir_Mitsubishi.cpp:1357
kMitsubishi136SwingVLowest
const uint8_t kMitsubishi136SwingVLowest
Definition: ir_Mitsubishi.h:164
kMitsubishiAcStartTimer
const uint8_t kMitsubishiAcStartTimer
Definition: ir_Mitsubishi.h:130
IRMitsubishi136::setRaw
void setRaw(const uint8_t *data)
Set the internal state from a valid code for this protocol.
Definition: ir_Mitsubishi.cpp:904
kMitsubishiAcWideVaneMiddle
const uint8_t kMitsubishiAcWideVaneMiddle
Definition: ir_Mitsubishi.h:124
kMitsubishiAcVaneMiddle
const uint8_t kMitsubishiAcVaneMiddle
Definition: ir_Mitsubishi.h:117
IRMitsubishi136::convertSwingV
static uint8_t convertSwingV(const stdAc::swingv_t position)
Convert a stdAc::swingv_t enum into it's native setting.
Definition: ir_Mitsubishi.cpp:1041
IRMitsubishi112::toCommonSwingV
static stdAc::swingv_t toCommonSwingV(const uint8_t pos)
Convert a native vertical swing postion to it's common equivalent.
Definition: ir_Mitsubishi.cpp:1530
kMitsubishi112FanMax
const uint8_t kMitsubishi112FanMax
Definition: ir_Mitsubishi.h:217
IRMitsubishiAC::setVaneLeft
void setVaneLeft(const uint8_t position)
Set the requested Left Vane (Vertical Swing) operation mode of the a/c unit.
Definition: ir_Mitsubishi.cpp:487
kMitsubishiAcMaxTemp
const float kMitsubishiAcMaxTemp
Definition: ir_Mitsubishi.h:113
IRMitsubishiAC::getWideVane
uint8_t getWideVane(void) const
Get the Wide Vane (Horizontal Swing) mode of the A/C.
Definition: ir_Mitsubishi.cpp:481
Mitsubishi144Protocol::pad0
uint8_t pad0[5]
Definition: ir_Mitsubishi.h:57
IRMitsubishi112::on
void on(void)
Set the requested power state of the A/C to off.
Definition: ir_Mitsubishi.cpp:1303
Mitsubishi144Protocol::VaneBit
uint8_t VaneBit
Definition: ir_Mitsubishi.h:76
IRMitsubishi136::_irsend
IRsend _irsend
Instance of the IR send class.
Definition: ir_Mitsubishi.h:363
IRMitsubishi136::setSwingV
void setSwingV(const uint8_t position)
Set the Vertical Swing mode of the A/C.
Definition: ir_Mitsubishi.cpp:977
kMitsubishi136FanQuiet
const uint8_t kMitsubishi136FanQuiet
Definition: ir_Mitsubishi.h:173
IRMitsubishi112::setQuiet
void setQuiet(const bool on)
Set the Quiet mode of the A/C.
Definition: ir_Mitsubishi.cpp:1431
Mitsubishi112Protocol
Native representation of a Mitsubishi 112-bit A/C message.
Definition: ir_Mitsubishi.h:176
IRMitsubishi112::setSwingV
void setSwingV(const uint8_t position)
Set the Vertical Swing mode of the A/C.
Definition: ir_Mitsubishi.cpp:1380
IRMitsubishi136::toCommon
stdAc::state_t toCommon(void) const
Convert the current internal state into its stdAc::state_t equivalent.
Definition: ir_Mitsubishi.cpp:1093
IRMitsubishi136::toCommonFanSpeed
static stdAc::fanspeed_t toCommonFanSpeed(const uint8_t speed)
Convert a native fan speed into its stdAc equivalent.
Definition: ir_Mitsubishi.cpp:1068
kMitsubishiAcFan
const uint8_t kMitsubishiAcFan
Definition: ir_Mitsubishi.h:106
IRMitsubishi112::toCommonSwingH
static stdAc::swingh_t toCommonSwingH(const uint8_t pos)
Convert a native horizontal swing postion to it's common equivalent.
Definition: ir_Mitsubishi.cpp:1544
Mitsubishi112Protocol::Mode
uint8_t Mode
Definition: ir_Mitsubishi.h:186
IRMitsubishi136::getSwingV
uint8_t getSwingV(void) const
Get the Vertical Swing mode of the A/C.
Definition: ir_Mitsubishi.cpp:994
IRMitsubishi136::off
void off(void)
Set the requested power state of the A/C to off.
Definition: ir_Mitsubishi.cpp:912
Mitsubishi144Protocol
Native representation of a Mitsubishi 144-bit A/C message.
Definition: ir_Mitsubishi.h:53
Mitsubishi144Protocol::Mode
uint8_t Mode
Definition: ir_Mitsubishi.h:64
kMitsubishi136StateLength
const uint16_t kMitsubishi136StateLength
Definition: IRremoteESP8266.h:1124
kMitsubishi136SwingVHigh
const uint8_t kMitsubishi136SwingVHigh
Definition: ir_Mitsubishi.h:166
kMitsubishiAcCool
const uint8_t kMitsubishiAcCool
Definition: ir_Mitsubishi.h:103
IRMitsubishiAC::toCommonSwingV
static stdAc::swingv_t toCommonSwingV(const uint8_t pos)
Convert a native vertical swing postion to it's common equivalent.
Definition: ir_Mitsubishi.cpp:649
kMitsubishiAcWideVaneWide
const uint8_t kMitsubishiAcWideVaneWide
Definition: ir_Mitsubishi.h:127
IRMitsubishiAC::toString
String toString(void) const
Convert the internal state into a human readable string.
Definition: ir_Mitsubishi.cpp:721
kMitsubishi112SwingHWide
const uint8_t kMitsubishi112SwingHWide
Definition: ir_Mitsubishi.h:231
IRMitsubishi136::on
void on(void)
Set the requested power state of the A/C to on.
Definition: ir_Mitsubishi.cpp:909
IRMitsubishi112::convertSwingV
static uint8_t convertSwingV(const stdAc::swingv_t position)
Convert a stdAc::swingv_t enum into it's native setting.
Definition: ir_Mitsubishi.cpp:1475
kMitsubishi112Dry
const uint8_t kMitsubishi112Dry
Definition: ir_Mitsubishi.h:209
Mitsubishi136Protocol
Native representation of a Mitsubishi 136-bit A/C message.
Definition: ir_Mitsubishi.h:135
kMitsubishiAcWideVaneLeft
const uint8_t kMitsubishiAcWideVaneLeft
Definition: ir_Mitsubishi.h:123
IRMitsubishi136::getPower
bool getPower(void) const
Get the value of the current power setting.
Definition: ir_Mitsubishi.cpp:922
kMitsubishi136SwingVHighest
const uint8_t kMitsubishi136SwingVHighest
Definition: ir_Mitsubishi.h:167
IRMitsubishi136::setPower
void setPower(const bool on)
Change the power setting.
Definition: ir_Mitsubishi.cpp:916
kMitsubishiAcWideVaneLeftMax
const uint8_t kMitsubishiAcWideVaneLeftMax
Definition: ir_Mitsubishi.h:122
IRMitsubishiAC::setTimer
void setTimer(const uint8_t timer)
Set the timers active setting of the A/C.
Definition: ir_Mitsubishi.cpp:545
stdAc::state_t
Structure to hold a common A/C state.
Definition: IRsend.h:97
Mitsubishi136Protocol::pad
uint8_t pad[5]
Definition: ir_Mitsubishi.h:139
IRMitsubishiAC::off
void off(void)
Set the requested power state of the A/C to off.
Definition: ir_Mitsubishi.cpp:376
Mitsubishi136Protocol::SwingV
uint8_t SwingV
Definition: ir_Mitsubishi.h:152
kMitsubishi112StateLength
const uint16_t kMitsubishi112StateLength
Definition: IRremoteESP8266.h:1127
kMitsubishi112MaxTemp
const uint8_t kMitsubishi112MaxTemp
Definition: ir_Mitsubishi.h:212
IRMitsubishi136::validChecksum
static bool validChecksum(const uint8_t *data, const uint16_t len=kMitsubishi136StateLength)
Verify the checksum is valid for a given state.
Definition: ir_Mitsubishi.cpp:872
Mitsubishi144Protocol::WideVane
uint8_t WideVane
Definition: ir_Mitsubishi.h:72
kMitsubishiAcDry
const uint8_t kMitsubishiAcDry
Definition: ir_Mitsubishi.h:104
IRMitsubishi136::setMode
void setMode(const uint8_t mode)
Set the operating mode of the A/C.
Definition: ir_Mitsubishi.cpp:960
stdAc::opmode_t
opmode_t
Common A/C settings for A/C operating modes.
Definition: IRsend.h:46