IRremoteESP8266: src/ir_Mitsubishi.h Source File

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
35 #ifndef IR_MITSUBISHI_H_
36 #define IR_MITSUBISHI_H_
37
38 #define __STDC_LIMIT_MACROS
39 #include <stdint.h>
40 #ifndef UNIT_TEST
41 #include <Arduino.h>
42 #endif
43 #include "IRremoteESP8266.h"
44 #include "IRsend.h"
45 #ifdef UNIT_TEST
46 #include "IRsend_test.h"
47 #endif
48
50 union Mitsubishi144Protocol{
51 uint8_t raw[kMitsubishiACStateLength];
52 struct {
53 // Byte 0~4
54 uint8_t pad0[5];
55 // Byte 5
56 uint8_t :5;
57 uint8_t Power :1;
58 uint8_t :2;
59 // Byte 6
60 uint8_t :3;
61 uint8_t Mode :3;
62 uint8_t :2;
63 // Byte 7
64 uint8_t Temp :4;
65 uint8_t HalfDegree :1;
66 uint8_t :3;
67 // Byte 8
68 uint8_t :4;
69 uint8_t WideVane:4; // SwingH
70 // Byte 9
71 uint8_t Fan :3;
72 uint8_t Vane :3; // SwingV
73 uint8_t VaneBit :1;
74 uint8_t FanAuto :1;
75 // Byte 10
76 uint8_t Clock :8;
77 // Byte 11
78 uint8_t StopClock :8;
79 // Byte 12
80 uint8_t StartClock:8;
81 // Byte 13
82 uint8_t Timer :3;
83 uint8_t WeeklyTimer :1;
84 uint8_t :4;
85 // Byte 14~16
86 uint8_t pad1[3];
87 // Byte 17
88 uint8_t Sum :8;
89 };
90 };
91
92 // Constants
93 const uint8_t kMitsubishiAcAuto = 0b100;
94 const uint8_t kMitsubishiAcCool = 0b011;
95 const uint8_t kMitsubishiAcDry = 0b010;
96 const uint8_t kMitsubishiAcHeat = 0b001;
97 const uint8_t kMitsubishiAcFanAuto = 0;
98 const uint8_t kMitsubishiAcFanMax = 5;
99 const uint8_t kMitsubishiAcFanRealMax = 4;
100 const uint8_t kMitsubishiAcFanSilent = 6;
101 const uint8_t kMitsubishiAcFanQuiet = kMitsubishiAcFanSilent;
102 const float kMitsubishiAcMinTemp = 16.0; // 16C
103 const float kMitsubishiAcMaxTemp = 31.0; // 31C
104 const uint8_t kMitsubishiAcVaneAuto = 0b000; // Vanes move when AC wants to.
105 const uint8_t kMitsubishiAcVaneHighest = 0b001;
106 const uint8_t kMitsubishiAcVaneHigh = 0b010;
107 const uint8_t kMitsubishiAcVaneMiddle = 0b011;
108 const uint8_t kMitsubishiAcVaneLow = 0b100;
109 const uint8_t kMitsubishiAcVaneLowest = 0b101;
110 const uint8_t kMitsubishiAcVaneSwing = 0b111; // Vanes move all the time.
111 const uint8_t kMitsubishiAcVaneAutoMove = kMitsubishiAcVaneSwing; // Deprecated
112 const uint8_t kMitsubishiAcWideVaneLeftMax = 0b0001; // 1
113 const uint8_t kMitsubishiAcWideVaneLeft = 0b0010; // 2
114 const uint8_t kMitsubishiAcWideVaneMiddle = 0b0011; // 3
115 const uint8_t kMitsubishiAcWideVaneRight = 0b0100; // 4
116 const uint8_t kMitsubishiAcWideVaneRightMax = 0b0101; // 5
117 const uint8_t kMitsubishiAcWideVaneWide = 0b0110; // 6
118 const uint8_t kMitsubishiAcWideVaneAuto = 0b1000; // 8
119 const uint8_t kMitsubishiAcNoTimer = 0;
120 const uint8_t kMitsubishiAcStartTimer = 5;
121 const uint8_t kMitsubishiAcStopTimer = 3;
122 const uint8_t kMitsubishiAcStartStopTimer = 7;
123
125 union Mitsubishi136Protocol{
126 uint8_t raw[kMitsubishi136StateLength];
127 struct {
128 // Byte 0~4
129 uint8_t pad[5];
130 // Byte 5
131 uint8_t :6;
132 uint8_t Power :1;
133 uint8_t :1;
134 // Byte 6
135 uint8_t Mode :3;
136 uint8_t :1;
137 uint8_t Temp :4;
138 // Byte 7
139 uint8_t :1;
140 uint8_t Fan :2;
141 uint8_t :1;
142 uint8_t SwingV :4;
143 };
144 };
145
146 const uint8_t kMitsubishi136PowerByte = 5;
147 const uint8_t kMitsubishi136MinTemp = 17; // 17C
148 const uint8_t kMitsubishi136MaxTemp = 30; // 30C
149 const uint8_t kMitsubishi136Fan = 0b000;
150 const uint8_t kMitsubishi136Cool = 0b001;
151 const uint8_t kMitsubishi136Heat = 0b010;
152 const uint8_t kMitsubishi136Auto = 0b011;
153 const uint8_t kMitsubishi136Dry = 0b101;
154 const uint8_t kMitsubishi136SwingVLowest = 0b0000;
155 const uint8_t kMitsubishi136SwingVLow = 0b0001;
156 const uint8_t kMitsubishi136SwingVHigh = 0b0010;
157 const uint8_t kMitsubishi136SwingVHighest = 0b0011;
158 const uint8_t kMitsubishi136SwingVAuto = 0b1100;
159 const uint8_t kMitsubishi136FanMin = 0b00;
160 const uint8_t kMitsubishi136FanLow = 0b01;
161 const uint8_t kMitsubishi136FanMed = 0b10;
162 const uint8_t kMitsubishi136FanMax = 0b11;
163 const uint8_t kMitsubishi136FanQuiet = kMitsubishi136FanMin;
164
166 union Mitsubishi112Protocol{
167 uint8_t raw[kMitsubishi112StateLength];
168 struct {
169 // Byte 0~4
170 uint8_t pad0[5];
171 // Byte 5
172 uint8_t :2;
173 uint8_t Power :1;
174 uint8_t :5;
175 // Byte 6
176 uint8_t Mode :3;
177 uint8_t :5;
178 // Byte 7
179 uint8_t Temp :4;
180 uint8_t :4;
181 // Byte 8
182 uint8_t Fan :3;
183 uint8_t SwingV :3;
184 uint8_t :2;
185 // Byte 9~11
186 uint8_t pad1[3];
187 // Byte 12
188 uint8_t :2;
189 uint8_t SwingH :4;
190 uint8_t :2;
191 // Byte 13
192 uint8_t Sum :8;
193 };
194 };
195
196 const uint8_t kMitsubishi112Cool = 0b011;
197 const uint8_t kMitsubishi112Heat = 0b001;
198 const uint8_t kMitsubishi112Auto = 0b111;
199 const uint8_t kMitsubishi112Dry = 0b010;
200
201 const uint8_t kMitsubishi112MinTemp = 16; // 16C
202 const uint8_t kMitsubishi112MaxTemp = 31; // 31C
203
204 const uint8_t kMitsubishi112FanMin = 0b010;
205 const uint8_t kMitsubishi112FanLow = 0b011;
206 const uint8_t kMitsubishi112FanMed = 0b101;
207 const uint8_t kMitsubishi112FanMax = 0b000;
208 const uint8_t kMitsubishi112FanQuiet = kMitsubishi112FanMin;
209 const uint8_t kMitsubishi112SwingVLowest = 0b101;
210 const uint8_t kMitsubishi112SwingVLow = 0b100;
211 const uint8_t kMitsubishi112SwingVMiddle = 0b011;
212 const uint8_t kMitsubishi112SwingVHigh = 0b010;
213 const uint8_t kMitsubishi112SwingVHighest = 0b001;
214 const uint8_t kMitsubishi112SwingVAuto = 0b111;
215
216 const uint8_t kMitsubishi112SwingHLeftMax = 0b0001;
217 const uint8_t kMitsubishi112SwingHLeft = 0b0010;
218 const uint8_t kMitsubishi112SwingHMiddle = 0b0011;
219 const uint8_t kMitsubishi112SwingHRight = 0b0100;
220 const uint8_t kMitsubishi112SwingHRightMax = 0b0101;
221 const uint8_t kMitsubishi112SwingHWide = 0b1000;
222 const uint8_t kMitsubishi112SwingHAuto = 0b1100;
223
224 // Legacy defines (Deprecated)
225 #define MITSUBISHI_AC_VANE_AUTO_MOVE kMitsubishiAcVaneAutoMove
226 #define MITSUBISHI_AC_VANE_AUTO kMitsubishiAcVaneAuto
227 #define MITSUBISHI_AC_MIN_TEMP kMitsubishiAcMinTemp
228 #define MITSUBISHI_AC_MAX_TEMP kMitsubishiAcMaxTemp
229 #define MITSUBISHI_AC_HEAT kMitsubishiAcHeat
230 #define MITSUBISHI_AC_FAN_SILENT kMitsubishiAcFanSilent
231 #define MITSUBISHI_AC_FAN_REAL_MAX kMitsubishiAcFanRealMax
232 #define MITSUBISHI_AC_FAN_MAX kMitsubishiAcFanMax
233 #define MITSUBISHI_AC_FAN_AUTO kMitsubishiAcFanAuto
234 #define MITSUBISHI_AC_DRY kMitsubishiAcDry
235 #define MITSUBISHI_AC_COOL kMitsubishiAcCool
236 #define MITSUBISHI_AC_AUTO kMitsubishiAcAuto
237
238
242 class IRMitsubishiAC {
243 public:
244 explicit IRMitsubishiAC(const uint16_t pin, const bool inverted = false,
245 const bool use_modulation = true);
246 void stateReset(void);
247 static bool validChecksum(const uint8_t* data);
248 #if SEND_MITSUBISHI_AC
249 void send(const uint16_t repeat = kMitsubishiACMinRepeat);
254 int8_t calibrate(void) { return _irsend.calibrate(); }
255 #endif // SEND_MITSUBISHI_AC
256 void begin(void);
257 void on(void);
258 void off(void);
259 void setPower(const bool on);
260 bool getPower(void) const;
261 void setTemp(const float degrees);
262 float getTemp(void) const;
263 void setFan(const uint8_t speed);
264 uint8_t getFan(void) const;
265 void setMode(const uint8_t mode);
266 uint8_t getMode(void) const;
267 void setVane(const uint8_t position);
268 void setWideVane(const uint8_t position);
269 uint8_t getVane(void) const;
270 uint8_t getWideVane(void) const;
271 uint8_t* getRaw(void);
272 void setRaw(const uint8_t* data);
273 uint8_t getClock(void) const;
274 void setClock(const uint8_t clock);
275 uint8_t getStartClock(void) const;
276 void setStartClock(const uint8_t clock);
277 uint8_t getStopClock(void) const;
278 void setStopClock(const uint8_t clock);
279 uint8_t getTimer(void) const;
280 void setTimer(const uint8_t timer);
281 bool getWeeklyTimerEnabled(void) const;
282 void setWeeklyTimerEnabled(const bool on);
283 static uint8_t convertMode(const stdAc::opmode_t mode);
284 static uint8_t convertFan(const stdAc::fanspeed_t speed);
285 static uint8_t convertSwingV(const stdAc::swingv_t position);
286 static uint8_t convertSwingH(const stdAc::swingh_t position);
287 static stdAc::opmode_t toCommonMode(const uint8_t mode);
288 static stdAc::fanspeed_t toCommonFanSpeed(const uint8_t speed);
289 static stdAc::swingv_t toCommonSwingV(const uint8_t pos);
290 static stdAc::swingh_t toCommonSwingH(const uint8_t pos);
291 stdAc::state_t toCommon(void) const;
292 String toString(void) const;
293 #ifndef UNIT_TEST
294
295 private:
296 IRsend _irsend;
297 #else // UNIT_TEST
298 IRsendTest _irsend;
300 #endif // UNIT_TEST
302 Mitsubishi144Protocol _;
303 void checksum(void);
304 static uint8_t calculateChecksum(const uint8_t* data);
305 };
306
308 class IRMitsubishi136 {
309 public:
310 explicit IRMitsubishi136(const uint16_t pin, const bool inverted = false,
311 const bool use_modulation = true);
312 void stateReset(void);
313 #if SEND_MITSUBISHI136
314 void send(const uint16_t repeat = kMitsubishi136MinRepeat);
319 int8_t calibrate(void) { return _irsend.calibrate(); }
320 #endif // SEND_MITSUBISHI136
321 void begin(void);
322 static bool validChecksum(const uint8_t* data,
323 const uint16_t len = kMitsubishi136StateLength);
324 void on(void);
325 void off(void);
326 void setPower(const bool on);
327 bool getPower(void) const;
328 void setTemp(const uint8_t degrees);
329 uint8_t getTemp(void) const;
330 void setFan(const uint8_t speed);
331 uint8_t getFan(void) const;
332 void setMode(const uint8_t mode);
333 uint8_t getMode(void) const;
334 void setSwingV(const uint8_t position);
335 uint8_t getSwingV(void) const;
336 void setQuiet(const bool on);
337 bool getQuiet(void) const;
338 uint8_t* getRaw(void);
339 void setRaw(const uint8_t* data);
340 static uint8_t convertMode(const stdAc::opmode_t mode);
341 static uint8_t convertFan(const stdAc::fanspeed_t speed);
342 static uint8_t convertSwingV(const stdAc::swingv_t position);
343 static stdAc::opmode_t toCommonMode(const uint8_t mode);
344 static stdAc::fanspeed_t toCommonFanSpeed(const uint8_t speed);
345 static stdAc::swingv_t toCommonSwingV(const uint8_t pos);
346 stdAc::state_t toCommon(void) const;
347 String toString(void) const;
348 #ifndef UNIT_TEST
349
350 private:
351 IRsend _irsend;
352 #else // UNIT_TEST
353 IRsendTest _irsend;
355 #endif // UNIT_TEST
357 Mitsubishi136Protocol _;
358 void checksum(void);
359 };
360
362 class IRMitsubishi112 {
363 public:
364 explicit IRMitsubishi112(const uint16_t pin, const bool inverted = false,
365 const bool use_modulation = true);
366 void stateReset(void);
367 #if SEND_MITSUBISHI112
368 void send(const uint16_t repeat = kMitsubishi112MinRepeat);
373 int8_t calibrate(void) { return _irsend.calibrate(); }
374 #endif // SEND_MITSUBISHI112
375 void begin(void);
376 void on(void);
377 void off(void);
378 void setPower(const bool on);
379 bool getPower(void) const;
380 void setTemp(const uint8_t degrees);
381 uint8_t getTemp(void) const;
382 void setFan(const uint8_t speed);
383 uint8_t getFan(void) const;
384 void setMode(const uint8_t mode);
385 uint8_t getMode(void) const;
386 void setSwingV(const uint8_t position);
387 uint8_t getSwingV(void) const;
388 void setSwingH(const uint8_t position);
389 uint8_t getSwingH(void) const;
390 void setQuiet(const bool on);
391 bool getQuiet(void) const;
392 uint8_t* getRaw(void);
393 void setRaw(const uint8_t* data);
394 static uint8_t convertMode(const stdAc::opmode_t mode);
395 static uint8_t convertFan(const stdAc::fanspeed_t speed);
396 static uint8_t convertSwingV(const stdAc::swingv_t position);
397 static uint8_t convertSwingH(const stdAc::swingh_t position);
398 static stdAc::opmode_t toCommonMode(const uint8_t mode);
399 static stdAc::fanspeed_t toCommonFanSpeed(const uint8_t speed);
400 static stdAc::swingv_t toCommonSwingV(const uint8_t pos);
401 static stdAc::swingh_t toCommonSwingH(const uint8_t pos);
402 stdAc::state_t toCommon(void) const;
403 String toString(void) const;
404 #ifndef UNIT_TEST
405
406 private:
407 IRsend _irsend;
408 #else // UNIT_TEST
409 IRsendTest _irsend;
411 #endif // UNIT_TEST
413 Mitsubishi112Protocol _;
414 void checksum(void);
415 };
416
417 #endif // IR_MITSUBISHI_H_
kMitsubishi112SwingVMiddle
const uint8_t kMitsubishi112SwingVMiddle
Definition: ir_Mitsubishi.h:211
Mitsubishi112Protocol::SwingV
uint8_t SwingV
Definition: ir_Mitsubishi.h:183
IRMitsubishi112::setMode
void setMode(const uint8_t mode)
Set the operating mode of the A/C.
Definition: ir_Mitsubishi.cpp:1419
kMitsubishi112SwingVLowest
const uint8_t kMitsubishi112SwingVLowest
Definition: ir_Mitsubishi.h:209
kMitsubishi112SwingVAuto
const uint8_t kMitsubishi112SwingVAuto
Definition: ir_Mitsubishi.h:214
Mitsubishi112Protocol::pad1
uint8_t pad1[3]
Definition: ir_Mitsubishi.h:186
kMitsubishi112FanQuiet
const uint8_t kMitsubishi112FanQuiet
Definition: ir_Mitsubishi.h:208
Mitsubishi144Protocol::Timer
uint8_t Timer
Definition: ir_Mitsubishi.h:82
IRMitsubishi112::stateReset
void stateReset(void)
Reset the state of the remote to a known good state/sequence.
Definition: ir_Mitsubishi.cpp:1322
kMitsubishi112SwingHLeft
const uint8_t kMitsubishi112SwingHLeft
Definition: ir_Mitsubishi.h:217
IRMitsubishi112::getQuiet
bool getQuiet(void) const
Get the Quiet mode of the A/C.
Definition: ir_Mitsubishi.cpp:1497
IRMitsubishiAC::getVane
uint8_t getVane(void) const
Get the Vane (Vertical Swing) mode of the A/C.
Definition: ir_Mitsubishi.cpp:543
Mitsubishi144Protocol::StartClock
uint8_t StartClock
Definition: ir_Mitsubishi.h:80
kMitsubishi112FanMed
const uint8_t kMitsubishi112FanMed
Definition: ir_Mitsubishi.h:206
kMitsubishiACStateLength
const uint16_t kMitsubishiACStateLength
Definition: IRremoteESP8266.h:1022
Mitsubishi112Protocol::Fan
uint8_t Fan
Definition: ir_Mitsubishi.h:182
kMitsubishiAcHeat
const uint8_t kMitsubishiAcHeat
Definition: ir_Mitsubishi.h:96
kMitsubishiAcMinTemp
const float kMitsubishiAcMinTemp
Definition: ir_Mitsubishi.h:102
kMitsubishiAcAuto
const uint8_t kMitsubishiAcAuto
Definition: ir_Mitsubishi.h:93
IRMitsubishi136::_
Mitsubishi136Protocol _
Definition: ir_Mitsubishi.h:357
IRMitsubishi136::toString
String toString(void) const
Convert the internal state into a human readable string.
Definition: ir_Mitsubishi.cpp:1175
IRMitsubishi112::begin
void begin(void)
Set up hardware to be able to send a message.
Definition: ir_Mitsubishi.cpp:1335
IRMitsubishi136::getTemp
uint8_t getTemp(void) const
Get the current temperature setting.
Definition: ir_Mitsubishi.cpp:992
IRMitsubishi112::getFan
uint8_t getFan(void) const
Get the current fan speed setting.
Definition: ir_Mitsubishi.cpp:1407
kMitsubishi112SwingHRight
const uint8_t kMitsubishi112SwingHRight
Definition: ir_Mitsubishi.h:219
kMitsubishiAcFanSilent
const uint8_t kMitsubishiAcFanSilent
Definition: ir_Mitsubishi.h:100
IRMitsubishi112::calibrate
int8_t calibrate(void)
Run the calibration to calculate uSec timing offsets for this platform.
Definition: ir_Mitsubishi.h:373
Mitsubishi112Protocol::SwingH
uint8_t SwingH
Definition: ir_Mitsubishi.h:189
kMitsubishiAcVaneAuto
const uint8_t kMitsubishiAcVaneAuto
Definition: ir_Mitsubishi.h:104
kMitsubishi112SwingHRightMax
const uint8_t kMitsubishi112SwingHRightMax
Definition: ir_Mitsubishi.h:220
IRMitsubishi136::stateReset
void stateReset(void)
Reset the state of the remote to a known good state/sequence.
Definition: ir_Mitsubishi.cpp:908
IRMitsubishiAC::getClock
uint8_t getClock(void) const
Get the clock time of the A/C unit.
Definition: ir_Mitsubishi.cpp:556
IRMitsubishi136::begin
void begin(void)
Set up hardware to be able to send a message.
Definition: ir_Mitsubishi.cpp:941
IRMitsubishi112::toCommon
stdAc::state_t toCommon(void) const
Convert the current internal state into its stdAc::state_t equivalent.
Definition: ir_Mitsubishi.cpp:1614
kMitsubishi136MinRepeat
const uint16_t kMitsubishi136MinRepeat
Definition: IRremoteESP8266.h:1027
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:1386
kMitsubishiAcVaneHighest
const uint8_t kMitsubishiAcVaneHighest
Definition: ir_Mitsubishi.h:105
kMitsubishiAcWideVaneRightMax
const uint8_t kMitsubishiAcWideVaneRightMax
Definition: ir_Mitsubishi.h:116
kMitsubishiAcWideVaneRight
const uint8_t kMitsubishiAcWideVaneRight
Definition: ir_Mitsubishi.h:115
IRMitsubishiAC::stateReset
void stateReset(void)
Reset the state of the remote to a known good state/sequence.
Definition: ir_Mitsubishi.cpp:391
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:529
kMitsubishi136FanMed
const uint8_t kMitsubishi136FanMed
Definition: ir_Mitsubishi.h:161
Mitsubishi136Protocol::raw
uint8_t raw[kMitsubishi136StateLength]
The state in code form.
Definition: ir_Mitsubishi.h:126
kMitsubishi136PowerByte
const uint8_t kMitsubishi136PowerByte
Definition: ir_Mitsubishi.h:146
IRMitsubishi112::getSwingH
uint8_t getSwingH(void) const
Get the Horizontal Swing mode of the A/C.
Definition: ir_Mitsubishi.cpp:1480
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:585
kMitsubishi136MaxTemp
const uint8_t kMitsubishi136MaxTemp
Definition: ir_Mitsubishi.h:148
IRMitsubishiAC::getTemp
float getTemp(void) const
Get the current temperature setting.
Definition: ir_Mitsubishi.cpp:478
Mitsubishi112Protocol::Temp
uint8_t Temp
Definition: ir_Mitsubishi.h:179
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:1071
IRMitsubishiAC::setRaw
void setRaw(const uint8_t *data)
Set the internal state from a valid code for this protocol.
Definition: ir_Mitsubishi.cpp:420
IRMitsubishi136::setFan
void setFan(const uint8_t speed)
Set the speed of the fan.
Definition: ir_Mitsubishi.cpp:998
IRMitsubishiAC::getPower
bool getPower(void) const
Get the value of the current power setting.
Definition: ir_Mitsubishi.cpp:457
kMitsubishi112MinRepeat
const uint16_t kMitsubishi112MinRepeat
Definition: IRremoteESP8266.h:1030
IRMitsubishi112::setRaw
void setRaw(const uint8_t *data)
Set the internal state from a valid code for this protocol.
Definition: ir_Mitsubishi.cpp:1354
IRMitsubishiAC::setTemp
void setTemp(const float degrees)
Set the temperature.
Definition: ir_Mitsubishi.cpp:464
IRMitsubishiAC::setStartClock
void setStartClock(const uint8_t clock)
Set the desired start time of the A/C unit.
Definition: ir_Mitsubishi.cpp:573
kMitsubishi112FanLow
const uint8_t kMitsubishi112FanLow
Definition: ir_Mitsubishi.h:205
IRMitsubishi112::toCommonFanSpeed
static stdAc::fanspeed_t toCommonFanSpeed(const uint8_t speed)
Convert a native fan speed into its stdAc equivalent.
Definition: ir_Mitsubishi.cpp:1573
IRMitsubishiAC::checksum
void checksum(void)
Calculate and set the checksum values for the internal state.
Definition: ir_Mitsubishi.cpp:425
IRMitsubishi136::getFan
uint8_t getFan(void) const
Get the current fan speed setting.
Definition: ir_Mitsubishi.cpp:1004
kMitsubishi112Heat
const uint8_t kMitsubishi112Heat
Definition: ir_Mitsubishi.h:197
kMitsubishi112SwingHLeftMax
const uint8_t kMitsubishi112SwingHLeftMax
Definition: ir_Mitsubishi.h:216
IRMitsubishiAC::validChecksum
static bool validChecksum(const uint8_t *data)
Verify the checksum is valid for a given state.
Definition: ir_Mitsubishi.cpp:432
IRMitsubishi136::calibrate
int8_t calibrate(void)
Run the calibration to calculate uSec timing offsets for this platform.
Definition: ir_Mitsubishi.h:319
kMitsubishi112Cool
const uint8_t kMitsubishi112Cool
Definition: ir_Mitsubishi.h:196
IRMitsubishi136::setQuiet
void setQuiet(const bool on)
Set the Quiet mode of the A/C.
Definition: ir_Mitsubishi.cpp:1056
IRsend.h
IRMitsubishi112::getPower
bool getPower(void) const
Get the value of the current power setting.
Definition: ir_Mitsubishi.cpp:1372
Mitsubishi144Protocol::StopClock
uint8_t StopClock
Definition: ir_Mitsubishi.h:78
kMitsubishiAcNoTimer
const uint8_t kMitsubishiAcNoTimer
Definition: ir_Mitsubishi.h:119
IRMitsubishi112::send
void send(const uint16_t repeat=kMitsubishi112MinRepeat)
Send the current internal state as an IR message.
Definition: ir_Mitsubishi.cpp:1340
IRMitsubishi112::getSwingV
uint8_t getSwingV(void) const
Get the Vertical Swing mode of the A/C.
Definition: ir_Mitsubishi.cpp:1454
IRMitsubishiAC::setPower
void setPower(const bool on)
Change the power setting.
Definition: ir_Mitsubishi.cpp:451
IRMitsubishi112::toCommonMode
static stdAc::opmode_t toCommonMode(const uint8_t mode)
Convert a native mode into its stdAc equivalent.
Definition: ir_Mitsubishi.cpp:1561
IRMitsubishiAC::calculateChecksum
static uint8_t calculateChecksum(const uint8_t *data)
Calculate the checksum for a given state.
Definition: ir_Mitsubishi.cpp:439
IRsend
Class for sending all basic IR protocols.
Definition: IRsend.h:187
Mitsubishi144Protocol::Temp
uint8_t Temp
Definition: ir_Mitsubishi.h:64
kMitsubishiAcVaneLowest
const uint8_t kMitsubishiAcVaneLowest
Definition: ir_Mitsubishi.h:109
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:150
kMitsubishi136Dry
const uint8_t kMitsubishi136Dry
Definition: ir_Mitsubishi.h:153
IRMitsubishi112::IRMitsubishi112
IRMitsubishi112(const uint16_t pin, const bool inverted=false, const bool use_modulation=true)
Class constructor.
Definition: ir_Mitsubishi.cpp:1317
IRMitsubishiAC::setClock
void setClock(const uint8_t clock)
Set the clock time on the A/C unit.
Definition: ir_Mitsubishi.cpp:561
IRMitsubishiAC::getWeeklyTimerEnabled
bool getWeeklyTimerEnabled(void) const
Get the value of the WeeklyTimer Enabled setting.
Definition: ir_Mitsubishi.cpp:773
Mitsubishi112Protocol::Sum
uint8_t Sum
Definition: ir_Mitsubishi.h:192
IRMitsubishiAC::getMode
uint8_t getMode(void) const
Get the operating mode setting of the A/C.
Definition: ir_Mitsubishi.cpp:506
String
std::string String
Definition: IRremoteESP8266.h:1199
IRMitsubishiAC
Class for handling detailed Mitsubishi 144-bit A/C messages.
Definition: ir_Mitsubishi.h:242
IRMitsubishiAC::toCommon
stdAc::state_t toCommon(void) const
Convert the current internal state into its stdAc::state_t equivalent.
Definition: ir_Mitsubishi.cpp:741
Mitsubishi144Protocol::Vane
uint8_t Vane
Definition: ir_Mitsubishi.h:72
kMitsubishiAcVaneHigh
const uint8_t kMitsubishiAcVaneHigh
Definition: ir_Mitsubishi.h:106
IRMitsubishi112::toString
String toString(void) const
Convert the internal state into a human readable string.
Definition: ir_Mitsubishi.cpp:1642
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:639
IRMitsubishiAC::toCommonFanSpeed
static stdAc::fanspeed_t toCommonFanSpeed(const uint8_t speed)
Convert a native fan speed into its stdAc equivalent.
Definition: ir_Mitsubishi.cpp:689
IRMitsubishi112
Class for handling detailed Mitsubishi 122-bit A/C messages.
Definition: ir_Mitsubishi.h:362
Mitsubishi136Protocol::Temp
uint8_t Temp
Definition: ir_Mitsubishi.h:137
IRMitsubishiAC::setFan
void setFan(const uint8_t speed)
Set the speed of the fan.
Definition: ir_Mitsubishi.cpp:484
kMitsubishi112SwingVLow
const uint8_t kMitsubishi112SwingVLow
Definition: ir_Mitsubishi.h:210
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:661
IRMitsubishi112::setTemp
void setTemp(const uint8_t degrees)
Set the temperature.
Definition: ir_Mitsubishi.cpp:1378
kMitsubishi112SwingHAuto
const uint8_t kMitsubishi112SwingHAuto
Definition: ir_Mitsubishi.h:222
kMitsubishi112MinTemp
const uint8_t kMitsubishi112MinTemp
Definition: ir_Mitsubishi.h:201
IRMitsubishi136
Class for handling detailed Mitsubishi 136-bit A/C messages.
Definition: ir_Mitsubishi.h:308
Mitsubishi144Protocol::Clock
uint8_t Clock
Definition: ir_Mitsubishi.h:76
IRMitsubishi112::setPower
void setPower(const bool on)
Change the power setting.
Definition: ir_Mitsubishi.cpp:1366
IRMitsubishi112::checksum
void checksum(void)
Calculate the checksum for the current internal state of the remote.
Definition: ir_Mitsubishi.cpp:1330
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:610
kMitsubishiAcStopTimer
const uint8_t kMitsubishiAcStopTimer
Definition: ir_Mitsubishi.h:121
kMitsubishiAcFanMax
const uint8_t kMitsubishiAcFanMax
Definition: ir_Mitsubishi.h:98
Mitsubishi144Protocol::pad1
uint8_t pad1[3]
Definition: ir_Mitsubishi.h:86
Mitsubishi136Protocol::Mode
uint8_t Mode
Definition: ir_Mitsubishi.h:135
IRMitsubishiAC::getFan
uint8_t getFan(void) const
Get the current fan speed setting.
Definition: ir_Mitsubishi.cpp:498
kMitsubishi112SwingVHighest
const uint8_t kMitsubishi112SwingVHighest
Definition: ir_Mitsubishi.h:213
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:727
kMitsubishi136FanLow
const uint8_t kMitsubishi136FanLow
Definition: ir_Mitsubishi.h:160
kMitsubishiACMinRepeat
const uint16_t kMitsubishiACMinRepeat
Definition: IRremoteESP8266.h:1024
kMitsubishi136MinTemp
const uint8_t kMitsubishi136MinTemp
Definition: ir_Mitsubishi.h:147
Mitsubishi144Protocol::Power
uint8_t Power
Definition: ir_Mitsubishi.h:57
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:1137
IRMitsubishi136::IRMitsubishi136
IRMitsubishi136(const uint16_t pin, const bool inverted=false, const bool use_modulation=true)
Class constructor.
Definition: ir_Mitsubishi.cpp:903
Mitsubishi112Protocol::pad0
uint8_t pad0[5]
Definition: ir_Mitsubishi.h:170
IRMitsubishiAC::_irsend
IRsend _irsend
Instance of the IR send class.
Definition: ir_Mitsubishi.h:296
kMitsubishi136Auto
const uint8_t kMitsubishi136Auto
Definition: ir_Mitsubishi.h:152
IRMitsubishiAC::_
Mitsubishi144Protocol _
Definition: ir_Mitsubishi.h:302
kMitsubishi136FanMax
const uint8_t kMitsubishi136FanMax
Definition: ir_Mitsubishi.h:162
IRMitsubishiAC::getRaw
uint8_t * getRaw(void)
Get a PTR to the internal state/code for this protocol.
Definition: ir_Mitsubishi.cpp:413
kMitsubishiAcFanAuto
const uint8_t kMitsubishiAcFanAuto
Definition: ir_Mitsubishi.h:97
IRMitsubishiAC::setWeeklyTimerEnabled
void setWeeklyTimerEnabled(const bool on)
Change the Weekly Timer Enabled setting.
Definition: ir_Mitsubishi.cpp:767
IRMitsubishiAC::getStopClock
uint8_t getStopClock(void) const
Get the desired stop time of the A/C unit.
Definition: ir_Mitsubishi.cpp:580
IRMitsubishiAC::on
void on(void)
Set the requested power state of the A/C to on.
Definition: ir_Mitsubishi.cpp:444
Mitsubishi136Protocol::Fan
uint8_t Fan
Definition: ir_Mitsubishi.h:140
kMitsubishiAcFanQuiet
const uint8_t kMitsubishiAcFanQuiet
Definition: ir_Mitsubishi.h:101
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:1517
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:1504
Mitsubishi144Protocol::raw
uint8_t raw[kMitsubishiACStateLength]
The state in code form.
Definition: ir_Mitsubishi.h:51
kMitsubishiAcWideVaneAuto
const uint8_t kMitsubishiAcWideVaneAuto
Definition: ir_Mitsubishi.h:118
IRMitsubishi136::send
void send(const uint16_t repeat=kMitsubishi136MinRepeat)
Send the current internal state as an IR message.
Definition: ir_Mitsubishi.cpp:946
kMitsubishi136Fan
const uint8_t kMitsubishi136Fan
Definition: ir_Mitsubishi.h:149
IRMitsubishi112::setFan
void setFan(const uint8_t speed)
Set the speed of the fan.
Definition: ir_Mitsubishi.cpp:1392
Mitsubishi136Protocol::Power
uint8_t Power
Definition: ir_Mitsubishi.h:132
IRMitsubishiAC::calibrate
int8_t calibrate(void)
Run the calibration to calculate uSec timing offsets for this platform.
Definition: ir_Mitsubishi.h:254
IRMitsubishi112::off
void off(void)
Set the requested power state of the A/C to off.
Definition: ir_Mitsubishi.cpp:1362
IRMitsubishiAC::setMode
void setMode(const uint8_t mode)
Set the operating mode of the A/C.
Definition: ir_Mitsubishi.cpp:512
Mitsubishi144Protocol::FanAuto
uint8_t FanAuto
Definition: ir_Mitsubishi.h:74
IRMitsubishi112::getRaw
uint8_t * getRaw(void)
Get a PTR to the internal state/code for this protocol.
Definition: ir_Mitsubishi.cpp:1347
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:1545
IRMitsubishi112::setSwingH
void setSwingH(const uint8_t position)
Set the Horizontal Swing mode of the A/C.
Definition: ir_Mitsubishi.cpp:1460
IRMitsubishi136::toCommonMode
static stdAc::opmode_t toCommonMode(const uint8_t mode)
Convert a native mode into its stdAc equivalent.
Definition: ir_Mitsubishi.cpp:1111
Mitsubishi144Protocol::Fan
uint8_t Fan
Definition: ir_Mitsubishi.h:71
IRMitsubishiAC::begin
void begin(void)
Set up hardware to be able to send a message.
Definition: ir_Mitsubishi.cpp:401
Mitsubishi112Protocol::raw
uint8_t raw[kMitsubishi112StateLength]
The state in code form.
Definition: ir_Mitsubishi.h:167
IRMitsubishiAC::IRMitsubishiAC
IRMitsubishiAC(const uint16_t pin, const bool inverted=false, const bool use_modulation=true)
Class constructor.
Definition: ir_Mitsubishi.cpp:386
kMitsubishi136FanMin
const uint8_t kMitsubishi136FanMin
Definition: ir_Mitsubishi.h:159
kMitsubishi136SwingVAuto
const uint8_t kMitsubishi136SwingVAuto
Definition: ir_Mitsubishi.h:158
IRMitsubishi112::_irsend
IRsend _irsend
Instance of the IR send class.
Definition: ir_Mitsubishi.h:407
kMitsubishi136Heat
const uint8_t kMitsubishi136Heat
Definition: ir_Mitsubishi.h:151
IRMitsubishi136::setTemp
void setTemp(const uint8_t degrees)
Set the temperature.
Definition: ir_Mitsubishi.cpp:984
Mitsubishi112Protocol::Power
uint8_t Power
Definition: ir_Mitsubishi.h:173
IRMitsubishiAC::toCommonMode
static stdAc::opmode_t toCommonMode(const uint8_t mode)
Convert a native mode into its stdAc equivalent.
Definition: ir_Mitsubishi.cpp:677
IRMitsubishi136::getMode
uint8_t getMode(void) const
Get the operating mode setting of the A/C.
Definition: ir_Mitsubishi.cpp:1010
IRMitsubishi136::checksum
void checksum(void)
Calculate the checksum for the current internal state of the remote.
Definition: ir_Mitsubishi.cpp:918
IRMitsubishiAC::getStartClock
uint8_t getStartClock(void) const
Get the desired start time of the A/C unit.
Definition: ir_Mitsubishi.cpp:568
kMitsubishi112FanMin
const uint8_t kMitsubishi112FanMin
Definition: ir_Mitsubishi.h:204
kMitsubishiAcFanRealMax
const uint8_t kMitsubishiAcFanRealMax
Definition: ir_Mitsubishi.h:99
kMitsubishiAcStartStopTimer
const uint8_t kMitsubishiAcStartStopTimer
Definition: ir_Mitsubishi.h:122
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:622
kMitsubishiAcVaneSwing
const uint8_t kMitsubishiAcVaneSwing
Definition: ir_Mitsubishi.h:110
kMitsubishi112SwingVHigh
const uint8_t kMitsubishi112SwingVHigh
Definition: ir_Mitsubishi.h:212
kMitsubishi112SwingHMiddle
const uint8_t kMitsubishi112SwingHMiddle
Definition: ir_Mitsubishi.h:218
kMitsubishi136SwingVLow
const uint8_t kMitsubishi136SwingVLow
Definition: ir_Mitsubishi.h:155
Mitsubishi144Protocol::HalfDegree
uint8_t HalfDegree
Definition: ir_Mitsubishi.h:65
IRMitsubishi112::_
Mitsubishi112Protocol _
Definition: ir_Mitsubishi.h:413
IRMitsubishiAC::getTimer
uint8_t getTimer(void) const
Get the timers active setting of the A/C.
Definition: ir_Mitsubishi.cpp:594
Mitsubishi144Protocol::Sum
uint8_t Sum
Definition: ir_Mitsubishi.h:88
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:1084
kMitsubishiAcVaneLow
const uint8_t kMitsubishiAcVaneLow
Definition: ir_Mitsubishi.h:108
kMitsubishiAcVaneAutoMove
const uint8_t kMitsubishiAcVaneAutoMove
Definition: ir_Mitsubishi.h:111
IRMitsubishiAC::send
void send(const uint16_t repeat=kMitsubishiACMinRepeat)
Send the current internal state as an IR message.
Definition: ir_Mitsubishi.cpp:406
IRMitsubishi136::getRaw
uint8_t * getRaw(void)
Get a PTR to the internal state/code for this protocol.
Definition: ir_Mitsubishi.cpp:953
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:537
Mitsubishi144Protocol::WeeklyTimer
uint8_t WeeklyTimer
Definition: ir_Mitsubishi.h:83
IRMitsubishi136::getQuiet
bool getQuiet(void) const
Get the Quiet mode of the A/C.
Definition: ir_Mitsubishi.cpp:1064
kMitsubishi112Auto
const uint8_t kMitsubishi112Auto
Definition: ir_Mitsubishi.h:198
IRMitsubishi112::getMode
uint8_t getMode(void) const
Get the operating mode setting of the A/C.
Definition: ir_Mitsubishi.cpp:1413
kMitsubishi136SwingVLowest
const uint8_t kMitsubishi136SwingVLowest
Definition: ir_Mitsubishi.h:154
kMitsubishiAcStartTimer
const uint8_t kMitsubishiAcStartTimer
Definition: ir_Mitsubishi.h:120
IRMitsubishi136::setRaw
void setRaw(const uint8_t *data)
Set the internal state from a valid code for this protocol.
Definition: ir_Mitsubishi.cpp:960
kMitsubishiAcWideVaneMiddle
const uint8_t kMitsubishiAcWideVaneMiddle
Definition: ir_Mitsubishi.h:114
kMitsubishiAcVaneMiddle
const uint8_t kMitsubishiAcVaneMiddle
Definition: ir_Mitsubishi.h:107
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:1097
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:1586
kMitsubishi112FanMax
const uint8_t kMitsubishi112FanMax
Definition: ir_Mitsubishi.h:207
kMitsubishiAcMaxTemp
const float kMitsubishiAcMaxTemp
Definition: ir_Mitsubishi.h:103
IRMitsubishiAC::getWideVane
uint8_t getWideVane(void) const
Get the Wide Vane (Horizontal Swing) mode of the A/C.
Definition: ir_Mitsubishi.cpp:549
Mitsubishi144Protocol::pad0
uint8_t pad0[5]
Definition: ir_Mitsubishi.h:54
IRMitsubishi112::on
void on(void)
Set the requested power state of the A/C to off.
Definition: ir_Mitsubishi.cpp:1359
Mitsubishi144Protocol::VaneBit
uint8_t VaneBit
Definition: ir_Mitsubishi.h:73
IRMitsubishi136::_irsend
IRsend _irsend
Instance of the IR send class.
Definition: ir_Mitsubishi.h:351
IRMitsubishi136::setSwingV
void setSwingV(const uint8_t position)
Set the Vertical Swing mode of the A/C.
Definition: ir_Mitsubishi.cpp:1033
kMitsubishi136FanQuiet
const uint8_t kMitsubishi136FanQuiet
Definition: ir_Mitsubishi.h:163
IRMitsubishi112::setQuiet
void setQuiet(const bool on)
Set the Quiet mode of the A/C.
Definition: ir_Mitsubishi.cpp:1487
Mitsubishi112Protocol
Native representation of a Mitsubishi 112-bit A/C message.
Definition: ir_Mitsubishi.h:166
IRMitsubishi112::setSwingV
void setSwingV(const uint8_t position)
Set the Vertical Swing mode of the A/C.
Definition: ir_Mitsubishi.cpp:1436
IRMitsubishi136::toCommon
stdAc::state_t toCommon(void) const
Convert the current internal state into its stdAc::state_t equivalent.
Definition: ir_Mitsubishi.cpp:1149
IRMitsubishi136::toCommonFanSpeed
static stdAc::fanspeed_t toCommonFanSpeed(const uint8_t speed)
Convert a native fan speed into its stdAc equivalent.
Definition: ir_Mitsubishi.cpp:1124
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:1600
Mitsubishi112Protocol::Mode
uint8_t Mode
Definition: ir_Mitsubishi.h:176
IRMitsubishi136::getSwingV
uint8_t getSwingV(void) const
Get the Vertical Swing mode of the A/C.
Definition: ir_Mitsubishi.cpp:1050
IRMitsubishi136::off
void off(void)
Set the requested power state of the A/C to off.
Definition: ir_Mitsubishi.cpp:968
Mitsubishi144Protocol
Native representation of a Mitsubishi 144-bit A/C message.
Definition: ir_Mitsubishi.h:50
Mitsubishi144Protocol::Mode
uint8_t Mode
Definition: ir_Mitsubishi.h:61
kMitsubishi136StateLength
const uint16_t kMitsubishi136StateLength
Definition: IRremoteESP8266.h:1025
kMitsubishi136SwingVHigh
const uint8_t kMitsubishi136SwingVHigh
Definition: ir_Mitsubishi.h:156
kMitsubishiAcCool
const uint8_t kMitsubishiAcCool
Definition: ir_Mitsubishi.h:94
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:705
kMitsubishiAcWideVaneWide
const uint8_t kMitsubishiAcWideVaneWide
Definition: ir_Mitsubishi.h:117
IRMitsubishiAC::toString
String toString(void) const
Convert the internal state into a human readable string.
Definition: ir_Mitsubishi.cpp:777
kMitsubishi112SwingHWide
const uint8_t kMitsubishi112SwingHWide
Definition: ir_Mitsubishi.h:221
IRMitsubishi136::on
void on(void)
Set the requested power state of the A/C to on.
Definition: ir_Mitsubishi.cpp:965
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:1531
kMitsubishi112Dry
const uint8_t kMitsubishi112Dry
Definition: ir_Mitsubishi.h:199
Mitsubishi136Protocol
Native representation of a Mitsubishi 136-bit A/C message.
Definition: ir_Mitsubishi.h:125
kMitsubishiAcWideVaneLeft
const uint8_t kMitsubishiAcWideVaneLeft
Definition: ir_Mitsubishi.h:113
IRMitsubishi136::getPower
bool getPower(void) const
Get the value of the current power setting.
Definition: ir_Mitsubishi.cpp:978
kMitsubishi136SwingVHighest
const uint8_t kMitsubishi136SwingVHighest
Definition: ir_Mitsubishi.h:157
IRMitsubishi136::setPower
void setPower(const bool on)
Change the power setting.
Definition: ir_Mitsubishi.cpp:972
kMitsubishiAcWideVaneLeftMax
const uint8_t kMitsubishiAcWideVaneLeftMax
Definition: ir_Mitsubishi.h:112
IRMitsubishiAC::setTimer
void setTimer(const uint8_t timer)
Set the timers active setting of the A/C.
Definition: ir_Mitsubishi.cpp:603
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:129
IRMitsubishiAC::off
void off(void)
Set the requested power state of the A/C to off.
Definition: ir_Mitsubishi.cpp:447
Mitsubishi136Protocol::SwingV
uint8_t SwingV
Definition: ir_Mitsubishi.h:142
kMitsubishi112StateLength
const uint16_t kMitsubishi112StateLength
Definition: IRremoteESP8266.h:1028
kMitsubishi112MaxTemp
const uint8_t kMitsubishi112MaxTemp
Definition: ir_Mitsubishi.h:202
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:928
Mitsubishi144Protocol::WideVane
uint8_t WideVane
Definition: ir_Mitsubishi.h:69
kMitsubishiAcDry
const uint8_t kMitsubishiAcDry
Definition: ir_Mitsubishi.h:95
IRMitsubishi136::setMode
void setMode(const uint8_t mode)
Set the operating mode of the A/C.
Definition: ir_Mitsubishi.cpp:1016
stdAc::opmode_t
opmode_t
Common A/C settings for A/C operating modes.
Definition: IRsend.h:46