Go to the documentation of this file.
38 #ifndef IR_MITSUBISHI_H_
39 #define IR_MITSUBISHI_H_
41 #define __STDC_LIMIT_MACROS
49 #include "IRsend_test.h"
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
254 explicit IRMitsubishiAC(
const uint16_t pin,
const bool inverted =
false,
255 const bool use_modulation =
true);
258 #if SEND_MITSUBISHI_AC
265 #endif // SEND_MITSUBISHI_AC
271 void setTemp(
const float degrees);
273 void setFan(
const uint8_t speed);
274 uint8_t
getFan(
void)
const;
275 void setMode(
const uint8_t mode);
277 void setVane(
const uint8_t position);
284 void setRaw(
const uint8_t* data);
322 explicit IRMitsubishi136(
const uint16_t pin,
const bool inverted =
false,
323 const bool use_modulation =
true);
325 #if SEND_MITSUBISHI136
332 #endif // SEND_MITSUBISHI136
340 void setTemp(
const uint8_t degrees);
342 void setFan(
const uint8_t speed);
343 uint8_t
getFan(
void)
const;
344 void setMode(
const uint8_t mode);
351 void setRaw(
const uint8_t* data);
376 explicit IRMitsubishi112(
const uint16_t pin,
const bool inverted =
false,
377 const bool use_modulation =
true);
379 #if SEND_MITSUBISHI112
386 #endif // SEND_MITSUBISHI112
392 void setTemp(
const uint8_t degrees);
394 void setFan(
const uint8_t speed);
395 uint8_t
getFan(
void)
const;
396 void setMode(
const uint8_t mode);
405 void setRaw(
const uint8_t* data);
429 #endif // IR_MITSUBISHI_H_
const uint8_t kMitsubishi112SwingVMiddle
Definition: ir_Mitsubishi.h:221
uint8_t VaneLeft
Definition: ir_Mitsubishi.h:94
uint8_t SwingV
Definition: ir_Mitsubishi.h:193
void setMode(const uint8_t mode)
Set the operating mode of the A/C.
Definition: ir_Mitsubishi.cpp:1363
const uint8_t kMitsubishi112SwingVLowest
Definition: ir_Mitsubishi.h:219
const uint8_t kMitsubishi112SwingVAuto
Definition: ir_Mitsubishi.h:224
uint8_t pad1[3]
Definition: ir_Mitsubishi.h:196
const uint8_t kMitsubishi112FanQuiet
Definition: ir_Mitsubishi.h:218
uint8_t Timer
Definition: ir_Mitsubishi.h:85
void stateReset(void)
Reset the state of the remote to a known good state/sequence.
Definition: ir_Mitsubishi.cpp:1266
const uint8_t kMitsubishi112SwingHLeft
Definition: ir_Mitsubishi.h:227
bool getQuiet(void) const
Get the Quiet mode of the A/C.
Definition: ir_Mitsubishi.cpp:1441
uint8_t getVane(void) const
Get the Vane (Vertical Swing) mode of the A/C.
Definition: ir_Mitsubishi.cpp:475
uint8_t StartClock
Definition: ir_Mitsubishi.h:83
const uint8_t kMitsubishi112FanMed
Definition: ir_Mitsubishi.h:216
const uint16_t kMitsubishiACStateLength
Definition: IRremoteESP8266.h:1094
uint8_t Fan
Definition: ir_Mitsubishi.h:192
const uint8_t kMitsubishiAcHeat
Definition: ir_Mitsubishi.h:105
const float kMitsubishiAcMinTemp
Definition: ir_Mitsubishi.h:112
const uint8_t kMitsubishiAcAuto
Definition: ir_Mitsubishi.h:102
Mitsubishi136Protocol _
Definition: ir_Mitsubishi.h:369
String toString(void) const
Convert the internal state into a human readable string.
Definition: ir_Mitsubishi.cpp:1119
void begin(void)
Set up hardware to be able to send a message.
Definition: ir_Mitsubishi.cpp:1279
uint8_t getTemp(void) const
Get the current temperature setting.
Definition: ir_Mitsubishi.cpp:936
uint8_t getFan(void) const
Get the current fan speed setting.
Definition: ir_Mitsubishi.cpp:1351
const uint8_t kMitsubishi112SwingHRight
Definition: ir_Mitsubishi.h:229
const uint8_t kMitsubishiAcFanSilent
Definition: ir_Mitsubishi.h:110
int8_t calibrate(void)
Run the calibration to calculate uSec timing offsets for this platform.
Definition: ir_Mitsubishi.h:385
uint8_t SwingH
Definition: ir_Mitsubishi.h:199
const uint8_t kMitsubishiAcVaneAuto
Definition: ir_Mitsubishi.h:114
const uint8_t kMitsubishi112SwingHRightMax
Definition: ir_Mitsubishi.h:230
void stateReset(void)
Reset the state of the remote to a known good state/sequence.
Definition: ir_Mitsubishi.cpp:852
uint8_t getClock(void) const
Get the clock time of the A/C unit.
Definition: ir_Mitsubishi.cpp:498
void begin(void)
Set up hardware to be able to send a message.
Definition: ir_Mitsubishi.cpp:885
stdAc::state_t toCommon(void) const
Convert the current internal state into its stdAc::state_t equivalent.
Definition: ir_Mitsubishi.cpp:1558
const uint16_t kMitsubishi136MinRepeat
Definition: IRremoteESP8266.h:1099
swingv_t
Common A/C settings for Vertical Swing.
Definition: IRsend.h:70
uint8_t getTemp(void) const
Get the current temperature setting.
Definition: ir_Mitsubishi.cpp:1330
const uint8_t kMitsubishiAcVaneHighest
Definition: ir_Mitsubishi.h:115
const uint8_t kMitsubishiAcWideVaneRightMax
Definition: ir_Mitsubishi.h:126
const uint8_t kMitsubishiAcWideVaneRight
Definition: ir_Mitsubishi.h:125
void stateReset(void)
Reset the state of the remote to a known good state/sequence.
Definition: ir_Mitsubishi.cpp:320
void setVane(const uint8_t position)
Set the requested vane (Vertical Swing) operation mode of the a/c unit.
Definition: ir_Mitsubishi.cpp:460
const uint8_t kMitsubishi136FanMed
Definition: ir_Mitsubishi.h:171
uint8_t raw[kMitsubishi136StateLength]
The state in code form.
Definition: ir_Mitsubishi.h:136
const uint8_t kMitsubishi136PowerByte
Definition: ir_Mitsubishi.h:156
uint8_t getSwingH(void) const
Get the Horizontal Swing mode of the A/C.
Definition: ir_Mitsubishi.cpp:1424
fanspeed_t
Common A/C settings for Fan Speeds.
Definition: IRsend.h:58
void setStopClock(const uint8_t clock)
Set the desired stop time of the A/C unit.
Definition: ir_Mitsubishi.cpp:527
const uint8_t kMitsubishi136MaxTemp
Definition: ir_Mitsubishi.h:158
float getTemp(void) const
Get the current temperature setting.
Definition: ir_Mitsubishi.cpp:407
uint8_t Temp
Definition: ir_Mitsubishi.h:189
static uint8_t convertMode(const stdAc::opmode_t mode)
Convert a stdAc::opmode_t enum into its native mode.
Definition: ir_Mitsubishi.cpp:1015
void setRaw(const uint8_t *data)
Set the internal state from a valid code for this protocol.
Definition: ir_Mitsubishi.cpp:349
void setFan(const uint8_t speed)
Set the speed of the fan.
Definition: ir_Mitsubishi.cpp:942
bool getPower(void) const
Get the value of the current power setting.
Definition: ir_Mitsubishi.cpp:386
const uint16_t kMitsubishi112MinRepeat
Definition: IRremoteESP8266.h:1102
void setRaw(const uint8_t *data)
Set the internal state from a valid code for this protocol.
Definition: ir_Mitsubishi.cpp:1298
void setTemp(const float degrees)
Set the temperature.
Definition: ir_Mitsubishi.cpp:393
void setStartClock(const uint8_t clock)
Set the desired start time of the A/C unit.
Definition: ir_Mitsubishi.cpp:515
const uint8_t kMitsubishi112FanLow
Definition: ir_Mitsubishi.h:215
static stdAc::fanspeed_t toCommonFanSpeed(const uint8_t speed)
Convert a native fan speed into its stdAc equivalent.
Definition: ir_Mitsubishi.cpp:1517
void checksum(void)
Calculate and set the checksum values for the internal state.
Definition: ir_Mitsubishi.cpp:354
uint8_t getFan(void) const
Get the current fan speed setting.
Definition: ir_Mitsubishi.cpp:948
const uint8_t kMitsubishi112Heat
Definition: ir_Mitsubishi.h:207
const uint8_t kMitsubishi112SwingHLeftMax
Definition: ir_Mitsubishi.h:226
static bool validChecksum(const uint8_t *data)
Verify the checksum is valid for a given state.
Definition: ir_Mitsubishi.cpp:361
int8_t calibrate(void)
Run the calibration to calculate uSec timing offsets for this platform.
Definition: ir_Mitsubishi.h:331
const uint8_t kMitsubishi112Cool
Definition: ir_Mitsubishi.h:206
void setQuiet(const bool on)
Set the Quiet mode of the A/C.
Definition: ir_Mitsubishi.cpp:1000
bool getPower(void) const
Get the value of the current power setting.
Definition: ir_Mitsubishi.cpp:1316
uint8_t StopClock
Definition: ir_Mitsubishi.h:81
const uint8_t kMitsubishiAcNoTimer
Definition: ir_Mitsubishi.h:129
uint8_t getVaneLeft(void) const
Get the Left Vane (Vertical Swing) mode of the A/C.
Definition: ir_Mitsubishi.cpp:493
void send(const uint16_t repeat=kMitsubishi112MinRepeat)
Send the current internal state as an IR message.
Definition: ir_Mitsubishi.cpp:1284
uint8_t getSwingV(void) const
Get the Vertical Swing mode of the A/C.
Definition: ir_Mitsubishi.cpp:1398
void setPower(const bool on)
Change the power setting.
Definition: ir_Mitsubishi.cpp:380
static stdAc::opmode_t toCommonMode(const uint8_t mode)
Convert a native mode into its stdAc equivalent.
Definition: ir_Mitsubishi.cpp:1505
static uint8_t calculateChecksum(const uint8_t *data)
Calculate the checksum for a given state.
Definition: ir_Mitsubishi.cpp:368
Class for sending all basic IR protocols.
Definition: IRsend.h:190
uint8_t Temp
Definition: ir_Mitsubishi.h:67
const uint8_t kMitsubishiAcVaneLowest
Definition: ir_Mitsubishi.h:119
int8_t calibrate(uint16_t hz=38000U)
Calculate & set any offsets to account for execution times during sending.
Definition: IRsend.cpp:207
const uint8_t kMitsubishi136Cool
Definition: ir_Mitsubishi.h:160
const uint8_t kMitsubishi136Dry
Definition: ir_Mitsubishi.h:163
IRMitsubishi112(const uint16_t pin, const bool inverted=false, const bool use_modulation=true)
Class constructor.
Definition: ir_Mitsubishi.cpp:1261
void setClock(const uint8_t clock)
Set the clock time on the A/C unit.
Definition: ir_Mitsubishi.cpp:503
bool getWeeklyTimerEnabled(void) const
Get the value of the WeeklyTimer Enabled setting.
Definition: ir_Mitsubishi.cpp:717
uint8_t Sum
Definition: ir_Mitsubishi.h:202
uint8_t getMode(void) const
Get the operating mode setting of the A/C.
Definition: ir_Mitsubishi.cpp:435
std::string String
Definition: IRremoteESP8266.h:1279
Class for handling detailed Mitsubishi 144-bit A/C messages.
Definition: ir_Mitsubishi.h:252
stdAc::state_t toCommon(void) const
Convert the current internal state into its stdAc::state_t equivalent.
Definition: ir_Mitsubishi.cpp:685
uint8_t Vane
Definition: ir_Mitsubishi.h:75
const uint8_t kMitsubishiAcVaneHigh
Definition: ir_Mitsubishi.h:116
String toString(void) const
Convert the internal state into a human readable string.
Definition: ir_Mitsubishi.cpp:1586
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
static stdAc::fanspeed_t toCommonFanSpeed(const uint8_t speed)
Convert a native fan speed into its stdAc equivalent.
Definition: ir_Mitsubishi.cpp:633
Class for handling detailed Mitsubishi 122-bit A/C messages.
Definition: ir_Mitsubishi.h:374
uint8_t Temp
Definition: ir_Mitsubishi.h:147
void setFan(const uint8_t speed)
Set the speed of the fan.
Definition: ir_Mitsubishi.cpp:413
const uint8_t kMitsubishi112SwingVLow
Definition: ir_Mitsubishi.h:220
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
void setTemp(const uint8_t degrees)
Set the temperature.
Definition: ir_Mitsubishi.cpp:1322
const uint8_t kMitsubishi112SwingHAuto
Definition: ir_Mitsubishi.h:232
const uint8_t kMitsubishi112MinTemp
Definition: ir_Mitsubishi.h:211
Class for handling detailed Mitsubishi 136-bit A/C messages.
Definition: ir_Mitsubishi.h:320
uint8_t Clock
Definition: ir_Mitsubishi.h:79
void setPower(const bool on)
Change the power setting.
Definition: ir_Mitsubishi.cpp:1310
void checksum(void)
Calculate the checksum for the current internal state of the remote.
Definition: ir_Mitsubishi.cpp:1274
swingh_t
Common A/C settings for Horizontal Swing.
Definition: IRsend.h:83
static uint8_t convertMode(const stdAc::opmode_t mode)
Convert a stdAc::opmode_t enum into its native mode.
Definition: ir_Mitsubishi.cpp:552
const uint8_t kMitsubishiAcStopTimer
Definition: ir_Mitsubishi.h:131
const uint8_t kMitsubishiAcFanMax
Definition: ir_Mitsubishi.h:108
uint8_t Mode
Definition: ir_Mitsubishi.h:145
uint8_t getFan(void) const
Get the current fan speed setting.
Definition: ir_Mitsubishi.cpp:427
const uint8_t kMitsubishi112SwingVHighest
Definition: ir_Mitsubishi.h:223
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
const uint8_t kMitsubishi136FanLow
Definition: ir_Mitsubishi.h:170
const uint16_t kMitsubishiACMinRepeat
Definition: IRremoteESP8266.h:1096
const uint8_t kMitsubishi136MinTemp
Definition: ir_Mitsubishi.h:157
uint8_t Power
Definition: ir_Mitsubishi.h:60
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(const uint16_t pin, const bool inverted=false, const bool use_modulation=true)
Class constructor.
Definition: ir_Mitsubishi.cpp:847
uint8_t pad0[5]
Definition: ir_Mitsubishi.h:180
IRsend _irsend
Instance of the IR send class.
Definition: ir_Mitsubishi.h:308
const uint8_t kMitsubishi136Auto
Definition: ir_Mitsubishi.h:162
Mitsubishi144Protocol _
Definition: ir_Mitsubishi.h:314
const uint8_t kMitsubishi136FanMax
Definition: ir_Mitsubishi.h:172
uint8_t * getRaw(void)
Get a PTR to the internal state/code for this protocol.
Definition: ir_Mitsubishi.cpp:342
const uint8_t kMitsubishiAcFanAuto
Definition: ir_Mitsubishi.h:107
void setWeeklyTimerEnabled(const bool on)
Change the Weekly Timer Enabled setting.
Definition: ir_Mitsubishi.cpp:711
uint8_t getStopClock(void) const
Get the desired stop time of the A/C unit.
Definition: ir_Mitsubishi.cpp:522
void on(void)
Set the requested power state of the A/C to on.
Definition: ir_Mitsubishi.cpp:373
uint8_t Fan
Definition: ir_Mitsubishi.h:150
const uint8_t kMitsubishiAcFanQuiet
Definition: ir_Mitsubishi.h:111
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
static uint8_t convertMode(const stdAc::opmode_t mode)
Convert a stdAc::opmode_t enum into its native mode.
Definition: ir_Mitsubishi.cpp:1448
uint8_t raw[kMitsubishiACStateLength]
The state in code form.
Definition: ir_Mitsubishi.h:54
const uint8_t kMitsubishiAcWideVaneAuto
Definition: ir_Mitsubishi.h:128
void send(const uint16_t repeat=kMitsubishi136MinRepeat)
Send the current internal state as an IR message.
Definition: ir_Mitsubishi.cpp:890
const uint8_t kMitsubishi136Fan
Definition: ir_Mitsubishi.h:159
void setFan(const uint8_t speed)
Set the speed of the fan.
Definition: ir_Mitsubishi.cpp:1336
uint8_t Power
Definition: ir_Mitsubishi.h:142
int8_t calibrate(void)
Run the calibration to calculate uSec timing offsets for this platform.
Definition: ir_Mitsubishi.h:264
void off(void)
Set the requested power state of the A/C to off.
Definition: ir_Mitsubishi.cpp:1306
void setMode(const uint8_t mode)
Set the operating mode of the A/C.
Definition: ir_Mitsubishi.cpp:441
uint8_t FanAuto
Definition: ir_Mitsubishi.h:77
uint8_t * getRaw(void)
Get a PTR to the internal state/code for this protocol.
Definition: ir_Mitsubishi.cpp:1291
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
void setSwingH(const uint8_t position)
Set the Horizontal Swing mode of the A/C.
Definition: ir_Mitsubishi.cpp:1404
static stdAc::opmode_t toCommonMode(const uint8_t mode)
Convert a native mode into its stdAc equivalent.
Definition: ir_Mitsubishi.cpp:1055
uint8_t Fan
Definition: ir_Mitsubishi.h:74
void begin(void)
Set up hardware to be able to send a message.
Definition: ir_Mitsubishi.cpp:330
uint8_t raw[kMitsubishi112StateLength]
The state in code form.
Definition: ir_Mitsubishi.h:177
IRMitsubishiAC(const uint16_t pin, const bool inverted=false, const bool use_modulation=true)
Class constructor.
Definition: ir_Mitsubishi.cpp:315
const uint8_t kMitsubishi136FanMin
Definition: ir_Mitsubishi.h:169
const uint8_t kMitsubishi136SwingVAuto
Definition: ir_Mitsubishi.h:168
IRsend _irsend
Instance of the IR send class.
Definition: ir_Mitsubishi.h:419
const uint8_t kMitsubishi136Heat
Definition: ir_Mitsubishi.h:161
void setTemp(const uint8_t degrees)
Set the temperature.
Definition: ir_Mitsubishi.cpp:928
uint8_t Power
Definition: ir_Mitsubishi.h:183
static stdAc::opmode_t toCommonMode(const uint8_t mode)
Convert a native mode into its stdAc equivalent.
Definition: ir_Mitsubishi.cpp:620
uint8_t getMode(void) const
Get the operating mode setting of the A/C.
Definition: ir_Mitsubishi.cpp:954
void checksum(void)
Calculate the checksum for the current internal state of the remote.
Definition: ir_Mitsubishi.cpp:862
uint8_t getStartClock(void) const
Get the desired start time of the A/C unit.
Definition: ir_Mitsubishi.cpp:510
const uint8_t kMitsubishi112FanMin
Definition: ir_Mitsubishi.h:214
const uint8_t kMitsubishiAcFanRealMax
Definition: ir_Mitsubishi.h:109
const uint8_t kMitsubishiAcStartStopTimer
Definition: ir_Mitsubishi.h:132
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
const uint8_t kMitsubishiAcVaneSwing
Definition: ir_Mitsubishi.h:120
const uint8_t kMitsubishi112SwingVHigh
Definition: ir_Mitsubishi.h:222
const uint8_t kMitsubishi112SwingHMiddle
Definition: ir_Mitsubishi.h:228
const uint8_t kMitsubishi136SwingVLow
Definition: ir_Mitsubishi.h:165
uint8_t HalfDegree
Definition: ir_Mitsubishi.h:68
Mitsubishi112Protocol _
Definition: ir_Mitsubishi.h:425
uint8_t getTimer(void) const
Get the timers active setting of the A/C.
Definition: ir_Mitsubishi.cpp:536
uint8_t Sum
Definition: ir_Mitsubishi.h:97
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
const uint8_t kMitsubishiAcVaneLow
Definition: ir_Mitsubishi.h:118
const uint8_t kMitsubishiAcVaneAutoMove
Definition: ir_Mitsubishi.h:121
void send(const uint16_t repeat=kMitsubishiACMinRepeat)
Send the current internal state as an IR message.
Definition: ir_Mitsubishi.cpp:335
uint8_t * getRaw(void)
Get a PTR to the internal state/code for this protocol.
Definition: ir_Mitsubishi.cpp:897
void setWideVane(const uint8_t position)
Set the requested wide-vane (Horizontal Swing) operation mode of the a/c.
Definition: ir_Mitsubishi.cpp:468
uint8_t WeeklyTimer
Definition: ir_Mitsubishi.h:86
bool getQuiet(void) const
Get the Quiet mode of the A/C.
Definition: ir_Mitsubishi.cpp:1008
const uint8_t kMitsubishi112Auto
Definition: ir_Mitsubishi.h:208
uint8_t getMode(void) const
Get the operating mode setting of the A/C.
Definition: ir_Mitsubishi.cpp:1357
const uint8_t kMitsubishi136SwingVLowest
Definition: ir_Mitsubishi.h:164
const uint8_t kMitsubishiAcStartTimer
Definition: ir_Mitsubishi.h:130
void setRaw(const uint8_t *data)
Set the internal state from a valid code for this protocol.
Definition: ir_Mitsubishi.cpp:904
const uint8_t kMitsubishiAcWideVaneMiddle
Definition: ir_Mitsubishi.h:124
const uint8_t kMitsubishiAcVaneMiddle
Definition: ir_Mitsubishi.h:117
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
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
const uint8_t kMitsubishi112FanMax
Definition: ir_Mitsubishi.h:217
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
const float kMitsubishiAcMaxTemp
Definition: ir_Mitsubishi.h:113
uint8_t getWideVane(void) const
Get the Wide Vane (Horizontal Swing) mode of the A/C.
Definition: ir_Mitsubishi.cpp:481
uint8_t pad0[5]
Definition: ir_Mitsubishi.h:57
void on(void)
Set the requested power state of the A/C to off.
Definition: ir_Mitsubishi.cpp:1303
uint8_t VaneBit
Definition: ir_Mitsubishi.h:76
IRsend _irsend
Instance of the IR send class.
Definition: ir_Mitsubishi.h:363
void setSwingV(const uint8_t position)
Set the Vertical Swing mode of the A/C.
Definition: ir_Mitsubishi.cpp:977
const uint8_t kMitsubishi136FanQuiet
Definition: ir_Mitsubishi.h:173
void setQuiet(const bool on)
Set the Quiet mode of the A/C.
Definition: ir_Mitsubishi.cpp:1431
Native representation of a Mitsubishi 112-bit A/C message.
Definition: ir_Mitsubishi.h:176
void setSwingV(const uint8_t position)
Set the Vertical Swing mode of the A/C.
Definition: ir_Mitsubishi.cpp:1380
stdAc::state_t toCommon(void) const
Convert the current internal state into its stdAc::state_t equivalent.
Definition: ir_Mitsubishi.cpp:1093
static stdAc::fanspeed_t toCommonFanSpeed(const uint8_t speed)
Convert a native fan speed into its stdAc equivalent.
Definition: ir_Mitsubishi.cpp:1068
const uint8_t kMitsubishiAcFan
Definition: ir_Mitsubishi.h:106
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
uint8_t Mode
Definition: ir_Mitsubishi.h:186
uint8_t getSwingV(void) const
Get the Vertical Swing mode of the A/C.
Definition: ir_Mitsubishi.cpp:994
void off(void)
Set the requested power state of the A/C to off.
Definition: ir_Mitsubishi.cpp:912
Native representation of a Mitsubishi 144-bit A/C message.
Definition: ir_Mitsubishi.h:53
uint8_t Mode
Definition: ir_Mitsubishi.h:64
const uint16_t kMitsubishi136StateLength
Definition: IRremoteESP8266.h:1097
const uint8_t kMitsubishi136SwingVHigh
Definition: ir_Mitsubishi.h:166
const uint8_t kMitsubishiAcCool
Definition: ir_Mitsubishi.h:103
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
const uint8_t kMitsubishiAcWideVaneWide
Definition: ir_Mitsubishi.h:127
String toString(void) const
Convert the internal state into a human readable string.
Definition: ir_Mitsubishi.cpp:721
const uint8_t kMitsubishi112SwingHWide
Definition: ir_Mitsubishi.h:231
void on(void)
Set the requested power state of the A/C to on.
Definition: ir_Mitsubishi.cpp:909
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
const uint8_t kMitsubishi112Dry
Definition: ir_Mitsubishi.h:209
Native representation of a Mitsubishi 136-bit A/C message.
Definition: ir_Mitsubishi.h:135
const uint8_t kMitsubishiAcWideVaneLeft
Definition: ir_Mitsubishi.h:123
bool getPower(void) const
Get the value of the current power setting.
Definition: ir_Mitsubishi.cpp:922
const uint8_t kMitsubishi136SwingVHighest
Definition: ir_Mitsubishi.h:167
void setPower(const bool on)
Change the power setting.
Definition: ir_Mitsubishi.cpp:916
const uint8_t kMitsubishiAcWideVaneLeftMax
Definition: ir_Mitsubishi.h:122
void setTimer(const uint8_t timer)
Set the timers active setting of the A/C.
Definition: ir_Mitsubishi.cpp:545
Structure to hold a common A/C state.
Definition: IRsend.h:97
uint8_t pad[5]
Definition: ir_Mitsubishi.h:139
void off(void)
Set the requested power state of the A/C to off.
Definition: ir_Mitsubishi.cpp:376
uint8_t SwingV
Definition: ir_Mitsubishi.h:152
const uint16_t kMitsubishi112StateLength
Definition: IRremoteESP8266.h:1100
const uint8_t kMitsubishi112MaxTemp
Definition: ir_Mitsubishi.h:212
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
uint8_t WideVane
Definition: ir_Mitsubishi.h:72
const uint8_t kMitsubishiAcDry
Definition: ir_Mitsubishi.h:104
void setMode(const uint8_t mode)
Set the operating mode of the A/C.
Definition: ir_Mitsubishi.cpp:960
opmode_t
Common A/C settings for A/C operating modes.
Definition: IRsend.h:46