Go to the documentation of this file.
29 #ifndef IR_MITSUBISHI_H_
30 #define IR_MITSUBISHI_H_
32 #define __STDC_LIMIT_MACROS
40 #include "IRsend_test.h"
150 #define MITSUBISHI_AC_VANE_AUTO_MOVE kMitsubishiAcVaneAutoMove
151 #define MITSUBISHI_AC_VANE_AUTO kMitsubishiAcVaneAuto
152 #define MITSUBISHI_AC_POWER kMitsubishiAcPower
153 #define MITSUBISHI_AC_MIN_TEMP kMitsubishiAcMinTemp
154 #define MITSUBISHI_AC_MAX_TEMP kMitsubishiAcMaxTemp
155 #define MITSUBISHI_AC_HEAT kMitsubishiAcHeat
156 #define MITSUBISHI_AC_FAN_SILENT kMitsubishiAcFanSilent
157 #define MITSUBISHI_AC_FAN_REAL_MAX kMitsubishiAcFanRealMax
158 #define MITSUBISHI_AC_FAN_MAX kMitsubishiAcFanMax
159 #define MITSUBISHI_AC_FAN_AUTO kMitsubishiAcFanAuto
160 #define MITSUBISHI_AC_DRY kMitsubishiAcDry
161 #define MITSUBISHI_AC_COOL kMitsubishiAcCool
162 #define MITSUBISHI_AC_AUTO kMitsubishiAcAuto
170 explicit IRMitsubishiAC(
const uint16_t pin,
const bool inverted =
false,
171 const bool use_modulation =
true);
174 #if SEND_MITSUBISHI_AC
181 #endif // SEND_MITSUBISHI_AC
187 void setTemp(
const uint8_t degrees);
189 void setFan(
const uint8_t speed);
191 void setMode(
const uint8_t mode);
193 void setVane(
const uint8_t position);
198 void setRaw(
const uint8_t* data);
234 explicit IRMitsubishi136(
const uint16_t pin,
const bool inverted =
false,
235 const bool use_modulation =
true);
237 #if SEND_MITSUBISHI136
244 #endif // SEND_MITSUBISHI136
252 void setTemp(
const uint8_t degrees);
254 void setFan(
const uint8_t speed);
256 void setMode(
const uint8_t mode);
263 void setRaw(
const uint8_t* data);
288 explicit IRMitsubishi112(
const uint16_t pin,
const bool inverted =
false,
289 const bool use_modulation =
true);
291 #if SEND_MITSUBISHI112
298 #endif // SEND_MITSUBISHI112
304 void setTemp(
const uint8_t degrees);
306 void setFan(
const uint8_t speed);
308 void setMode(
const uint8_t mode);
317 void setRaw(
const uint8_t* data);
341 #endif // IR_MITSUBISHI_H_
const uint8_t kMitsubishi112SwingVMiddle
Definition: ir_Mitsubishi.h:133
void setMode(const uint8_t mode)
Set the operating mode of the A/C.
Definition: ir_Mitsubishi.cpp:1399
const uint8_t kMitsubishi112SwingVLowest
Definition: ir_Mitsubishi.h:131
const uint8_t kMitsubishi112ModeOffset
Definition: ir_Mitsubishi.h:109
const uint8_t kMitsubishi112SwingVAuto
Definition: ir_Mitsubishi.h:136
const uint8_t kMitsubishi112FanQuiet
Definition: ir_Mitsubishi.h:127
void stateReset(void)
Reset the state of the remote to a known good state/sequence.
Definition: ir_Mitsubishi.cpp:1295
const uint8_t kMitsubishi112SwingHLeft
Definition: ir_Mitsubishi.h:142
const uint8_t kMitsubishi136ModeByte
Definition: ir_Mitsubishi.h:79
const uint8_t kMitsubishi112FanMed
Definition: ir_Mitsubishi.h:125
const uint16_t kMitsubishiACStateLength
Definition: IRremoteESP8266.h:957
const uint8_t kMitsubishiAcHeat
Definition: ir_Mitsubishi.h:49
const uint8_t kMitsubishiAcAuto
Definition: ir_Mitsubishi.h:46
void begin(void)
Set up hardware to be able to send a message.
Definition: ir_Mitsubishi.cpp:1309
const uint8_t kMitsubishi112ModeByte
Definition: ir_Mitsubishi.h:108
const uint8_t kMitsubishi112SwingHRight
Definition: ir_Mitsubishi.h:144
const uint8_t kMitsubishiAcFanSilent
Definition: ir_Mitsubishi.h:58
int8_t calibrate(void)
Run the calibration to calculate uSec timing offsets for this platform.
Definition: ir_Mitsubishi.h:297
const uint8_t kMitsubishiAcVaneAuto
Definition: ir_Mitsubishi.h:65
const uint8_t kMitsubishi112SwingHRightMax
Definition: ir_Mitsubishi.h:145
void stateReset(void)
Reset the state of the remote to a known good state/sequence.
Definition: ir_Mitsubishi.cpp:874
bool getPower(void)
Get the value of the current power setting.
Definition: ir_Mitsubishi.cpp:454
void begin(void)
Set up hardware to be able to send a message.
Definition: ir_Mitsubishi.cpp:907
uint8_t getMode(void)
Get the operating mode setting of the A/C.
Definition: ir_Mitsubishi.cpp:498
uint8_t getStopClock(void)
Get the desired stop time of the A/C unit.
Definition: ir_Mitsubishi.cpp:574
bool getQuiet(void)
Get the Quiet mode of the A/C.
Definition: ir_Mitsubishi.cpp:1482
const uint16_t kMitsubishi136MinRepeat
Definition: IRremoteESP8266.h:962
swingv_t
Common A/C settings for Vertical Swing.
Definition: IRsend.h:70
const uint8_t kMitsubishiAcFanOffset
Definition: ir_Mitsubishi.h:52
void stateReset(void)
Reset the state of the remote to a known good state/sequence.
Definition: ir_Mitsubishi.cpp:388
void setVane(const uint8_t position)
Set the requested vane (Vertical Swing) operation mode of the a/c unit.
Definition: ir_Mitsubishi.cpp:520
const uint8_t kMitsubishi136FanMed
Definition: ir_Mitsubishi.h:98
const uint8_t kMitsubishi136PowerByte
Definition: ir_Mitsubishi.h:73
fanspeed_t
Common A/C settings for Fan Speeds.
Definition: IRsend.h:58
const uint8_t kMitsubishi136PowerBit
Definition: ir_Mitsubishi.h:75
void setStopClock(const uint8_t clock)
Set the desired stop time of the A/C unit.
Definition: ir_Mitsubishi.cpp:579
const uint8_t kMitsubishi136MaxTemp
Definition: ir_Mitsubishi.h:78
static uint8_t convertMode(const stdAc::opmode_t mode)
Convert a stdAc::opmode_t enum into its native mode.
Definition: ir_Mitsubishi.cpp:1046
void setRaw(const uint8_t *data)
Set the internal state from a valid code for this protocol.
Definition: ir_Mitsubishi.cpp:417
void setFan(const uint8_t speed)
Set the speed of the fan.
Definition: ir_Mitsubishi.cpp:967
const uint16_t kMitsubishi112MinRepeat
Definition: IRremoteESP8266.h:965
void setRaw(const uint8_t *data)
Set the internal state from a valid code for this protocol.
Definition: ir_Mitsubishi.cpp:1328
void setStartClock(const uint8_t clock)
Set the desired start time of the A/C unit.
Definition: ir_Mitsubishi.cpp:567
const uint8_t kMitsubishi112FanLow
Definition: ir_Mitsubishi.h:124
static stdAc::fanspeed_t toCommonFanSpeed(const uint8_t speed)
Convert a native fan speed into its stdAc equivilant.
Definition: ir_Mitsubishi.cpp:1558
const uint8_t kMitsubishi136FanSize
Definition: ir_Mitsubishi.h:95
void checksum(void)
Calculate and set the checksum values for the internal state.
Definition: ir_Mitsubishi.cpp:422
const uint8_t kMitsubishi136SwingVByte
Definition: ir_Mitsubishi.h:86
const uint8_t kMitsubishi112Heat
Definition: ir_Mitsubishi.h:111
uint8_t getMode(void)
Get the operating mode setting of the A/C.
Definition: ir_Mitsubishi.cpp:981
uint8_t getTemp(void)
Get the current temperature setting.
Definition: ir_Mitsubishi.cpp:960
const uint8_t kMitsubishi112SwingHLeftMax
Definition: ir_Mitsubishi.h:141
bool getQuiet(void)
Get the Quiet mode of the A/C.
Definition: ir_Mitsubishi.cpp:1039
static bool validChecksum(const uint8_t *data)
Verify the checksum is valid for a given state.
Definition: ir_Mitsubishi.cpp:429
uint8_t getClock(void)
Get the clock time of the A/C unit.
Definition: ir_Mitsubishi.cpp:550
int8_t calibrate(void)
Run the calibration to calculate uSec timing offsets for this platform.
Definition: ir_Mitsubishi.h:243
const uint8_t kMitsubishi112Cool
Definition: ir_Mitsubishi.h:110
const uint8_t kMitsubishi112PowerByte
Definition: ir_Mitsubishi.h:105
void setQuiet(const bool on)
Set the Quiet mode of the A/C.
Definition: ir_Mitsubishi.cpp:1031
const uint8_t kMitsubishiAcNoTimer
Definition: ir_Mitsubishi.h:67
void send(const uint16_t repeat=kMitsubishi112MinRepeat)
Send the current internal state as an IR message.
Definition: ir_Mitsubishi.cpp:1314
uint8_t getFan(void)
Get the current fan speed setting.
Definition: ir_Mitsubishi.cpp:489
void setPower(const bool on)
Change the power setting.
Definition: ir_Mitsubishi.cpp:448
static stdAc::opmode_t toCommonMode(const uint8_t mode)
Convert a native mode into its stdAc equivilant.
Definition: ir_Mitsubishi.cpp:1546
static uint8_t calculateChecksum(const uint8_t *data)
Calculate the checksum for a given state.
Definition: ir_Mitsubishi.cpp:436
Class for sending all basic IR protocols.
Definition: IRsend.h:176
uint8_t getWideVane(void)
Get the Wide Vane (Horizontal Swing) mode of the A/C.
Definition: ir_Mitsubishi.cpp:543
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:82
const uint8_t kMitsubishi136Dry
Definition: ir_Mitsubishi.h:85
IRMitsubishi112(const uint16_t pin, const bool inverted=false, const bool use_modulation=true)
Class constructor.
Definition: ir_Mitsubishi.cpp:1290
void setClock(const uint8_t clock)
Set the clock time on the A/C unit.
Definition: ir_Mitsubishi.cpp:555
const uint8_t kMitsubishiAcPowerOffset
Definition: ir_Mitsubishi.h:50
uint8_t getStartClock(void)
Get the desired start time of the A/C unit.
Definition: ir_Mitsubishi.cpp:562
uint8_t getTemp(void)
Get the current temperature setting.
Definition: ir_Mitsubishi.cpp:1362
std::string String
Definition: IRremoteESP8266.h:1128
Class for handling detailed Mitsubishi 144-bit A/C messages.
Definition: ir_Mitsubishi.h:168
static uint8_t convertSwingV(const stdAc::swingv_t position)
Convert a stdAc::swingv_t enum into it's native setting.
Definition: ir_Mitsubishi.cpp:631
static stdAc::fanspeed_t toCommonFanSpeed(const uint8_t speed)
Convert a native fan speed into its stdAc equivilant.
Definition: ir_Mitsubishi.cpp:674
Class for handling detailed Mitsubishi 122-bit A/C messages.
Definition: ir_Mitsubishi.h:286
void setFan(const uint8_t speed)
Set the speed of the fan.
Definition: ir_Mitsubishi.cpp:474
uint8_t getFan(void)
Get the current fan speed setting.
Definition: ir_Mitsubishi.cpp:1385
const uint8_t kMitsubishi112SwingVLow
Definition: ir_Mitsubishi.h:132
const uint8_t kMitsubishiAcFanSize
Definition: ir_Mitsubishi.h:53
static uint8_t convertSwingH(const stdAc::swingh_t position)
Convert a stdAc::swingh_t enum into it's native setting.
Definition: ir_Mitsubishi.cpp:646
void setTemp(const uint8_t degrees)
Set the temperature.
Definition: ir_Mitsubishi.cpp:1353
uint8_t getVane(void)
Get the Vane (Vertical Swing) mode of the A/C.
Definition: ir_Mitsubishi.cpp:536
const uint8_t kMitsubishi112SwingHAuto
Definition: ir_Mitsubishi.h:147
const uint8_t kMitsubishi112MinTemp
Definition: ir_Mitsubishi.h:117
Class for handling detailed Mitsubishi 136-bit A/C messages.
Definition: ir_Mitsubishi.h:232
void setPower(const bool on)
Change the power setting.
Definition: ir_Mitsubishi.cpp:1340
void checksum(void)
Calculate the checksum for the current internal state of the remote.
Definition: ir_Mitsubishi.cpp:1303
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:604
String toString(void)
Convert the internal state into a human readable string.
Definition: ir_Mitsubishi.cpp:1150
const uint8_t kMitsubishi112TempByte
Definition: ir_Mitsubishi.h:115
const uint8_t kMitsubishiAcStopTimer
Definition: ir_Mitsubishi.h:69
String toString(void)
Convert the internal state into a human readable string.
Definition: ir_Mitsubishi.cpp:1627
const uint8_t kMitsubishiAcVaneSize
Definition: ir_Mitsubishi.h:64
const uint8_t kMitsubishiAcFanMax
Definition: ir_Mitsubishi.h:56
const uint8_t kMitsubishi112SwingVHighest
Definition: ir_Mitsubishi.h:135
static stdAc::swingh_t toCommonSwingH(const uint8_t pos)
Convert a native horizontal swing postion to it's common equivalent.
Definition: ir_Mitsubishi.cpp:702
const uint8_t kMitsubishi136FanLow
Definition: ir_Mitsubishi.h:97
const uint16_t kMitsubishiACMinRepeat
Definition: IRremoteESP8266.h:959
const uint8_t kMitsubishi136MinTemp
Definition: ir_Mitsubishi.h:77
const uint8_t kMitsubishi112SwingVOffset
Definition: ir_Mitsubishi.h:129
const uint8_t kMitsubishi112SwingVSize
Definition: ir_Mitsubishi.h:130
static stdAc::swingv_t toCommonSwingV(const uint8_t pos)
Convert a native vertical swing postion to it's common equivalent.
Definition: ir_Mitsubishi.cpp:1112
IRMitsubishi136(const uint16_t pin, const bool inverted=false, const bool use_modulation=true)
Class constructor.
Definition: ir_Mitsubishi.cpp:869
uint8_t remote_state[kMitsubishi112StateLength]
The state in code form.
Definition: ir_Mitsubishi.h:337
IRsend _irsend
Instance of the IR send class.
Definition: ir_Mitsubishi.h:220
const uint8_t kMitsubishi136Auto
Definition: ir_Mitsubishi.h:84
stdAc::state_t toCommon(void)
Convert the current internal state into its stdAc::state_t equivilant.
Definition: ir_Mitsubishi.cpp:1599
const uint8_t kMitsubishi112TempSize
Definition: ir_Mitsubishi.h:116
const uint8_t kMitsubishi136FanMax
Definition: ir_Mitsubishi.h:99
uint8_t * getRaw(void)
Get a PTR to the internal state/code for this protocol.
Definition: ir_Mitsubishi.cpp:410
const uint8_t kMitsubishiAcFanAuto
Definition: ir_Mitsubishi.h:54
void on(void)
Set the requested power state of the A/C to on.
Definition: ir_Mitsubishi.cpp:441
String toString(void)
Convert the internal state into a human readable string.
Definition: ir_Mitsubishi.cpp:742
stdAc::state_t toCommon(void)
Convert the current internal state into its stdAc::state_t equivilant.
Definition: ir_Mitsubishi.cpp:1124
const uint8_t kMitsubishiAcVaneOffset
Definition: ir_Mitsubishi.h:63
const uint8_t kMitsubishiAcFanQuiet
Definition: ir_Mitsubishi.h:59
static uint8_t convertFan(const stdAc::fanspeed_t speed)
Convert a stdAc::fanspeed_t enum into it's native speed.
Definition: ir_Mitsubishi.cpp:1502
static uint8_t convertMode(const stdAc::opmode_t mode)
Convert a stdAc::opmode_t enum into its native mode.
Definition: ir_Mitsubishi.cpp:1489
const uint8_t kMitsubishiAcWideVaneAuto
Definition: ir_Mitsubishi.h:71
const uint8_t kMitsubishi112PowerOffset
Definition: ir_Mitsubishi.h:106
void send(const uint16_t repeat=kMitsubishi136MinRepeat)
Send the current internal state as an IR message.
Definition: ir_Mitsubishi.cpp:912
const uint8_t kMitsubishi136Fan
Definition: ir_Mitsubishi.h:81
void setFan(const uint8_t speed)
Set the speed of the fan.
Definition: ir_Mitsubishi.cpp:1369
int8_t calibrate(void)
Run the calibration to calculate uSec timing offsets for this platform.
Definition: ir_Mitsubishi.h:180
void off(void)
Set the requested power state of the A/C to off.
Definition: ir_Mitsubishi.cpp:1336
void setMode(const uint8_t mode)
Set the operating mode of the A/C.
Definition: ir_Mitsubishi.cpp:504
const uint8_t kMitsubishi136FanOffset
Definition: ir_Mitsubishi.h:94
uint8_t * getRaw(void)
Get a PTR to the internal state/code for this protocol.
Definition: ir_Mitsubishi.cpp:1321
static uint8_t convertSwingH(const stdAc::swingh_t position)
Convert a stdAc::swingh_t enum into it's native setting.
Definition: ir_Mitsubishi.cpp:1530
void setSwingH(const uint8_t position)
Set the Horizontal Swing mode of the A/C.
Definition: ir_Mitsubishi.cpp:1443
static stdAc::opmode_t toCommonMode(const uint8_t mode)
Convert a native mode into its stdAc equivilant.
Definition: ir_Mitsubishi.cpp:1086
const uint8_t kMitsubishi112SwingVByte
Definition: ir_Mitsubishi.h:128
void begin(void)
Set up hardware to be able to send a message.
Definition: ir_Mitsubishi.cpp:398
uint8_t remote_state[kMitsubishi136StateLength]
The state in code form.
Definition: ir_Mitsubishi.h:281
IRMitsubishiAC(const uint16_t pin, const bool inverted=false, const bool use_modulation=true)
Class constructor.
Definition: ir_Mitsubishi.cpp:383
const uint8_t kMitsubishi112SwingHSize
Definition: ir_Mitsubishi.h:139
const uint8_t kMitsubishi136FanMin
Definition: ir_Mitsubishi.h:96
const uint8_t kMitsubishi136SwingVAuto
Definition: ir_Mitsubishi.h:91
const uint8_t kMitsubishiAcVaneBitOffset
Definition: ir_Mitsubishi.h:62
IRsend _irsend
Instance of the IR send class.
Definition: ir_Mitsubishi.h:331
const uint8_t kMitsubishi136Heat
Definition: ir_Mitsubishi.h:83
void setTemp(const uint8_t degrees)
Set the temperature.
Definition: ir_Mitsubishi.cpp:951
static stdAc::opmode_t toCommonMode(const uint8_t mode)
Convert a native mode into its stdAc equivilant.
Definition: ir_Mitsubishi.cpp:662
void checksum(void)
Calculate the checksum for the current internal state of the remote.
Definition: ir_Mitsubishi.cpp:884
const uint8_t kMitsubishi112FanMin
Definition: ir_Mitsubishi.h:123
uint8_t getFan(void)
Get the current fan speed setting.
Definition: ir_Mitsubishi.cpp:974
const uint8_t kMitsubishiAcModeOffset
Definition: ir_Mitsubishi.h:45
const uint8_t kMitsubishiAcFanRealMax
Definition: ir_Mitsubishi.h:57
const uint8_t kMitsubishiAcStartStopTimer
Definition: ir_Mitsubishi.h:70
static uint8_t convertFan(const stdAc::fanspeed_t speed)
Convert a stdAc::fanspeed_t enum into it's native speed.
Definition: ir_Mitsubishi.cpp:616
uint8_t getTimer(void)
Get the timers active setting of the A/C.
Definition: ir_Mitsubishi.cpp:588
const uint8_t kMitsubishi112FanByte
Definition: ir_Mitsubishi.h:120
const uint8_t kMitsubishi112SwingVHigh
Definition: ir_Mitsubishi.h:134
const uint8_t kMitsubishi112SwingHMiddle
Definition: ir_Mitsubishi.h:143
bool getPower(void)
Get the value of the current power setting.
Definition: ir_Mitsubishi.cpp:1346
const uint8_t kMitsubishi136SwingVLow
Definition: ir_Mitsubishi.h:88
const uint8_t kMitsubishi112FanSize
Definition: ir_Mitsubishi.h:122
static uint8_t convertFan(const stdAc::fanspeed_t speed)
Convert a stdAc::fanspeed_t enum into it's native speed.
Definition: ir_Mitsubishi.cpp:1059
const uint8_t kMitsubishiAcVaneAutoMove
Definition: ir_Mitsubishi.h:66
void send(const uint16_t repeat=kMitsubishiACMinRepeat)
Send the current internal state as an IR message.
Definition: ir_Mitsubishi.cpp:403
uint8_t * getRaw(void)
Get a PTR to the internal state/code for this protocol.
Definition: ir_Mitsubishi.cpp:919
void setWideVane(const uint8_t position)
Set the requested wide-vane (Horizontal Swing) operation mode of the a/c.
Definition: ir_Mitsubishi.cpp:529
uint8_t getSwingV(void)
Get the Vertical Swing mode of the A/C.
Definition: ir_Mitsubishi.cpp:1024
const uint8_t kMitsubishi112SwingHByte
Definition: ir_Mitsubishi.h:138
uint8_t getSwingV(void)
Get the Vertical Swing mode of the A/C.
Definition: ir_Mitsubishi.cpp:1436
const uint8_t kMitsubishi112Auto
Definition: ir_Mitsubishi.h:112
const uint8_t kMitsubishiAcMinTemp
Definition: ir_Mitsubishi.h:60
const uint8_t kMitsubishi136SwingVLowest
Definition: ir_Mitsubishi.h:87
const uint8_t kMitsubishiAcStartTimer
Definition: ir_Mitsubishi.h:68
void setRaw(const uint8_t *data)
Set the internal state from a valid code for this protocol.
Definition: ir_Mitsubishi.cpp:926
const uint8_t kMitsubishi136FanByte
Definition: ir_Mitsubishi.h:92
static uint8_t convertSwingV(const stdAc::swingv_t position)
Convert a stdAc::swingv_t enum into it's native setting.
Definition: ir_Mitsubishi.cpp:1072
static stdAc::swingv_t toCommonSwingV(const uint8_t pos)
Convert a native vertical swing postion to it's common equivalent.
Definition: ir_Mitsubishi.cpp:1571
const uint8_t kMitsubishi136PowerOffset
Definition: ir_Mitsubishi.h:74
const uint8_t kMitsubishi112FanMax
Definition: ir_Mitsubishi.h:126
void on(void)
Set the requested power state of the A/C to off.
Definition: ir_Mitsubishi.cpp:1333
IRsend _irsend
Instance of the IR send class.
Definition: ir_Mitsubishi.h:275
void setSwingV(const uint8_t position)
Set the Vertical Swing mode of the A/C.
Definition: ir_Mitsubishi.cpp:1006
const uint8_t kMitsubishi136TempByte
Definition: ir_Mitsubishi.h:76
uint8_t getTemp(void)
Get the current temperature setting.
Definition: ir_Mitsubishi.cpp:468
const uint8_t kMitsubishi112FanOffset
Definition: ir_Mitsubishi.h:121
stdAc::state_t toCommon(void)
Convert the current internal state into its stdAc::state_t equivilant.
Definition: ir_Mitsubishi.cpp:716
bool getPower(void)
Get the value of the current power setting.
Definition: ir_Mitsubishi.cpp:944
const uint8_t kMitsubishi136FanQuiet
Definition: ir_Mitsubishi.h:100
void setQuiet(const bool on)
Set the Quiet mode of the A/C.
Definition: ir_Mitsubishi.cpp:1472
const uint8_t kMitsubishiAcFanAutoOffset
Definition: ir_Mitsubishi.h:55
void setSwingV(const uint8_t position)
Set the Vertical Swing mode of the A/C.
Definition: ir_Mitsubishi.cpp:1417
static stdAc::fanspeed_t toCommonFanSpeed(const uint8_t speed)
Convert a native fan speed into its stdAc equivilant.
Definition: ir_Mitsubishi.cpp:1099
const uint8_t kMitsubishi112SwingHOffset
Definition: ir_Mitsubishi.h:140
static stdAc::swingh_t toCommonSwingH(const uint8_t pos)
Convert a native horizontal swing postion to it's common equivalent.
Definition: ir_Mitsubishi.cpp:1585
uint8_t getSwingH(void)
Get the Horizontal Swing mode of the A/C.
Definition: ir_Mitsubishi.cpp:1464
void off(void)
Set the requested power state of the A/C to off.
Definition: ir_Mitsubishi.cpp:934
void setTemp(const uint8_t degrees)
Set the temperature.
Definition: ir_Mitsubishi.cpp:460
const uint8_t kMitsubishiAcMaxTemp
Definition: ir_Mitsubishi.h:61
const uint16_t kMitsubishi136StateLength
Definition: IRremoteESP8266.h:960
const uint8_t kMitsubishi136SwingVHigh
Definition: ir_Mitsubishi.h:89
const uint8_t kMitsubishiAcCool
Definition: ir_Mitsubishi.h:47
static stdAc::swingv_t toCommonSwingV(const uint8_t pos)
Convert a native vertical swing postion to it's common equivalent.
Definition: ir_Mitsubishi.cpp:688
const uint8_t kMitsubishi112SwingHWide
Definition: ir_Mitsubishi.h:146
void on(void)
Set the requested power state of the A/C to on.
Definition: ir_Mitsubishi.cpp:931
static uint8_t convertSwingV(const stdAc::swingv_t position)
Convert a stdAc::swingv_t enum into it's native setting.
Definition: ir_Mitsubishi.cpp:1516
const uint8_t kMitsubishi112Dry
Definition: ir_Mitsubishi.h:113
const uint8_t kMitsubishi136SwingVHighest
Definition: ir_Mitsubishi.h:90
uint8_t getMode(void)
Get the operating mode setting of the A/C.
Definition: ir_Mitsubishi.cpp:1392
void setPower(const bool on)
Change the power setting.
Definition: ir_Mitsubishi.cpp:938
const uint8_t kMitsubishiAcPower
Definition: ir_Mitsubishi.h:51
void setTimer(const uint8_t timer)
Set the timers active setting of the A/C.
Definition: ir_Mitsubishi.cpp:597
Structure to hold a common A/C state.
Definition: IRsend.h:97
void off(void)
Set the requested power state of the A/C to off.
Definition: ir_Mitsubishi.cpp:444
uint8_t remote_state[kMitsubishiACStateLength]
The state in code form.
Definition: ir_Mitsubishi.h:226
const uint16_t kMitsubishi112StateLength
Definition: IRremoteESP8266.h:963
const uint8_t kMitsubishi136ModeOffset
Definition: ir_Mitsubishi.h:80
const uint8_t kMitsubishi112MaxTemp
Definition: ir_Mitsubishi.h:118
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:894
const uint8_t kMitsubishiAcDry
Definition: ir_Mitsubishi.h:48
void setMode(const uint8_t mode)
Set the operating mode of the A/C.
Definition: ir_Mitsubishi.cpp:988
opmode_t
Common A/C settings for A/C operating modes.
Definition: IRsend.h:46