Go to the documentation of this file.
67 #include "IRsend_test.h"
182 0b1101011100000000000000001100010100000000001001111101101000010001;
710 #define DAIKIN_COOL kDaikinCool
711 #define DAIKIN_HEAT kDaikinHeat
712 #define DAIKIN_FAN kDaikinFan
713 #define DAIKIN_AUTO kDaikinAuto
714 #define DAIKIN_DRY kDaikinDry
715 #define DAIKIN_MIN_TEMP kDaikinMinTemp
716 #define DAIKIN_MAX_TEMP kDaikinMaxTemp
717 #define DAIKIN_FAN_MIN kDaikinFanMin
718 #define DAIKIN_FAN_MAX kDaikinFanMax
719 #define DAIKIN_FAN_AUTO kDaikinFanAuto
720 #define DAIKIN_FAN_QUIET kDaikinFanQuiet
725 explicit IRDaikinESP(
const uint16_t pin,
const bool inverted =
false,
726 const bool use_modulation =
true);
741 void setTemp(
const uint8_t temp);
743 void setFan(
const uint8_t fan);
744 uint8_t
getFan(
void)
const;
745 void setMode(
const uint8_t mode);
778 void setRaw(
const uint8_t new_code[],
807 explicit IRDaikin2(
const uint16_t pin,
const bool inverted =
false,
808 const bool use_modulation =
true);
823 void setTemp(
const uint8_t temp);
825 void setFan(
const uint8_t fan);
826 uint8_t
getFan(
void)
const;
828 void setMode(
const uint8_t mode);
861 void setBeep(
const uint8_t beep);
874 void setRaw(
const uint8_t new_code[]);
905 explicit IRDaikin216(
const uint16_t pin,
const bool inverted =
false,
906 const bool use_modulation =
true);
918 void setRaw(
const uint8_t new_code[]);
925 void setTemp(
const uint8_t temp);
927 void setMode(
const uint8_t mode);
930 void setFan(
const uint8_t fan);
931 uint8_t
getFan(
void)
const;
961 explicit IRDaikin160(
const uint16_t pin,
const bool inverted =
false,
962 const bool use_modulation =
true);
974 void setRaw(
const uint8_t new_code[]);
981 void setTemp(
const uint8_t temp);
983 void setMode(
const uint8_t mode);
986 void setFan(
const uint8_t fan);
987 uint8_t
getFan(
void)
const;
1013 explicit IRDaikin176(
const uint16_t pin,
const bool inverted =
false,
1014 const bool use_modulation =
true);
1026 void setRaw(
const uint8_t new_code[]);
1033 void setTemp(
const uint8_t temp);
1035 void setMode(
const uint8_t mode);
1038 void setFan(
const uint8_t fan);
1039 uint8_t
getFan(
void)
const;
1043 uint8_t
getId(
void)
const;
1044 void setId(
const uint8_t num);
1072 explicit IRDaikin128(
const uint16_t pin,
const bool inverted =
false,
1073 const bool use_modulation =
true);
1081 #endif // SEND_DAIKIN128
1085 void setTemp(
const uint8_t temp);
1087 void setFan(
const uint8_t fan);
1088 uint8_t
getFan(
void)
const;
1090 void setMode(
const uint8_t mode);
1101 void setOnTimer(
const uint16_t mins_since_midnight);
1105 void setOffTimer(
const uint16_t mins_since_midnight);
1109 void setClock(
const uint16_t mins_since_midnight);
1114 void setRaw(
const uint8_t new_code[]);
1142 explicit IRDaikin152(
const uint16_t pin,
const bool inverted =
false,
1143 const bool use_modulation =
true);
1155 void setRaw(
const uint8_t new_code[]);
1162 void setTemp(
const uint8_t temp);
1164 void setFan(
const uint8_t fan);
1165 uint8_t
getFan(
void)
const;
1166 void setMode(
const uint8_t mode);
1202 explicit IRDaikin64(
const uint16_t pin,
const bool inverted =
false,
1203 const bool use_modulation =
true);
1212 #endif // SEND_DAIKIN64
1215 void setRaw(
const uint64_t new_state);
1220 void setTemp(
const uint8_t temp);
1222 void setFan(
const uint8_t fan);
1223 uint8_t
getFan(
void)
const;
1224 void setMode(
const uint8_t mode);
1234 void setClock(
const uint16_t mins_since_midnight);
1238 void setOnTime(
const uint16_t mins_since_midnight);
1242 void setOffTime(
const uint16_t mins_since_midnight);
1263 #endif // IR_DAIKIN_H_
void stateReset(void)
Reset the internal state to a fixed known good state.
Definition: ir_Daikin.cpp:3456
uint8_t getFan(void) const
Get the current fan speed setting.
Definition: ir_Daikin.cpp:2649
bool getEcono(void) const
Get the Economical mode of the A/C.
Definition: ir_Daikin.cpp:356
const uint8_t kDaikin2SwingHRightMax
Definition: ir_Daikin.h:307
const uint16_t kDaikin200HdrSpace
Definition: ir_Daikin.h:687
const uint8_t kDaikin64ChecksumOffset
Definition: ir_Daikin.h:682
stdAc::state_t toCommon(void) const
Convert the current internal state into its stdAc::state_t equivalent.
Definition: ir_Daikin.cpp:3288
void setCurrentTime(const uint16_t time)
Set the clock on the A/C unit.
Definition: ir_Daikin.cpp:932
static uint8_t convertFan(const stdAc::fanspeed_t speed)
Convert a stdAc::fanspeed_t enum into it's native speed.
Definition: ir_Daikin.cpp:491
const uint16_t kDaikin152DefaultRepeat
Definition: IRremoteESP8266.h:1207
const uint16_t kDaikin312HdrMark
Definition: ir_Daikin.h:697
static uint8_t convertSwingH(const stdAc::swingh_t position)
Convert a stdAc::swingh_t enum into it's native setting.
Definition: ir_Daikin.cpp:1171
stdAc::state_t toCommon(void) const
Convert the current internal state into its stdAc::state_t equivalent.
Definition: ir_Daikin.cpp:1974
static bool validChecksum(uint8_t state[], const uint16_t length=kDaikinStateLength)
Verify the checksum is valid for a given state.
Definition: ir_Daikin.cpp:129
const uint16_t kDaikin152OneSpace
Definition: ir_Daikin.h:626
uint8_t pad3[4]
Definition: ir_Daikin.h:360
uint8_t getTemp(void) const
Get the current temperature setting.
Definition: ir_Daikin.cpp:1540
uint8_t Power
Definition: ir_Daikin.h:466
void setOffTimeEnabled(const bool on)
Set the enable status of the Off Timer.
Definition: ir_Daikin.cpp:3661
void checksum(void)
Calculate and set the checksum values for the internal state.
Definition: ir_Daikin.cpp:1784
uint8_t Temp
Definition: ir_Daikin.h:593
void send(const uint16_t repeat=kDaikinDefaultRepeat)
Send the current internal state as an IR message.
Definition: ir_Daikin.cpp:120
Native representation of a Daikin160 A/C message.
Definition: ir_Daikin.h:382
uint16_t getClock(void) const
Get the clock time to be sent to the A/C unit.
Definition: ir_Daikin.cpp:2771
uint8_t Power
Definition: ir_Daikin.h:392
uint8_t Sum
Definition: ir_Daikin.h:617
const uint8_t kDaikinDry
Definition: ir_Daikin.h:141
bool getOffTimeEnabled(void) const
Get the enable status of the Off Timer.
Definition: ir_Daikin.cpp:3665
uint16_t getOnTime(void) const
Get the On Timer time to be sent to the A/C unit.
Definition: ir_Daikin.cpp:963
void setPowerful(const bool on)
Set the Powerful (Turbo) mode of the A/C.
Definition: ir_Daikin.cpp:1101
void setMode(const uint8_t mode)
Set the operating mode of the A/C.
Definition: ir_Daikin.cpp:1509
void checksum(void)
Calculate and set the checksum values for the internal state.
Definition: ir_Daikin.cpp:2138
uint16_t getOffTime(void) const
Get the Off Timer time to be sent to the A/C unit.
Definition: ir_Daikin.cpp:3669
void checksum(void)
Calculate and set the checksum values for the internal state.
Definition: ir_Daikin.cpp:150
int8_t calibrate(void)
Run the calibration to calculate uSec timing offsets for this platform.
Definition: ir_Daikin.h:734
bool getOffTimerEnabled(void) const
Get the enable status of the Off Timer.
Definition: ir_Daikin.cpp:990
bool getQuiet(void) const
Get the Quiet mode status of the A/C.
Definition: ir_Daikin.cpp:3231
bool getOffTimerEnabled(void) const
Get the enable status of the Off Timer.
Definition: ir_Daikin.cpp:2808
uint8_t raw[kDaikin160StateLength]
The state of the IR remote.
Definition: ir_Daikin.h:383
Native representation of a Daikin176 A/C message.
Definition: ir_Daikin.h:434
uint8_t Sum1
Definition: ir_Daikin.h:449
bool getOnTimerEnabled(void) const
Get the enable status of the On Timer.
Definition: ir_Daikin.cpp:967
bool getMold(void) const
Get the Mould mode status of the A/C.
Definition: ir_Daikin.cpp:368
uint8_t Mode
Definition: ir_Daikin.h:638
uint8_t getFan(void) const
Get the current fan speed setting.
Definition: ir_Daikin.cpp:855
stdAc::state_t toCommon(const stdAc::state_t *prev=NULL) const
Convert the current internal state into its stdAc::state_t equivalent.
Definition: ir_Daikin.cpp:2886
const uint8_t kDaikin64Heat
Definition: ir_Daikin.h:673
const uint16_t kDaikin152ZeroSpace
Definition: ir_Daikin.h:627
const uint16_t kDaikin64OneSpace
Definition: ir_Daikin.h:660
const uint16_t kDaikin2DefaultRepeat
Definition: IRremoteESP8266.h:1196
const uint8_t kDaikin64Fan
Definition: ir_Daikin.h:672
uint16_t getOffTimer(void) const
Get the Off Timer time to be sent to the A/C unit.
Definition: ir_Daikin.cpp:2818
uint64_t Power
Definition: ir_Daikin.h:95
uint16_t getOnTime(void) const
Get the On Timer time to be sent to the A/C unit.
Definition: ir_Daikin.cpp:399
const uint16_t kDaikin64Freq
Definition: ir_Daikin.h:665
void setTemp(const uint8_t temp)
Set the temperature.
Definition: ir_Daikin.cpp:3166
bool getPowerful(void) const
Get the Powerful (Turbo) mode of the A/C.
Definition: ir_Daikin.cpp:1109
uint8_t SwingV
Definition: ir_Daikin.h:532
uint8_t pad2[3]
Definition: ir_Daikin.h:355
void send(const uint16_t repeat=kDaikin2DefaultRepeat)
Send the current internal state as an IR message.
Definition: ir_Daikin.cpp:708
uint16_t getCurrentTime(void) const
Get the clock time to be sent to the A/C unit.
Definition: ir_Daikin.cpp:940
uint8_t getLightToggle(void) const
Get the Light toggle setting of the A/C.
Definition: ir_Daikin.cpp:2838
bool getPowerToggle(void) const
Get the Power toggle setting of the A/C.
Definition: ir_Daikin.cpp:3475
void setTemp(const uint8_t temp)
Set the temperature.
Definition: ir_Daikin.cpp:2638
void setEyeAuto(const bool on)
Set the Automatic Eye (Sensor) mode of the A/C.
Definition: ir_Daikin.cpp:1042
static uint8_t convertSwingH(const stdAc::swingh_t position)
Convert a stdAc::swingh_t enum into it's native setting.
Definition: ir_Daikin.cpp:2335
const uint8_t kDaikin176SwingHAuto
Definition: ir_Daikin.h:505
bool getEcono(void) const
Get the Economical mode of the A/C.
Definition: ir_Daikin.cpp:3259
const uint16_t kDaikin200HdrMark
Definition: ir_Daikin.h:686
uint8_t Mode
Definition: ir_Daikin.h:589
IRDaikin2(const uint16_t pin, const bool inverted=false, const bool use_modulation=true)
Class constructor.
Definition: ir_Daikin.cpp:698
uint8_t getTemp(void) const
Get the current temperature setting.
Definition: ir_Daikin.cpp:1882
void begin(void)
Set up hardware to be able to send a message.
Definition: ir_Daikin.cpp:115
uint8_t getMode(void) const
Get the operating mode setting of the A/C.
Definition: ir_Daikin.cpp:1505
uint8_t pad1[4]
Definition: ir_Daikin.h:600
const uint16_t kDaikin176Section2Length
Definition: ir_Daikin.h:495
swingv_t
Common A/C settings for Vertical Swing.
Definition: IRsend.h:74
uint8_t Power
Definition: ir_Daikin.h:587
void setSwingVertical(const uint8_t position)
Set the Vertical Swing mode of the A/C.
Definition: ir_Daikin.cpp:866
static uint8_t convertFan(const stdAc::fanspeed_t speed)
Convert a stdAc::fanspeed_t enum into it's native speed.
Definition: ir_Daikin.cpp:1164
stdAc::state_t toCommon(const stdAc::state_t *prev=NULL) const
Convert the current internal state into its stdAc::state_t equivalent.
Definition: ir_Daikin.cpp:3713
uint64_t Fan
Definition: ir_Daikin.h:109
static bool validChecksum(uint8_t state[], const uint16_t length=kDaikin2StateLength)
Verify the checksum is valid for a given state.
Definition: ir_Daikin.cpp:717
uint64_t FreshAir
Definition: ir_Daikin.h:203
const uint8_t kDaikin64Overhead
Definition: ir_Daikin.h:666
const uint16_t kDaikinOneSpace
Definition: ir_Daikin.h:178
const uint16_t kDaikin2ZeroSpace
Definition: ir_Daikin.h:284
Class for handling detailed Daikin 280-bit A/C messages.
Definition: ir_Daikin.h:723
void setTemp(const uint8_t temp)
Set the temperature.
Definition: ir_Daikin.cpp:2260
const uint8_t kDaikin2SwingHOff
Definition: ir_Daikin.h:309
const uint16_t kDaikin2HdrMark
Definition: ir_Daikin.h:280
static bool validChecksum(uint8_t state[], const uint16_t length=kDaikin216StateLength)
Verify the checksum is valid for a given state.
Definition: ir_Daikin.cpp:1440
void setOffTime(const uint16_t mins_since_midnight)
Set the Off Timer time for the A/C unit.
Definition: ir_Daikin.cpp:3673
static stdAc::fanspeed_t toCommonFanSpeed(const uint8_t speed)
Convert a native fan speed into its stdAc equivalent.
Definition: ir_Daikin.cpp:2358
uint8_t Sum2
Definition: ir_Daikin.h:411
uint8_t pad[5]
Definition: ir_Daikin.h:546
uint8_t getSwingHorizontal(void) const
Get the Horizontal Swing mode of the A/C.
Definition: ir_Daikin.cpp:2321
void off(void)
Change the power setting to Off.
Definition: ir_Daikin.cpp:1836
Class for handling detailed Daikin 312-bit A/C messages.
Definition: ir_Daikin.h:805
int8_t calibrate(void)
Run the calibration to calculate uSec timing offsets for this platform.
Definition: ir_Daikin.h:914
const uint16_t kDaikin176StateLength
Definition: IRremoteESP8266.h:1208
void setSwingHorizontal(const uint8_t position)
Set the Horizontal Swing mode of the A/C.
Definition: ir_Daikin.cpp:2309
Class for handling detailed Daikin 128-bit A/C messages.
Definition: ir_Daikin.h:1070
uint8_t Id2
Definition: ir_Daikin.h:455
void setMold(const bool on)
Set the Mould (filter) mode of the A/C.
Definition: ir_Daikin.cpp:1010
fanspeed_t
Common A/C settings for Fan Speeds.
Definition: IRsend.h:61
static stdAc::swingh_t toCommonSwingH(const uint8_t setting)
Convert a native horizontal swing postion to it's common equivalent.
Definition: ir_Daikin.cpp:1187
void setPower(const bool on)
Change the power setting.
Definition: ir_Daikin.cpp:1840
uint8_t getFan(void) const
Get the current fan speed setting.
Definition: ir_Daikin.cpp:1559
uint16_t getOffTime(void) const
Get the Off Timer time to be sent to the A/C unit.
Definition: ir_Daikin.cpp:986
bool getQuiet(void) const
Get the Quiet mode status of the A/C.
Definition: ir_Daikin.cpp:1608
uint8_t getTemp(void) const
Get the current temperature setting.
Definition: ir_Daikin.cpp:2645
void setSwingHorizontal(const bool on)
Set the Horizontal Swing mode of the A/C.
Definition: ir_Daikin.cpp:293
void setPowerful(const bool on)
Set the Powerful (Turbo) mode of the A/C.
Definition: ir_Daikin.cpp:1612
static uint8_t convertMode(const stdAc::opmode_t mode)
Convert a stdAc::opmode_t enum into its native mode.
Definition: ir_Daikin.cpp:2613
void setPower(const bool on)
Change the power setting.
Definition: ir_Daikin.cpp:1497
const uint16_t kDaikin64HdrMark
Definition: ir_Daikin.h:657
void begin(void)
Set up hardware to be able to send a message.
Definition: ir_Daikin.cpp:1763
uint8_t * getRaw(void)
Get a PTR to the internal state/code for this protocol.
Definition: ir_Daikin.cpp:2559
const uint16_t kDaikin176HdrMark
Definition: ir_Daikin.h:487
void setOffTimer(const uint16_t mins_since_midnight)
Set the Off Timer time for the A/C unit.
Definition: ir_Daikin.cpp:2812
uint8_t SwingV
Definition: ir_Daikin.h:349
uint8_t Sum
Definition: ir_Daikin.h:653
void setClock(const uint16_t mins_since_midnight)
Set the clock on the A/C unit.
Definition: ir_Daikin.cpp:3628
const uint8_t kDaikin128FanPowerful
Definition: ir_Daikin.h:573
const uint16_t kDaikin128Freq
Definition: ir_Daikin.h:552
void clearOnTimerFlag(void)
Clear the On Timer flag.
Definition: ir_Daikin.cpp:952
const uint16_t kDaikinGap
Definition: ir_Daikin.h:179
IRsend _irsend
instance of the IR send class
Definition: ir_Daikin.h:1125
const uint8_t kDaikin128MinTemp
Definition: ir_Daikin.h:575
void on(void)
Change the power setting to On.
Definition: ir_Daikin.cpp:1833
bool getSwingVertical(void) const
Get the Vertical Swing mode of the A/C.
Definition: ir_Daikin.cpp:2707
const uint8_t kDaikin2SwingVSwing
Definition: ir_Daikin.h:299
void off(void)
Change the power setting to Off.
Definition: ir_Daikin.cpp:1493
void setTemp(const uint8_t temp)
Set the temperature.
Definition: ir_Daikin.cpp:3479
const uint8_t kDaikin2SwingVLowerMiddle
Definition: ir_Daikin.h:292
const uint16_t kDaikin200StateLength
Definition: IRremoteESP8266.h:1211
const uint16_t kDaikin312OneSpace
Definition: ir_Daikin.h:701
bool getPurify(void) const
Get the Purify (Filter) mode status of the A/C.
Definition: ir_Daikin.cpp:1117
void setRaw(const uint8_t new_code[])
Set the internal state from a valid code for this protocol.
Definition: ir_Daikin.cpp:2174
uint8_t OnHours
Definition: ir_Daikin.h:642
void disableOffTimer(void)
Disable the Off timer.
Definition: ir_Daikin.cpp:978
uint8_t Power
Definition: ir_Daikin.h:535
const uint16_t kDaikin160Gap
Definition: ir_Daikin.h:421
uint8_t Temp
Definition: ir_Daikin.h:474
Class for handling detailed Daikin 64-bit A/C messages.
Definition: ir_Daikin.h:1200
const uint16_t kDaikinBitMark
Definition: ir_Daikin.h:176
void enableOffTimer(const uint16_t endtime)
Set the enable status & time of the Off Timer.
Definition: ir_Daikin.cpp:971
static uint8_t calcChecksum(const uint64_t state)
Calculate the checksum for a given state.
Definition: ir_Daikin.cpp:3435
uint8_t Fan
Definition: ir_Daikin.h:406
const uint16_t kDaikin152BitMark
Definition: ir_Daikin.h:625
Daikin128Protocol _
Definition: ir_Daikin.h:1132
const uint8_t kDaikin176FanMax
Definition: ir_Daikin.h:504
void setCurrentTime(const uint16_t mins_since_midnight)
Set the clock on the A/C unit.
Definition: ir_Daikin.cpp:436
const uint8_t kDaikin2HumidityHeatLow
Definition: ir_Daikin.h:316
void checksum(void)
Calculate and set the checksum values for the internal state.
Definition: ir_Daikin.cpp:3453
const uint16_t kDaikin152HdrSpace
Definition: ir_Daikin.h:624
const uint8_t kDaikin2SwingVHighest
Definition: ir_Daikin.h:289
uint8_t SwingV
Definition: ir_Daikin.h:649
uint8_t Fan
Definition: ir_Daikin.h:350
const uint16_t kDaikin160BitMark
Definition: ir_Daikin.h:418
void setRaw(const uint8_t new_code[])
Set the internal state from a valid code for this protocol.
Definition: ir_Daikin.cpp:781
uint8_t Econo
Definition: ir_Daikin.h:127
void setEcono(const bool on)
Set the Economy mode of the A/C.
Definition: ir_Daikin.cpp:3251
uint8_t getSwingVertical(void) const
Get the Vertical Swing mode of the A/C.
Definition: ir_Daikin.cpp:884
static uint8_t convertFan(const stdAc::fanspeed_t speed)
Convert a stdAc::fanspeed_t enum into it's native speed.
Definition: ir_Daikin.cpp:3207
bool getPowerful(void) const
Get the Powerful (Turbo) mode of the A/C.
Definition: ir_Daikin.cpp:3247
const uint8_t kDaikin2MinCoolTemp
Definition: ir_Daikin.h:325
uint64_t Mold
Definition: ir_Daikin.h:205
uint8_t getFan(void) const
Get the current fan speed setting.
Definition: ir_Daikin.cpp:3195
uint64_t Comfort
Definition: ir_Daikin.h:78
bool getPower(void) const
Get the value of the current power setting.
Definition: ir_Daikin.cpp:2202
const uint8_t kDaikin64FanQuiet
Definition: ir_Daikin.h:678
uint64_t SwingV
Definition: ir_Daikin.h:221
void setPowerToggle(const bool toggle)
Set the Power toggle setting of the A/C.
Definition: ir_Daikin.cpp:2580
bool getSwingVertical(void) const
Get the Vertical Swing mode of the A/C.
Definition: ir_Daikin.cpp:3616
uint8_t Econo
Definition: ir_Daikin.h:611
Daikin176Protocol _
Definition: ir_Daikin.h:1062
const uint8_t kDaikin152FanTemp
Definition: ir_Daikin.h:631
bool getPowerful(void) const
Get the Powerful (Turbo) mode of the A/C.
Definition: ir_Daikin.cpp:330
Class for handling detailed Daikin 216-bit A/C messages.
Definition: ir_Daikin.h:903
uint64_t Powerful
Definition: ir_Daikin.h:254
const uint8_t kDaikin64Cool
Definition: ir_Daikin.h:671
void setMold(const bool on)
Set the Mould mode of the A/C.
Definition: ir_Daikin.cpp:362
uint8_t pad0[6]
Definition: ir_Daikin.h:386
uint64_t OnTimer
Definition: ir_Daikin.h:232
const uint8_t kDaikin64FanTurbo
Definition: ir_Daikin.h:679
const uint8_t kDaikinFan
Definition: ir_Daikin.h:144
IRsend _irsend
instance of the IR send class
Definition: ir_Daikin.h:1253
void setFreshAirHigh(const bool on)
Set the (High) Fresh Air mode of the A/C.
Definition: ir_Daikin.cpp:1034
const uint16_t kDaikinZeroSpace
Definition: ir_Daikin.h:177
const uint8_t kDaikinSection1Length
Definition: ir_Daikin.h:156
uint8_t SwingH
Definition: ir_Daikin.h:352
uint8_t OffHalfHour
Definition: ir_Daikin.h:646
const uint8_t kDaikinByteChecksum2
Definition: ir_Daikin.h:161
const uint16_t kDaikin312Section2Length
Definition: ir_Daikin.h:706
int8_t calibrate(void)
Run the calibration to calculate uSec timing offsets for this platform.
Definition: ir_Daikin.h:1151
uint8_t getMode(void) const
Get the operating mode setting of the A/C.
Definition: ir_Daikin.cpp:2588
uint8_t raw[kDaikin128StateLength]
The state of the IR remote.
Definition: ir_Daikin.h:510
Native representation of a Daikin216 A/C message.
Definition: ir_Daikin.h:328
void setSensor(const bool on)
Set the Sensor mode of the A/C.
Definition: ir_Daikin.cpp:336
static uint8_t convertMode(const stdAc::opmode_t mode)
Convert a stdAc::opmode_t enum into its native mode.
Definition: ir_Daikin.cpp:1868
uint64_t OnTimer
Definition: ir_Daikin.h:96
uint64_t Econo
Definition: ir_Daikin.h:263
Class for sending all basic IR protocols.
Definition: IRsend.h:237
const uint16_t kDaikinUnusedTime
Definition: ir_Daikin.h:163
int8_t calibrate(void)
Run the calibration to calculate uSec timing offsets for this platform.
Definition: ir_Daikin.h:1022
const uint8_t kDaikin176Dry
Definition: ir_Daikin.h:501
uint8_t Wall
Definition: ir_Daikin.h:543
const uint8_t kDaikin176Auto
Definition: ir_Daikin.h:500
void setPowerful(const bool on)
Set the Powerful (Turbo) mode of the A/C.
Definition: ir_Daikin.cpp:3235
void disableOnTimer(void)
Disable the On timer.
Definition: ir_Daikin.cpp:955
const uint16_t kDaikin200ZeroSpace
Definition: ir_Daikin.h:690
int8_t calibrate(uint16_t hz=38000U)
Calculate & set any offsets to account for execution times during sending.
Definition: IRsend.cpp:207
const uint16_t kDaikin216ZeroSpace
Definition: ir_Daikin.h:371
void setMode(const uint8_t mode)
Set the operating mode of the A/C.
Definition: ir_Daikin.cpp:2210
void off(void)
Change the power setting to Off.
Definition: ir_Daikin.cpp:3122
uint16_t getSleepTime(void) const
Get the Sleep Timer time to be sent to the A/C unit.
Definition: ir_Daikin.cpp:1081
uint8_t Sum1
Definition: ir_Daikin.h:536
uint8_t OffHalfHour
Definition: ir_Daikin.h:527
uint8_t getMode(void) const
Get the operating mode setting of the A/C.
Definition: ir_Daikin.cpp:3134
Native representation of a Daikin2 A/C message.
Definition: ir_Daikin.h:185
bool getSwingVertical(void) const
Get the Vertical Swing mode of the A/C.
Definition: ir_Daikin.cpp:1580
uint64_t OnTime
Definition: ir_Daikin.h:114
const uint8_t kDaikin2SwingHLeft
Definition: ir_Daikin.h:304
uint8_t raw[kDaikin176StateLength]
The state of the IR remote.
Definition: ir_Daikin.h:435
uint8_t OffHours
Definition: ir_Daikin.h:526
static stdAc::swingh_t toCommonSwingH(const uint8_t setting)
Convert a native horizontal swing postion to it's common equivalent.
Definition: ir_Daikin.cpp:2346
const uint8_t kDaikin2HumidityDryMedium
Definition: ir_Daikin.h:320
void begin(void)
Set up hardware to be able to send a message.
Definition: ir_Daikin.cpp:703
void setQuiet(const bool on)
Set the Quiet mode of the A/C.
Definition: ir_Daikin.cpp:3602
void stateReset(void)
Reset the internal state to a fixed known good state.
Definition: ir_Daikin.cpp:1462
void setPowerful(const bool on)
Set the Powerful (Turbo) mode of the A/C.
Definition: ir_Daikin.cpp:319
String toString(void) const
Convert the current internal state into a human readable string.
Definition: ir_Daikin.cpp:2000
uint64_t OffTime
Definition: ir_Daikin.h:252
const uint16_t kDaikinHdrSpace
Definition: ir_Daikin.h:175
const uint16_t kDaikin160HdrSpace
Definition: ir_Daikin.h:417
std::string String
Definition: IRremoteESP8266.h:1521
void setOnTimeEnabled(const bool on)
Set the enable status of the On Timer.
Definition: ir_Daikin.cpp:3643
void checksum(void)
Calculate and set the checksum values for the internal state.
Definition: ir_Daikin.cpp:3091
uint64_t Sum1
Definition: ir_Daikin.h:224
IRDaikinESP(const uint16_t pin, const bool inverted=false, const bool use_modulation=true)
Class constructor.
Definition: ir_Daikin.cpp:110
uint8_t WeeklyTimer
Definition: ir_Daikin.h:129
uint8_t raw[kDaikinStateLength]
The state of the IR remote.
Definition: ir_Daikin.h:72
void setPower(const bool state)
Change the power setting.
Definition: ir_Daikin.cpp:793
const uint8_t kDaikinCurIndex
Definition: ir_Daikin.h:171
const uint8_t kDaikin160SwingVHighest
Definition: ir_Daikin.h:430
void setSwingVertical(const uint8_t position)
Set the Vertical Swing mode of the A/C.
Definition: ir_Daikin.cpp:1923
static uint8_t convertFan(const stdAc::fanspeed_t speed)
Convert a stdAc::fanspeed_t enum into it's native speed.
Definition: ir_Daikin.cpp:2676
uint8_t pad3[2]
Definition: ir_Daikin.h:480
bool getPowerToggle(void) const
Get the Power toggle setting of the A/C.
Definition: ir_Daikin.cpp:2584
static uint8_t convertFan(const stdAc::fanspeed_t speed)
Convert a stdAc::fanspeed_t enum into it's native speed.
Definition: ir_Daikin.cpp:1909
uint8_t Powerful
Definition: ir_Daikin.h:357
const uint16_t kDaikin2Section2Length
Definition: ir_Daikin.h:287
const uint16_t kDaikin200OneSpace
Definition: ir_Daikin.h:689
bool getSensor(void) const
Get the Sensor mode of the A/C.
Definition: ir_Daikin.cpp:342
uint8_t pad[3]
Definition: ir_Daikin.h:187
const uint16_t kDaikin152StateLength
Definition: IRremoteESP8266.h:1205
const uint16_t kDaikin312HdrSpace
Definition: ir_Daikin.h:698
uint8_t pad1[5]
Definition: ir_Daikin.h:390
uint8_t getMode(void) const
Get the operating mode setting of the A/C.
Definition: ir_Daikin.cpp:1848
const uint8_t kDaikin128BitCeiling
Definition: ir_Daikin.h:578
void off(void)
Change the power setting to Off.
Definition: ir_Daikin.cpp:208
uint8_t getTemp(void) const
Get the current temperature setting.
Definition: ir_Daikin.cpp:837
bool getSwingV(void) const
Get the Vertical Swing mode of the A/C.
Definition: ir_Daikin.cpp:3219
const uint16_t kDaikin160OneSpace
Definition: ir_Daikin.h:419
bool getFreshAirHigh(void) const
Get the (High) Fresh Air mode status of the A/C.
Definition: ir_Daikin.cpp:1038
void setFreshAir(const bool on)
Set the Fresh Air mode of the A/C.
Definition: ir_Daikin.cpp:1026
void setLight(const uint8_t light)
Set the Light (LED) mode of the A/C.
Definition: ir_Daikin.cpp:1006
uint8_t raw[kDaikin2StateLength]
The state of the IR remote.
Definition: ir_Daikin.h:188
const uint16_t kDaikin128ZeroSpace
Definition: ir_Daikin.h:559
const uint8_t kDaikinFanMax
Definition: ir_Daikin.h:149
void setMode(const uint8_t mode)
Set the operating mode of the A/C.
Definition: ir_Daikin.cpp:2592
const uint16_t kDaikin176Gap
Definition: ir_Daikin.h:492
void enableOnTimer(const uint16_t starttime)
Set the enable status & time of the On Timer.
Definition: ir_Daikin.cpp:945
void setOffTimerEnabled(const bool on)
Set the enable status of the Off Timer.
Definition: ir_Daikin.cpp:2804
const uint16_t kDaikin312ZeroSpace
Definition: ir_Daikin.h:700
const uint8_t kDaikin128FanMed
Definition: ir_Daikin.h:571
uint8_t Sum2
Definition: ir_Daikin.h:548
void setFan(const uint8_t fan)
Set the speed of the fan.
Definition: ir_Daikin.cpp:2279
uint8_t Fan
Definition: ir_Daikin.h:639
void off(void)
Change the power setting to Off..
Definition: ir_Daikin.cpp:2191
uint8_t getSwingHorizontal(void) const
Get the Horizontal Swing mode of the A/C.
Definition: ir_Daikin.cpp:928
void setRaw(const uint8_t new_code[])
Set the internal state from a valid code for this protocol.
Definition: ir_Daikin.cpp:1485
bool getPower(void) const
Get the value of the current power setting.
Definition: ir_Daikin.cpp:218
const uint8_t kDaikinSwingOn
Definition: ir_Daikin.h:152
const uint16_t kDaikin216Freq
Definition: ir_Daikin.h:366
void setSwingVertical(const bool on)
Set the Vertical Swing mode of the A/C.
Definition: ir_Daikin.cpp:281
const uint16_t kDaikin216StateLength
Definition: IRremoteESP8266.h:1214
const uint16_t kDaikin176Freq
Definition: ir_Daikin.h:486
void setQuiet(const bool on)
Set the Quiet mode of the A/C.
Definition: ir_Daikin.cpp:2730
uint8_t pad0[7]
Definition: ir_Daikin.h:332
uint8_t Temp
Definition: ir_Daikin.h:648
uint8_t Mold
Definition: ir_Daikin.h:132
uint16_t getOnTimer(void) const
Get the On Timer time to be sent to the A/C unit.
Definition: ir_Daikin.cpp:2800
const uint16_t kDaikin2Section1Length
Definition: ir_Daikin.h:286
void setLightToggle(const uint8_t unit_type)
Set the Light toggle setting of the A/C.
Definition: ir_Daikin.cpp:2823
const uint8_t kDaikin2SwingHMiddle
Definition: ir_Daikin.h:305
swingh_t
Common A/C settings for Horizontal Swing.
Definition: IRsend.h:100
IRsend _irsend
instance of the IR send class
Definition: ir_Daikin.h:888
const uint8_t kDaikin2HumidityHeatHigh
Definition: ir_Daikin.h:318
const uint16_t kDaikin152Freq
Definition: ir_Daikin.h:621
void send(const uint16_t repeat=kDaikin128DefaultRepeat)
Send the current internal state as an IR message.
Definition: ir_Daikin.cpp:2573
void setQuiet(const bool on)
Set the Quiet mode of the A/C.
Definition: ir_Daikin.cpp:3223
const uint16_t kDaikin128HdrSpace
Definition: ir_Daikin.h:556
const uint8_t kDaikinBeepOff
Definition: ir_Daikin.h:166
uint8_t Fan
Definition: ir_Daikin.h:516
uint8_t Sleep
Definition: ir_Daikin.h:650
uint64_t SwingH
Definition: ir_Daikin.h:219
uint8_t * getRaw(void)
Get a PTR to the internal state/code for this protocol.
Definition: ir_Daikin.cpp:3107
void setSensor(const bool on)
Set the Sensor mode of the A/C.
Definition: ir_Daikin.cpp:3263
const uint16_t kDaikin176HdrSpace
Definition: ir_Daikin.h:488
static stdAc::opmode_t toCommonMode(const uint8_t mode)
Convert a native mode into its stdAc equivalent.
Definition: ir_Daikin.cpp:2248
static uint8_t convertMode(const stdAc::opmode_t mode)
Convert a stdAc::opmode_t enum into its native mode.
Definition: ir_Daikin.cpp:3511
const uint16_t kDaikin2Sections
Definition: ir_Daikin.h:285
const uint8_t kDaikin160SwingVHigh
Definition: ir_Daikin.h:429
stdAc::state_t toCommon(void) const
Convert the current internal state into its stdAc::state_t equivalent.
Definition: ir_Daikin.cpp:1202
static uint8_t convertMode(const stdAc::opmode_t mode)
Convert a stdAc::opmode_t enum into its native mode.
Definition: ir_Daikin.cpp:1526
static uint8_t calcSecondChecksum(const uint8_t state[])
Definition: ir_Daikin.cpp:2524
void setComfort(const bool on)
Set the Comfort mode of the A/C.
Definition: ir_Daikin.cpp:374
const uint16_t kDaikin128StateLength
Definition: IRremoteESP8266.h:1202
const uint16_t kDaikin176DefaultRepeat
Definition: IRremoteESP8266.h:1210
uint64_t OffTimer
Definition: ir_Daikin.h:233
void checksum(void)
Calculate and set the checksum values for the internal state.
Definition: ir_Daikin.cpp:2543
const uint8_t kDaikin128BitWall
Definition: ir_Daikin.h:577
void setFan(const uint8_t fan)
Set the speed of the fan.
Definition: ir_Daikin.cpp:3539
const uint16_t kDaikin2BitMark
Definition: ir_Daikin.h:282
uint64_t Mode
Definition: ir_Daikin.h:235
static bool validChecksum(uint8_t state[], const uint16_t length=kDaikin152StateLength)
Verify the checksum is valid for a given state.
Definition: ir_Daikin.cpp:3082
const uint16_t kDaikin200Section1Length
Definition: ir_Daikin.h:693
const uint16_t kDaikin2LeaderSpace
Definition: ir_Daikin.h:278
Daikin216Protocol _
Definition: ir_Daikin.h:953
String toString(void) const
Convert the current internal state into a human readable string.
Definition: ir_Daikin.cpp:3314
void setComfort(const bool on)
Set the Comfort mode of the A/C.
Definition: ir_Daikin.cpp:3271
static stdAc::swingv_t toCommonSwingV(const uint8_t setting)
Convert a native vertical swing postion to it's common equivalent.
Definition: ir_Daikin.cpp:907
void setHumidity(const uint8_t percent)
Set the Humidity percentage setting of the A/C.
Definition: ir_Daikin.cpp:1126
bool getSwingHorizontal(void) const
Get the Horizontal Swing mode of the A/C.
Definition: ir_Daikin.cpp:1590
const uint16_t kDaikin160Sections
Definition: ir_Daikin.h:422
void setSwingV(const bool on)
Set the Vertical Swing mode of the A/C.
Definition: ir_Daikin.cpp:3213
uint64_t HumidOn
Definition: ir_Daikin.h:240
uint8_t Sensor
Definition: ir_Daikin.h:612
uint8_t getCurrentDay(void) const
Get the current day of the week to be sent to the A/C unit.
Definition: ir_Daikin.cpp:458
const uint8_t kDaikin64FanAuto
Definition: ir_Daikin.h:674
void setSwingHorizontal(const uint8_t position)
Set the Horizontal Swing mode of the A/C.
Definition: ir_Daikin.cpp:922
uint16_t getCurrentTime(void) const
Get the clock time to be sent to the A/C unit.
Definition: ir_Daikin.cpp:444
void setQuiet(const bool on)
Set the Quiet mode of the A/C.
Definition: ir_Daikin.cpp:1595
const uint16_t kDaikin160Freq
Definition: ir_Daikin.h:415
const uint16_t kDaikin312Section1Length
Definition: ir_Daikin.h:705
void setMode(const uint8_t mode)
Set the operating mode of the A/C.
Definition: ir_Daikin.cpp:808
const uint8_t kDaikin64Dry
Definition: ir_Daikin.h:670
const uint8_t kDaikin2SwingVBreeze
Definition: ir_Daikin.h:295
uint8_t * getRaw(void)
Get a PTR to the internal state/code for this protocol.
Definition: ir_Daikin.cpp:186
String toString(void) const
Convert the current internal state into a human readable string.
Definition: ir_Daikin.cpp:3679
IRDaikin176(const uint16_t pin, const bool inverted=false, const bool use_modulation=true)
Class constructor.
Definition: ir_Daikin.cpp:2112
static bool validChecksum(uint8_t state[], const uint16_t length=kDaikin160StateLength)
Verify the checksum is valid for a given state.
Definition: ir_Daikin.cpp:1769
bool getSleep(void) const
Get the Sleep mode of the A/C.
Definition: ir_Daikin.cpp:2715
const uint8_t kDaikin64FanLow
Definition: ir_Daikin.h:675
const uint16_t kDaikin312SectionGap
Definition: ir_Daikin.h:703
void stateReset(void)
Reset the internal state to a fixed known good state.
Definition: ir_Daikin.cpp:2145
void on(void)
Change the power setting to On.
Definition: ir_Daikin.cpp:3119
bool getPowerful(void) const
Get the Powerful (Turbo) mode of the A/C.
Definition: ir_Daikin.cpp:1620
IRDaikin160(const uint16_t pin, const bool inverted=false, const bool use_modulation=true)
Class constructor.
Definition: ir_Daikin.cpp:1758
uint8_t Mode
Definition: ir_Daikin.h:468
const uint8_t kDaikinBeepLoud
Definition: ir_Daikin.h:165
const uint8_t kDaikinFanAuto
Definition: ir_Daikin.h:150
uint16_t getClock(void) const
Get the clock time to be sent to the A/C unit.
Definition: ir_Daikin.cpp:3637
uint64_t OnTime
Definition: ir_Daikin.h:251
const uint8_t kDaikin128Dry
Definition: ir_Daikin.h:564
void setSwingHorizontal(const bool on)
Set the Horizontal Swing mode of the A/C.
Definition: ir_Daikin.cpp:1584
const uint64_t kDaikin64KnownGoodState
Definition: ir_Daikin.h:669
uint8_t Quiet
Definition: ir_Daikin.h:604
static bool validChecksum(uint8_t state[], const uint16_t length=kDaikin176StateLength)
Verify the checksum is valid for a given state.
Definition: ir_Daikin.cpp:2123
uint64_t getRaw(void)
Get a copy of the internal state as a valid code for this protocol.
Definition: ir_Daikin.cpp:3460
uint8_t SwingV
Definition: ir_Daikin.h:398
uint8_t Sum1
Definition: ir_Daikin.h:334
const uint16_t kDaikin216Sections
Definition: ir_Daikin.h:373
uint8_t getTemp(void) const
Get the current temperature setting.
Definition: ir_Daikin.cpp:2274
const uint8_t kDaikin176Heat
Definition: ir_Daikin.h:498
static uint8_t convertFan(const stdAc::fanspeed_t speed)
Convert a stdAc::fanspeed_t enum into it's native speed.
Definition: ir_Daikin.cpp:1568
IRDaikin128(const uint16_t pin, const bool inverted=false, const bool use_modulation=true)
Class constructor.
Definition: ir_Daikin.cpp:2512
uint8_t ModeButton
Definition: ir_Daikin.h:464
uint8_t ClockMins
Definition: ir_Daikin.h:518
uint8_t OnHours
Definition: ir_Daikin.h:522
uint8_t Ceiling
Definition: ir_Daikin.h:540
const uint8_t kDaikin152DryTemp
Definition: ir_Daikin.h:630
void setCurrentDay(const uint8_t day_of_week)
Set the current day of the week to be sent to the A/C unit.
Definition: ir_Daikin.cpp:451
IRDaikin64(const uint16_t pin, const bool inverted=false, const bool use_modulation=true)
Class constructor.
Definition: ir_Daikin.cpp:3417
uint8_t Temp
Definition: ir_Daikin.h:344
IRDaikin152(const uint16_t pin, const bool inverted=false, const bool use_modulation=true)
Class constructor.
Definition: ir_Daikin.cpp:3063
uint8_t Sum2
Definition: ir_Daikin.h:362
const uint16_t kDaikin160HdrMark
Definition: ir_Daikin.h:416
void begin(void)
Set up hardware to be able to send a message.
Definition: ir_Daikin.cpp:2117
void begin(void)
Set up hardware to be able to send a message.
Definition: ir_Daikin.cpp:1426
const uint16_t kDaikin64ZeroSpace
Definition: ir_Daikin.h:661
uint8_t Sleep
Definition: ir_Daikin.h:533
static bool validChecksum(uint8_t state[])
Verify the checksum is valid for a given state.
Definition: ir_Daikin.cpp:2532
const uint16_t kDaikin128SectionLength
Definition: ir_Daikin.h:563
const uint8_t kDaikin176Cool
Definition: ir_Daikin.h:499
void setTurbo(const bool on)
Set the Turbo (Powerful) mode of the A/C.
Definition: ir_Daikin.cpp:3588
const uint16_t kDaikin128LeaderSpace
Definition: ir_Daikin.h:554
void setFan(const uint8_t fan)
Set the speed of the fan.
Definition: ir_Daikin.cpp:842
void setWeeklyTimerEnable(const bool on)
Set the enable status of the Weekly Timer.
Definition: ir_Daikin.cpp:464
Daikin2Protocol _
Definition: ir_Daikin.h:895
int8_t calibrate(void)
Run the calibration to calculate uSec timing offsets for this platform.
Definition: ir_Daikin.h:1211
const uint16_t kDaikin2LeaderMark
Definition: ir_Daikin.h:277
const uint8_t kDaikinBeepQuiet
Definition: ir_Daikin.h:164
String toString(void) const
Convert the current internal state into a human readable string.
Definition: ir_Daikin.cpp:2851
uint8_t getMode(void) const
Get the operating mode setting of the A/C.
Definition: ir_Daikin.cpp:3491
uint8_t Mode
Definition: ir_Daikin.h:515
uint8_t Power
Definition: ir_Daikin.h:338
const uint8_t kDaikin2SwingVAuto
Definition: ir_Daikin.h:298
Daikin160Protocol _
Definition: ir_Daikin.h:1005
void setId(const uint8_t num)
Set the Unit Id of the A/C.
Definition: ir_Daikin.cpp:2330
Native representation of a Daikin A/C message.
Definition: ir_Daikin.h:71
uint8_t Sum2
Definition: ir_Daikin.h:272
bool getOffTimerEnabled(void) const
Get the enable status of the Off Timer.
Definition: ir_Daikin.cpp:430
static uint8_t convertMode(const stdAc::opmode_t mode)
Convert a stdAc::opmode_t enum into its native mode.
Definition: ir_Daikin.cpp:478
const uint16_t kDaikin216Section1Length
Definition: ir_Daikin.h:374
bool getPower(void) const
Get the value of the current power setting.
Definition: ir_Daikin.cpp:1844
const uint8_t kDaikinLightBright
Definition: ir_Daikin.h:167
uint8_t AltMode
Definition: ir_Daikin.h:461
bool getMold(void) const
Get the Mould (filter) mode status of the A/C.
Definition: ir_Daikin.cpp:1014
const uint16_t kDaikin152Gap
Definition: ir_Daikin.h:628
void send(const uint16_t repeat=kDaikin176DefaultRepeat)
Send the current internal state as an IR message.
Definition: ir_Daikin.cpp:2182
static uint8_t convertSwingV(const stdAc::swingv_t position)
Convert a stdAc::swingv_t enum into it's native setting.
Definition: ir_Daikin.cpp:889
const uint8_t kDaikin128Auto
Definition: ir_Daikin.h:568
const uint8_t kDaikin160SwingVMiddle
Definition: ir_Daikin.h:428
bool getSleepTimerEnabled(void) const
Get the Sleep timer enabled status of the A/C.
Definition: ir_Daikin.cpp:1085
void setFan(const uint8_t fan)
Set the speed of the fan.
Definition: ir_Daikin.cpp:1887
void setEcono(const bool on)
Set the Economy mode of the A/C.
Definition: ir_Daikin.cpp:2719
Native representation of a Daikin64 A/C message.
Definition: ir_Daikin.h:634
uint8_t getFan(void) const
Get the current fan speed setting.
Definition: ir_Daikin.cpp:2294
const uint16_t kDaikin128Gap
Definition: ir_Daikin.h:560
const uint8_t kDaikin64MaxTemp
Definition: ir_Daikin.h:681
uint64_t Temp
Definition: ir_Daikin.h:239
bool getSwingHorizontal(void) const
Get the Horizontal Swing mode of the A/C.
Definition: ir_Daikin.cpp:299
uint8_t getTemp(void) const
Get the current temperature setting.
Definition: ir_Daikin.cpp:3487
const uint8_t kDaikinHeat
Definition: ir_Daikin.h:143
const uint16_t kDaikin216OneSpace
Definition: ir_Daikin.h:370
uint8_t getFan(void) const
Get the current fan speed setting.
Definition: ir_Daikin.cpp:3535
uint64_t Mode
Definition: ir_Daikin.h:99
uint8_t pad0[5]
Definition: ir_Daikin.h:585
uint64_t SleepTimer
Definition: ir_Daikin.h:266
const uint8_t kDaikin176SwingHOff
Definition: ir_Daikin.h:506
void setQuiet(const bool on)
Set the Quiet mode of the A/C.
Definition: ir_Daikin.cpp:305
const uint16_t kDaikin200BitMark
Definition: ir_Daikin.h:688
const uint16_t kDaikin64BitMark
Definition: ir_Daikin.h:658
const uint8_t kDaikin160SwingVLowest
Definition: ir_Daikin.h:426
const uint16_t kDaikin216DefaultRepeat
Definition: IRremoteESP8266.h:1216
const uint8_t kDaikin2SwingHLeftMax
Definition: ir_Daikin.h:303
void setPower(const bool on)
Change the power setting.
Definition: ir_Daikin.cpp:3126
uint8_t Id1
Definition: ir_Daikin.h:442
const uint8_t kDaikinCurBit
Definition: ir_Daikin.h:170
int8_t calibrate(void)
Run the calibration to calculate uSec timing offsets for this platform.
Definition: ir_Daikin.h:970
void clearSleepTimerFlag(void)
Clear the sleep timer flag.
Definition: ir_Daikin.cpp:1074
uint8_t getMode(void) const
Get the operating mode setting of the A/C.
Definition: ir_Daikin.cpp:2206
bool getOnTimerEnabled(void) const
Get the enable status of the On Timer.
Definition: ir_Daikin.cpp:2781
uint8_t OnTimer
Definition: ir_Daikin.h:524
const uint16_t kDaikin176BitMark
Definition: ir_Daikin.h:489
bool getComfort(void) const
Get the Comfort mode of the A/C.
Definition: ir_Daikin.cpp:3284
uint8_t OffHours
Definition: ir_Daikin.h:645
uint64_t FreshAirHigh
Definition: ir_Daikin.h:209
const uint16_t kDaikin160DefaultRepeat
Definition: IRremoteESP8266.h:1201
void setPowerToggle(const bool on)
Set the Power toggle setting of the A/C.
Definition: ir_Daikin.cpp:3471
static uint8_t convertMode(const stdAc::opmode_t mode)
Convert a stdAc::opmode_t enum into its native mode.
Definition: ir_Daikin.cpp:2235
void setEcono(const bool on)
Set the Economy mode of the A/C.
Definition: ir_Daikin.cpp:348
void setPower(const bool on)
Change the power setting.
Definition: ir_Daikin.cpp:2195
uint64_t CurrentTime
Definition: ir_Daikin.h:86
bool getClean(void) const
Get the Auto Clean mode status of the A/C.
Definition: ir_Daikin.cpp:1022
const int8_t kDaikin64ToleranceDelta
Definition: ir_Daikin.h:667
bool getOnTimeEnabled(void) const
Get the enable status of the On Timer.
Definition: ir_Daikin.cpp:3647
const uint8_t kDaikin160SwingVAuto
Definition: ir_Daikin.h:431
const uint16_t kDaikinHeaderLength
Definition: ir_Daikin.h:154
void setPower(const bool on)
Change the power setting.
Definition: ir_Daikin.cpp:212
const uint16_t kDaikin64LdrMark
Definition: ir_Daikin.h:662
void setFan(const uint8_t fan)
Set the speed of the fan.
Definition: ir_Daikin.cpp:3181
bool getTurbo(void) const
Get the Turbo (Powerful) mode status of the A/C.
Definition: ir_Daikin.cpp:3584
uint8_t OffTimer
Definition: ir_Daikin.h:647
const uint8_t kDaikin128Cool
Definition: ir_Daikin.h:565
const uint16_t kDaikin176ZeroSpace
Definition: ir_Daikin.h:491
uint8_t ClockHours
Definition: ir_Daikin.h:641
const uint8_t kDaikin128Heat
Definition: ir_Daikin.h:567
void stateReset(void)
Reset the internal state to a fixed known good state.
Definition: ir_Daikin.cpp:738
const uint8_t kDaikinSection3Length
Definition: ir_Daikin.h:158
bool getPower(void) const
Get the value of the current power setting.
Definition: ir_Daikin.cpp:3130
String toString(void) const
Convert the current internal state into a human readable string.
Definition: ir_Daikin.cpp:560
const uint16_t kDaikin200Freq
Definition: ir_Daikin.h:685
uint8_t Powerful
Definition: ir_Daikin.h:602
bool getEye(void) const
Get the Eye (Sensor) mode status of the A/C.
Definition: ir_Daikin.cpp:1054
void setMode(const uint8_t mode)
Set the operating mode of the A/C.
Definition: ir_Daikin.cpp:3138
const uint16_t kDaikin160Section1Length
Definition: ir_Daikin.h:423
void on(void)
Change the power setting to On.
Definition: ir_Daikin.cpp:1490
const uint16_t kDaikin128Sections
Definition: ir_Daikin.h:562
const uint16_t kDaikin176Sections
Definition: ir_Daikin.h:493
uint64_t SwingV
Definition: ir_Daikin.h:108
const uint16_t kDaikin128DefaultRepeat
Definition: IRremoteESP8266.h:1204
uint8_t * getRaw(void)
Get a PTR to the internal state/code for this protocol.
Definition: ir_Daikin.cpp:774
static uint8_t convertMode(const stdAc::opmode_t mode)
Convert a stdAc::opmode_t enum into its native mode.
Definition: ir_Daikin.cpp:3160
Class for handling detailed Daikin 152-bit A/C messages.
Definition: ir_Daikin.h:1140
const uint8_t kDaikin2HumidityDryHigh
Definition: ir_Daikin.h:321
bool getEcono(void) const
Get the Economical mode of the A/C.
Definition: ir_Daikin.cpp:2726
void off(void)
Change the power setting to Off.
Definition: ir_Daikin.cpp:789
void setPowerful(const bool on)
Set the Powerful (Turbo) mode of the A/C.
Definition: ir_Daikin.cpp:2744
const uint8_t kDaikin128FanLow
Definition: ir_Daikin.h:572
uint64_t Light
Definition: ir_Daikin.h:200
const uint16_t kDaikinStateLength
Definition: IRremoteESP8266.h:1189
void setOnTime(const uint16_t mins_since_midnight)
Set the On Timer time for the A/C unit.
Definition: ir_Daikin.cpp:3655
Class for handling detailed Daikin 160-bit A/C messages.
Definition: ir_Daikin.h:959
IRsend _irsend
instance of the IR send class
Definition: ir_Daikin.h:791
const uint16_t kDaikin216Section2Length
Definition: ir_Daikin.h:375
uint8_t getFan(void) const
Get the current fan speed setting.
Definition: ir_Daikin.cpp:251
uint8_t * getRaw(void)
Get a PTR to the internal state/code for this protocol.
Definition: ir_Daikin.cpp:1478
const uint8_t kDaikin64FanMed
Definition: ir_Daikin.h:676
void setFan(const uint8_t fan)
Set the speed of the fan.
Definition: ir_Daikin.cpp:237
void stateReset(void)
Reset the internal state to a fixed known good state.
Definition: ir_Daikin.cpp:3096
uint64_t Humidity
Definition: ir_Daikin.h:242
const uint16_t kDaikin128FooterMark
Definition: ir_Daikin.h:561
const uint16_t kDaikin312HdrGap
Definition: ir_Daikin.h:702
uint8_t Comfort
Definition: ir_Daikin.h:610
String toString(void) const
Convert the current internal state into a human readable string.
Definition: ir_Daikin.cpp:1652
bool getOnTimerEnabled(void) const
Get the enable status of the On Timer.
Definition: ir_Daikin.cpp:405
void disableOffTimer(void)
Clear and disable the Off timer.
Definition: ir_Daikin.cpp:417
const uint8_t kDaikin2HumidityDryLow
Definition: ir_Daikin.h:319
void setPurify(const bool on)
Set the Purify (Filter) mode of the A/C.
Definition: ir_Daikin.cpp:1113
const uint16_t kDaikin2Gap
Definition: ir_Daikin.h:279
void setSleep(const bool on)
Set the Sleep mode of the A/C.
Definition: ir_Daikin.cpp:3620
uint64_t Clean
Definition: ir_Daikin.h:207
const uint8_t kDaikin152LeaderBits
Definition: ir_Daikin.h:622
void setOnTimer(const uint16_t mins_since_midnight)
Set the On Timer time for the A/C unit.
Definition: ir_Daikin.cpp:2794
uint8_t getMode(void) const
Get the operating mode setting of the A/C.
Definition: ir_Daikin.cpp:804
const uint16_t kDaikinDefaultRepeat
Definition: IRremoteESP8266.h:1193
uint8_t OnHalfHour
Definition: ir_Daikin.h:643
const uint16_t kDaikin64DefaultRepeat
Definition: IRremoteESP8266.h:1198
bool getWeeklyTimerEnable(void) const
Get the enable status of the Weekly Timer.
Definition: ir_Daikin.cpp:471
uint16_t getOffTime(void) const
Get the Off Timer time to be sent to the A/C unit.
Definition: ir_Daikin.cpp:424
const uint16_t kDaikin64LdrSpace
Definition: ir_Daikin.h:664
const uint8_t kDaikin128Fan
Definition: ir_Daikin.h:566
uint8_t Sensor
Definition: ir_Daikin.h:126
const uint16_t kDaikin200Sections
Definition: ir_Daikin.h:692
uint8_t getId(void) const
Get the Unit Id of the A/C.
Definition: ir_Daikin.cpp:2325
uint64_t Quiet
Definition: ir_Daikin.h:256
uint64_t Power
Definition: ir_Daikin.h:231
int8_t calibrate(void)
Run the calibration to calculate uSec timing offsets for this platform.
Definition: ir_Daikin.h:816
static stdAc::fanspeed_t toCommonFanSpeed(const uint8_t speed)
Convert a native fan speed into its stdAc equivalent.
Definition: ir_Daikin.cpp:3571
static stdAc::swingv_t toCommonSwingV(const uint8_t setting)
Convert a native vertical swing postion to it's common equivalent.
Definition: ir_Daikin.cpp:1960
const uint8_t kDaikin2HumidityHeatMedium
Definition: ir_Daikin.h:317
uint8_t getFan(void) const
Get the current fan speed setting.
Definition: ir_Daikin.cpp:1900
uint8_t Sum1
Definition: ir_Daikin.h:388
uint8_t getHumidity(void) const
Get the Humidity percentage setting of the A/C.
Definition: ir_Daikin.cpp:1121
void setOnTimerEnabled(const bool on)
Set the enable status of the On Timer.
Definition: ir_Daikin.cpp:2777
uint8_t OnTimer
Definition: ir_Daikin.h:644
stdAc::state_t toCommon(void) const
Convert the current internal state into its stdAc::state_t equivalent.
Definition: ir_Daikin.cpp:2365
void setRaw(const uint64_t new_state)
Set the internal state from a valid code for this protocol.
Definition: ir_Daikin.cpp:3467
void on(void)
Change the power setting to On.
Definition: ir_Daikin.cpp:2188
void enableSleepTimer(const uint16_t sleeptime)
Set the enable status & time of the Sleep Timer.
Definition: ir_Daikin.cpp:1067
String toString(void) const
Convert the current internal state into a human readable string.
Definition: ir_Daikin.cpp:1228
static bool validChecksum(const uint64_t state)
Verify the checksum is valid for a given state.
Definition: ir_Daikin.cpp:3446
const uint8_t kDaikin2HumidityAuto
Definition: ir_Daikin.h:322
const uint8_t kDaikin2SwingVHigh
Definition: ir_Daikin.h:290
const uint16_t kDaikin160Section2Length
Definition: ir_Daikin.h:424
const uint8_t kDaikin128FanQuiet
Definition: ir_Daikin.h:574
const uint8_t kDaikin216SwingOn
Definition: ir_Daikin.h:378
uint8_t getMode(void) const
Get the operating mode setting of the A/C.
Definition: ir_Daikin.cpp:259
uint8_t OffTimer
Definition: ir_Daikin.h:528
void enableOnTimer(const uint16_t starttime)
Set the enable status & time of the On Timer.
Definition: ir_Daikin.cpp:386
IRsend _irsend
instance of the IR send class
Definition: ir_Daikin.h:1187
void on(void)
Change the power setting to On.
Definition: ir_Daikin.cpp:205
void setQuiet(const bool on)
Set the Quiet mode of the A/C.
Definition: ir_Daikin.cpp:1089
uint8_t getSwingVertical(void) const
Get the Vertical Swing mode of the A/C.
Definition: ir_Daikin.cpp:1939
void setSwingVertical(const bool on)
Set the Vertical Swing mode of the A/C.
Definition: ir_Daikin.cpp:3612
bool getFreshAir(void) const
Get the Fresh Air mode status of the A/C.
Definition: ir_Daikin.cpp:1030
uint8_t getTemp(void) const
Get the current temperature setting.
Definition: ir_Daikin.cpp:3176
static stdAc::fanspeed_t toCommonFanSpeed(const uint8_t speed)
Convert a native fan speed into its stdAc equivalent.
Definition: ir_Daikin.cpp:518
bool getPowerful(void) const
Get the Powerful (Turbo) mode of the A/C.
Definition: ir_Daikin.cpp:2754
const uint8_t kDaikin2SwingVUpperMiddle
Definition: ir_Daikin.h:291
uint8_t OnHalfHour
Definition: ir_Daikin.h:523
uint8_t Mode
Definition: ir_Daikin.h:394
bool getComfort(void) const
Get the Comfort mode of the A/C.
Definition: ir_Daikin.cpp:380
uint8_t SwingH
Definition: ir_Daikin.h:477
uint64_t Beep
Definition: ir_Daikin.h:201
uint8_t Sum2
Definition: ir_Daikin.h:482
static uint8_t calcFirstChecksum(const uint8_t state[])
Definition: ir_Daikin.cpp:2519
void checksum(void)
Calculate and set the checksum values for the internal state.
Definition: ir_Daikin.cpp:1455
const uint8_t kDaikin64MinTemp
Definition: ir_Daikin.h:680
uint64_t Fan
Definition: ir_Daikin.h:245
const uint8_t kDaikin2SwingHRight
Definition: ir_Daikin.h:306
void setTemp(const uint8_t temp)
Set the temperature.
Definition: ir_Daikin.cpp:1874
uint64_t Power2
Definition: ir_Daikin.h:197
bool getQuiet(void) const
Get the Quiet mode status of the A/C.
Definition: ir_Daikin.cpp:1097
void setClock(const uint16_t mins_since_midnight)
Set the clock on the A/C unit.
Definition: ir_Daikin.cpp:2760
void setMode(const uint8_t mode)
Set the operating mode of the A/C.
Definition: ir_Daikin.cpp:1852
const uint16_t kDaikin64Gap
Definition: ir_Daikin.h:663
const uint16_t kDaikin128OneSpace
Definition: ir_Daikin.h:558
Daikin152Protocol _
Definition: ir_Daikin.h:1194
const uint16_t kDaikin152HdrMark
Definition: ir_Daikin.h:623
static uint8_t convertFan(const stdAc::fanspeed_t speed)
Convert a stdAc::fanspeed_t enum into it's native speed.
Definition: ir_Daikin.cpp:2299
uint64_t Sum1
Definition: ir_Daikin.h:81
const uint8_t kDaikin2SwingHSwing
Definition: ir_Daikin.h:310
void setSwingVertical(const bool on)
Set the Vertical Swing mode of the A/C.
Definition: ir_Daikin.cpp:2703
uint8_t getTemp(void) const
Get the current temperature setting.
Definition: ir_Daikin.cpp:232
uint8_t * getRaw(void)
Get a PTR to the internal state/code for this protocol.
Definition: ir_Daikin.cpp:1813
void enableOffTimer(const uint16_t endtime)
Set the enable status & time of the Off Timer.
Definition: ir_Daikin.cpp:411
const uint8_t kDaikin2HumidityOff
Definition: ir_Daikin.h:315
const uint16_t kDaikin160StateLength
Definition: IRremoteESP8266.h:1199
const uint16_t kDaikin216HdrMark
Definition: ir_Daikin.h:367
const uint16_t kDaikin2HdrSpace
Definition: ir_Daikin.h:281
const uint8_t kDaikin176ModeButton
Definition: ir_Daikin.h:502
const uint8_t kDaikinSections
Definition: ir_Daikin.h:155
const uint16_t kDaikin2StateLength
Definition: IRremoteESP8266.h:1194
uint8_t _saved_temp
The previously user requested temp value.
Definition: ir_Daikin.h:1063
uint8_t pad1[5]
Definition: ir_Daikin.h:336
const uint8_t kDaikinByteChecksum1
Definition: ir_Daikin.h:160
void setEye(const bool on)
Set the Eye (Sensor) mode of the A/C.
Definition: ir_Daikin.cpp:1050
uint8_t pad2[2]
Definition: ir_Daikin.h:607
void setRaw(const uint8_t new_code[])
Set the internal state from a valid code for this protocol.
Definition: ir_Daikin.cpp:3114
const uint8_t kDaikin64FanHigh
Definition: ir_Daikin.h:677
void stateReset(void)
Reset the internal state to a fixed known good state.
Definition: ir_Daikin.cpp:1791
IRsend _irsend
instance of the IR send class
Definition: ir_Daikin.h:998
void send(const uint16_t repeat=kDaikin152DefaultRepeat)
Send the current internal state as an IR message.
Definition: ir_Daikin.cpp:3073
const uint8_t kDaikin64ChecksumSize
Definition: ir_Daikin.h:683
void begin(void)
Set up hardware to be able to send a message.
Definition: ir_Daikin.cpp:2517
void setTemp(const uint8_t temp)
Set the temperature.
Definition: ir_Daikin.cpp:224
const uint8_t kDaikinFanMed
Definition: ir_Daikin.h:148
const uint16_t kDaikin312StateLength
Definition: IRremoteESP8266.h:1217
void checksum(void)
Calculate and set the checksum values for the internal state.
Definition: ir_Daikin.cpp:732
const uint16_t kDaikin64HdrSpace
Definition: ir_Daikin.h:659
void stateReset(void)
Reset the internal state to a fixed known good state.
Definition: ir_Daikin.cpp:2549
const uint8_t kDaikin2SwingVLowest
Definition: ir_Daikin.h:294
void send(const uint16_t repeat=kDaikin216DefaultRepeat)
Send the current internal state as an IR message.
Definition: ir_Daikin.cpp:1431
void setRaw(const uint8_t new_code[], const uint16_t length=kDaikinStateLength)
Set the internal state from a valid code for this protocol.
Definition: ir_Daikin.cpp:194
Native representation of a Daikin128 A/C message.
Definition: ir_Daikin.h:509
void setSwingVertical(const bool on)
Set the Vertical Swing mode of the A/C.
Definition: ir_Daikin.cpp:1574
const uint8_t kDaikinSwingOff
Definition: ir_Daikin.h:153
void setMode(const uint8_t mode)
Set the operating mode of the A/C.
Definition: ir_Daikin.cpp:3495
uint64_t SwingH
Definition: ir_Daikin.h:111
const uint16_t kMarkExcess
Definition: IRrecv.h:24
const uint8_t kDaikin216SwingOff
Definition: ir_Daikin.h:379
uint64_t EyeAuto
Definition: ir_Daikin.h:215
const uint8_t kDaikinAuto
Definition: ir_Daikin.h:140
static uint8_t convertFan(const stdAc::fanspeed_t speed)
Convert a stdAc::fanspeed_t enum into it's native speed.
Definition: ir_Daikin.cpp:3557
const uint16_t kDaikin216BitMark
Definition: ir_Daikin.h:369
String toString(void) const
Convert the current internal state into a human readable string.
Definition: ir_Daikin.cpp:2392
const uint8_t kDaikinCool
Definition: ir_Daikin.h:142
int8_t calibrate(void)
Run the calibration to calculate uSec timing offsets for this platform.
Definition: ir_Daikin.h:1080
uint64_t OffTime
Definition: ir_Daikin.h:115
uint8_t Temp
Definition: ir_Daikin.h:530
uint8_t ClockMins
Definition: ir_Daikin.h:640
const uint16_t kDaikin160ZeroSpace
Definition: ir_Daikin.h:420
const uint8_t kDaikin2SwingVOff
Definition: ir_Daikin.h:297
const uint64_t kDaikinFirstHeader64
Definition: ir_Daikin.h:181
const uint16_t kDaikin312BitMark
Definition: ir_Daikin.h:699
uint8_t Econo
Definition: ir_Daikin.h:542
const uint16_t kDaikin216Gap
Definition: ir_Daikin.h:372
Daikin64Protocol _
Definition: ir_Daikin.h:1259
uint8_t Mode
Definition: ir_Daikin.h:340
void setBeep(const uint8_t beep)
Set the Beep mode of the A/C.
Definition: ir_Daikin.cpp:998
bool getQuiet(void) const
Get the Quiet mode status of the A/C.
Definition: ir_Daikin.cpp:3598
const uint8_t kDaikinFanQuiet
Definition: ir_Daikin.h:151
uint64_t CurrentDay
Definition: ir_Daikin.h:87
bool getSensor(void) const
Get the Sensor mode of the A/C.
Definition: ir_Daikin.cpp:3267
void on(void)
Change the power setting to On.
Definition: ir_Daikin.cpp:786
const uint16_t kDaikinMarkExcess
Definition: ir_Daikin.h:173
static stdAc::opmode_t toCommonMode(const uint8_t mode)
Convert a native mode into its stdAc equivalent.
Definition: ir_Daikin.cpp:2626
uint8_t Temp
Definition: ir_Daikin.h:403
const uint8_t kDaikinTolerance
Definition: ir_Daikin.h:172
uint64_t OffTimer
Definition: ir_Daikin.h:97
const uint8_t kDaikin2SwingVLow
Definition: ir_Daikin.h:293
stdAc::state_t toCommon(void) const
Convert the current internal state into its stdAc::state_t equivalent.
Definition: ir_Daikin.cpp:1624
uint8_t getLight(void) const
Get the Light status of the A/C.
Definition: ir_Daikin.cpp:1002
static stdAc::opmode_t toCommonMode(const uint8_t mode)
Convert a native mode into its stdAc equivalent.
Definition: ir_Daikin.cpp:505
void setClean(const bool on)
Set the Auto clean mode of the A/C.
Definition: ir_Daikin.cpp:1018
const uint16_t kDaikin216HdrSpace
Definition: ir_Daikin.h:368
const uint8_t kDaikinSection2Length
Definition: ir_Daikin.h:157
uint64_t Sum2
Definition: ir_Daikin.h:90
const uint16_t kDaikin176OneSpace
Definition: ir_Daikin.h:490
bool getEcono(void) const
Get the Economical mode of the A/C.
Definition: ir_Daikin.cpp:1062
IRsend _irsend
instance of the IR send class
Definition: ir_Daikin.h:1055
uint8_t raw[kDaikin152StateLength]
The state of the IR remote.
Definition: ir_Daikin.h:582
uint8_t Fan
Definition: ir_Daikin.h:598
uint64_t Purify
Definition: ir_Daikin.h:265
const uint16_t kDaikinHdrMark
Definition: ir_Daikin.h:174
uint8_t SwingV
Definition: ir_Daikin.h:597
const uint8_t kDaikinLightOff
Definition: ir_Daikin.h:169
void setEcono(const bool on)
Set the Economy mode of the A/C.
Definition: ir_Daikin.cpp:1058
const uint16_t kDaikin200Section2Length
Definition: ir_Daikin.h:694
static uint8_t convertSwingV(const stdAc::swingv_t position)
Convert a stdAc::swingv_t enum into it's native setting.
Definition: ir_Daikin.cpp:1944
uint64_t Eye
Definition: ir_Daikin.h:262
uint16_t getOnTime(void) const
Get the On Timer time to be sent to the A/C unit.
Definition: ir_Daikin.cpp:3651
const uint8_t kDaikin2Tolerance
Definition: ir_Daikin.h:288
const uint8_t kDaikin160SwingVLow
Definition: ir_Daikin.h:427
bool getQuiet(void) const
Get the Quiet mode status of the A/C.
Definition: ir_Daikin.cpp:2740
uint8_t Power
Definition: ir_Daikin.h:652
const uint8_t kDaikin176DryFanTemp
Definition: ir_Daikin.h:503
void setMode(const uint8_t mode)
Set the operating mode of the A/C.
Definition: ir_Daikin.cpp:265
uint8_t getBeep(void) const
Get the Beep status of the A/C.
Definition: ir_Daikin.cpp:994
static stdAc::fanspeed_t toCommonFanSpeed(const uint8_t speed)
Convert a native fan speed into its stdAc equivalent.
Definition: ir_Daikin.cpp:2690
uint64_t Powerful
Definition: ir_Daikin.h:117
const uint16_t kDaikin2OneSpace
Definition: ir_Daikin.h:283
const uint8_t kDaikin2SwingHWide
Definition: ir_Daikin.h:302
DaikinESPProtocol _
Definition: ir_Daikin.h:798
void begin(void)
Set up hardware to be able to send a message.
Definition: ir_Daikin.cpp:3422
static stdAc::opmode_t toCommonMode(const uint8_t mode)
Convert a native mode into its stdAc equivalent.
Definition: ir_Daikin.cpp:3523
const uint16_t kDaikin312Sections
Definition: ir_Daikin.h:704
uint8_t pad2[2]
Definition: ir_Daikin.h:400
const uint16_t kDaikin128HdrMark
Definition: ir_Daikin.h:555
uint8_t raw[kDaikin216StateLength]
The state of the IR remote.
Definition: ir_Daikin.h:329
bool getSleep(void) const
Get the Sleep mode of the A/C.
Definition: ir_Daikin.cpp:3624
Structure to hold a common A/C state.
Definition: IRsend.h:114
bool getQuiet(void) const
Get the Quiet mode status of the A/C.
Definition: ir_Daikin.cpp:313
void setRaw(const uint8_t new_code[])
Set the internal state from a valid code for this protocol.
Definition: ir_Daikin.cpp:2566
void send(const uint16_t repeat=kDaikin64DefaultRepeat)
Send the current internal state as an IR message.
Definition: ir_Daikin.cpp:3427
uint8_t * getRaw(void)
Get a PTR to the internal state/code for this protocol.
Definition: ir_Daikin.cpp:2167
void setFan(const uint8_t fan)
Set the speed of the fan.
Definition: ir_Daikin.cpp:1545
uint8_t Sum3
Definition: ir_Daikin.h:135
void disableSleepTimer(void)
Disable the sleep timer.
Definition: ir_Daikin.cpp:1077
void setRaw(const uint8_t new_code[])
Set the internal state from a valid code for this protocol.
Definition: ir_Daikin.cpp:1820
uint8_t Fan
Definition: ir_Daikin.h:478
bool getPower(void) const
Get the value of the current power setting.
Definition: ir_Daikin.cpp:800
void setFan(const uint8_t fan)
Set the speed of the fan.
Definition: ir_Daikin.cpp:2653
void stateReset(void)
Reset the internal state to a fixed known good state.
Definition: ir_Daikin.cpp:158
const uint8_t kDaikin128MaxTemp
Definition: ir_Daikin.h:576
uint64_t Quiet
Definition: ir_Daikin.h:119
void send(const uint16_t repeat=kDaikin160DefaultRepeat)
Send the current internal state as an IR message.
Definition: ir_Daikin.cpp:1827
const uint8_t kDaikinMaxTemp
Definition: ir_Daikin.h:146
Class for handling detailed Daikin 176-bit A/C messages.
Definition: ir_Daikin.h:1011
const uint8_t kDaikin128FanHigh
Definition: ir_Daikin.h:570
bool getPower(void) const
Get the value of the current power setting.
Definition: ir_Daikin.cpp:1501
const uint8_t kDaikin128FanAuto
Definition: ir_Daikin.h:569
IRsend _irsend
instance of the IR send class
Definition: ir_Daikin.h:946
static uint8_t convertMode(const stdAc::opmode_t mode)
Convert a stdAc::opmode_t enum into its native mode.
Definition: ir_Daikin.cpp:1157
uint64_t CurrentTime
Definition: ir_Daikin.h:195
bool getSwingVertical(void) const
Get the Vertical Swing mode of the A/C.
Definition: ir_Daikin.cpp:287
const uint16_t kDaikin176Section1Length
Definition: ir_Daikin.h:494
uint64_t raw
The state of the IR remote.
Definition: ir_Daikin.h:635
const uint16_t kDaikin2Freq
Definition: ir_Daikin.h:276
const uint16_t kDaikin128BitMark
Definition: ir_Daikin.h:557
const uint8_t kDaikinMinTemp
Definition: ir_Daikin.h:145
void setTemp(const uint8_t temp)
Set the temperature.
Definition: ir_Daikin.cpp:1532
void disableOnTimer(void)
Clear and disable the On timer.
Definition: ir_Daikin.cpp:392
IRDaikin216(const uint16_t pin, const bool inverted=false, const bool use_modulation=true)
Class Constructor.
Definition: ir_Daikin.cpp:1421
uint64_t Temp
Definition: ir_Daikin.h:103
bool getEyeAuto(void) const
Get the Automaitc Eye (Sensor) mode status of the A/C.
Definition: ir_Daikin.cpp:1046
void setTemp(const uint8_t temp)
Set the temperature.
Definition: ir_Daikin.cpp:825
const uint8_t kDaikinFanMin
Definition: ir_Daikin.h:147
void begin(void)
Set up hardware to be able to send a message.
Definition: ir_Daikin.cpp:3068
const uint16_t kDaikin128LeaderMark
Definition: ir_Daikin.h:553
void setSleep(const bool on)
Set the Sleep mode of the A/C.
Definition: ir_Daikin.cpp:2711
stdAc::state_t toCommon(void) const
Convert the current internal state into its stdAc::state_t equivalent.
Definition: ir_Daikin.cpp:532
const uint8_t kDaikin2SwingVCirculate
Definition: ir_Daikin.h:296
uint8_t ClockHours
Definition: ir_Daikin.h:520
uint8_t pad2[2]
Definition: ir_Daikin.h:471
const uint8_t kDaikin2SwingHAuto
Definition: ir_Daikin.h:308
const uint8_t kDaikinLightDim
Definition: ir_Daikin.h:168
const uint8_t kDaikin176Fan
Definition: ir_Daikin.h:497
const uint16_t kDaikin200Gap
Definition: ir_Daikin.h:691
opmode_t
Common A/C settings for A/C operating modes.
Definition: IRsend.h:49
Native representation of a Daikin152 A/C message.
Definition: ir_Daikin.h:581