# IRremoteESP8266: src/ir_Fujitsu.h Source File

ir_Fujitsu.h
Go to the documentation of this file.
// Copyright 2017 Jonny Graham
// Copyright 2018-2019 David Conran
// Supports:
// Brand: Fujitsu, Model: AR-RAH2E remote (ARRAH2E)
// Brand: Fujitsu, Model: ASYG30LFCA A/C (ARRAH2E)
// Brand: Fujitsu General, Model: AR-RCE1E remote (ARRAH2E)
// Brand: Fujitsu General, Model: ASHG09LLCA A/C (ARRAH2E)
// Brand: Fujitsu General, Model: AOHG09LLC A/C (ARRAH2E)
// Brand: Fujitsu, Model: AR-DB1 remote (ARDB1)
// Brand: Fujitsu, Model: AST9RSGCW A/C (ARDB1)
// Brand: Fujitsu, Model: AR-REB1E remote (ARREB1E)
// Brand: Fujitsu, Model: ASYG7LMCA A/C (ARREB1E)
// Brand: Fujitsu, Model: AR-RAE1E remote (ARRAH2E)
// Brand: Fujitsu, Model: AGTV14LAC A/C (ARRAH2E)
// Brand: Fujitsu, Model: AR-RAC1E remote (ARRAH2E)
// Brand: Fujitsu, Model: ASTB09LBC A/C (ARRY4)
// Brand: Fujitsu, Model: AR-RY4 remote (ARRY4)
// Brand: Fujitsu General, Model: AR-JW2 remote (ARJW2)
// Brand: Fujitsu, Model: AR-DL10 remote (ARDB1)
// Brand: Fujitsu, Model: ASU30C1 A/C (ARDB1)
#ifndef IR_FUJITSU_H_
#define IR_FUJITSU_H_
#define __STDC_LIMIT_MACROS
#include <stdint.h>
#ifdef ARDUINO
#include <Arduino.h>
#endif
#include "IRrecv.h"
#include "IRremoteESP8266.h"
#include "IRsend.h"
#ifdef UNIT_TEST
#include "IRsend_test.h"
#endif
// Constants
const uint8_t kFujitsuAcModeAuto = 0x00;
const uint8_t kFujitsuAcModeCool = 0x01;
const uint8_t kFujitsuAcModeDry = 0x02;
const uint8_t kFujitsuAcModeFan = 0x03;
const uint8_t kFujitsuAcModeHeat = 0x04;
const uint8_t kFujitsuAcCmdStayOn = 0x00; // b00000000
const uint8_t kFujitsuAcCmdTurnOn = 0x01; // b00000001
const uint8_t kFujitsuAcCmdTurnOff = 0x02; // b00000010
const uint8_t kFujitsuAcCmdEcono = 0x09; // b00001001
const uint8_t kFujitsuAcCmdPowerful = 0x39; // b00111001
const uint8_t kFujitsuAcCmdStepVert = 0x6C; // b01101100
const uint8_t kFujitsuAcCmdToggleSwingVert = 0x6D; // b01101101
const uint8_t kFujitsuAcCmdStepHoriz = 0x79; // b01111001
const uint8_t kFujitsuAcCmdToggleSwingHoriz = 0x7A; // b01111010
const uint8_t kFujitsuAcFanAuto = 0x00;
const uint8_t kFujitsuAcFanHigh = 0x01;
const uint8_t kFujitsuAcFanMed = 0x02;
const uint8_t kFujitsuAcFanLow = 0x03;
const uint8_t kFujitsuAcFanQuiet = 0x04;
const uint8_t kFujitsuAcFanSize = 3; // Bits
const uint8_t kFujitsuAcMinTemp = 16; // 16C
const uint8_t kFujitsuAcMaxTemp = 30; // 30C
const uint8_t kFujitsuAcSwingSize = 2;
const uint8_t kFujitsuAcSwingOff = 0x00;
const uint8_t kFujitsuAcSwingVert = 0x01;
const uint8_t kFujitsuAcSwingHoriz = 0x02;
const uint8_t kFujitsuAcSwingBoth = 0x03;
const uint8_t kFujitsuAcOutsideQuietOffset = 7;
const uint8_t kFujitsuAcCleanOffset = 3;
const uint8_t kFujitsuAcFilterOffset = 3;
const uint8_t kFujitsuAcTimerTypeByte = 9;
const uint8_t kFujitsuAcTimerTypeOffset = 4;
const uint8_t kFujitsuAcTimerTypeSize = 2;
const uint8_t kFujitsuAcStopTimers = 0b00; // 0
const uint8_t kFujitsuAcSleepTimer = 0b01; // 1
const uint8_t kFujitsuAcOffTimer = 0b10; // 2
const uint8_t kFujitsuAcOnTimer = 0b11; // 3
const uint16_t kFujitsuAcTimerMax = 12 * 60;
// Legacy defines.
#define FUJITSU_AC_MODE_AUTO kFujitsuAcModeAuto
#define FUJITSU_AC_MODE_COOL kFujitsuAcModeCool
#define FUJITSU_AC_MODE_DRY kFujitsuAcModeDry
#define FUJITSU_AC_MODE_FAN kFujitsuAcModeFan
#define FUJITSU_AC_MODE_HEAT kFujitsuAcModeHeat
#define FUJITSU_AC_CMD_STAY_ON kFujitsuAcCmdStayOn
#define FUJITSU_AC_CMD_TURN_ON kFujitsuAcCmdTurnOn
#define FUJITSU_AC_CMD_TURN_OFF kFujitsuAcCmdTurnOff
#define FUJITSU_AC_CMD_STEP_HORIZ kFujitsuAcCmdStepHoriz
#define FUJITSU_AC_CMD_STEP_VERT kFujitsuAcCmdStepVert
#define FUJITSU_AC_FAN_AUTO kFujitsuAcFanAuto
#define FUJITSU_AC_FAN_HIGH kFujitsuAcFanHigh
#define FUJITSU_AC_FAN_MED kFujitsuAcFanMed
#define FUJITSU_AC_FAN_LOW kFujitsuAcFanLow
#define FUJITSU_AC_FAN_QUIET kFujitsuAcFanQuiet
#define FUJITSU_AC_MIN_TEMP kFujitsuAcMinTemp
#define FUJITSU_AC_MAX_TEMP kFujitsuAcMaxTemp
#define FUJITSU_AC_SWING_OFF kFujitsuAcSwingOff
#define FUJITSU_AC_SWING_VERT kFujitsuAcSwingVert
#define FUJITSU_AC_SWING_HORIZ kFujitsuAcSwingHoriz
#define FUJITSU_AC_SWING_BOTH kFujitsuAcSwingBoth
class IRFujitsuAC {
public:
explicit IRFujitsuAC(const uint16_t pin,
const fujitsu_ac_remote_model_t model = ARRAH2E,
const bool inverted = false,
const bool use_modulation = true);
void setModel(const fujitsu_ac_remote_model_t model);
fujitsu_ac_remote_model_t getModel(void);
void stateReset(void);
#if SEND_FUJITSU_AC
void send(const uint16_t repeat = kFujitsuAcMinRepeat);
int8_t calibrate(void) { return _irsend.calibrate(); }
#endif // SEND_FUJITSU_AC
void begin(void);
void stepHoriz(void);
void toggleSwingHoriz(const bool update = true);
void stepVert(void);
void toggleSwingVert(const bool update = true);
void setCmd(const uint8_t cmd);
uint8_t getCmd(const bool raw = false);
void setTemp(const uint8_t temp);
uint8_t getTemp(void);
void setFanSpeed(const uint8_t fan);
uint8_t getFanSpeed(void);
void setMode(const uint8_t mode);
uint8_t getMode(void);
void setSwing(const uint8_t mode);
uint8_t getSwing(const bool raw = false);
uint8_t* getRaw(void);
bool setRaw(const uint8_t newState[], const uint16_t length);
uint8_t getStateLength(void);
static bool validChecksum(uint8_t* state, const uint16_t length);
void setPower(const bool on);
void off(void);
void on(void);
bool getPower(void);
void setClean(const bool on);
bool getClean(const bool raw = false);
void setFilter(const bool on);
bool getFilter(const bool raw = false);
void setOutsideQuiet(const bool on);
bool getOutsideQuiet(const bool raw = false);
uint8_t getTimerType(const bool raw = false);
void setTimerType(const uint8_t timertype);
uint16_t getOnTimer(const bool raw = false);
void setOnTimer(const uint16_t nr_mins);
uint16_t getOffSleepTimer(const bool raw = false);
void setOffTimer(const uint16_t nr_mins);
void setSleepTimer(const uint16_t nr_mins);
uint8_t convertMode(const stdAc::opmode_t mode);
uint8_t convertFan(stdAc::fanspeed_t speed);
static stdAc::opmode_t toCommonMode(const uint8_t mode);
static stdAc::fanspeed_t toCommonFanSpeed(const uint8_t speed);
stdAc::state_t toCommon(void);
String toString(void);
#ifndef UNIT_TEST
private:
IRsend _irsend;
#else
IRsendTest _irsend;
#endif
uint8_t remote_state[kFujitsuAcStateLength];
uint8_t _temp;
uint8_t _fanSpeed;
uint8_t _mode;
uint8_t _swingMode;
uint8_t _cmd;
fujitsu_ac_remote_model_t _model;
uint8_t _state_length;
uint8_t _state_length_short;
bool _outsideQuiet;
bool _clean;
bool _filter;
uint16_t _ontimer;
uint16_t _offtimer; // Also is the sleep timer value
uint8_t _timertype;
void buildState(void);
void buildFromState(const uint16_t length);
void setOffSleepTimer(const uint16_t nr_mins);
};
#endif // IR_FUJITSU_H_
IRFujitsuAC::_clean
bool _clean
Definition: ir_Fujitsu.h:191
IRFujitsuAC::_timertype
uint8_t _timertype
Definition: ir_Fujitsu.h:195
IRFujitsuAC::getOffSleepTimer
uint16_t getOffSleepTimer(const bool raw=false)
Get the Off/Sleep Timer setting of the A/C.
Definition: ir_Fujitsu.cpp:613
kFujitsuAcTimerTypeOffset
const uint8_t kFujitsuAcTimerTypeOffset
Mask: 0b00xx0000.
Definition: ir_Fujitsu.h:81
IRFujitsuAC::setOnTimer
void setOnTimer(const uint16_t nr_mins)
Set the On Timer setting of the A/C.
Definition: ir_Fujitsu.cpp:601
kFujitsuAcCmdTurnOff
const uint8_t kFujitsuAcCmdTurnOff
Definition: ir_Fujitsu.h:52
kFujitsuAcMinRepeat
const uint16_t kFujitsuAcMinRepeat
Definition: IRremoteESP8266.h:943
IRFujitsuAC::_cmd
uint8_t _cmd
Definition: ir_Fujitsu.h:186
kFujitsuAcTimerTypeByte
const uint8_t kFujitsuAcTimerTypeByte
Definition: ir_Fujitsu.h:80
stdAc::fanspeed_t
fanspeed_t
Common A/C settings for Fan Speeds.
Definition: IRsend.h:58
kFujitsuAcFilterOffset
const uint8_t kFujitsuAcFilterOffset
Definition: ir_Fujitsu.h:78
IRFujitsuAC::calibrate
int8_t calibrate(void)
Run the calibration to calculate uSec timing offsets for this platform.
Definition: ir_Fujitsu.h:128
IRFujitsuAC::setClean
void setClean(const bool on)
Set the Clean mode of the A/C.
Definition: ir_Fujitsu.cpp:513
kFujitsuAcCmdToggleSwingVert
const uint8_t kFujitsuAcCmdToggleSwingVert
Definition: ir_Fujitsu.h:56
IRFujitsuAC::_fanSpeed
uint8_t _fanSpeed
Definition: ir_Fujitsu.h:183
IRFujitsuAC::getRaw
uint8_t * getRaw(void)
Get a PTR to the internal state/code for this protocol.
Definition: ir_Fujitsu.cpp:241
IRFujitsuAC::setTimerType
void setTimerType(const uint8_t timertype)
Set the Timer type of the A/C message.
Definition: ir_Fujitsu.cpp:572
IRFujitsuAC::_filter
bool _filter
Definition: ir_Fujitsu.h:192
IRsend.h
IRFujitsuAC::stepVert
void stepVert(void)
Request the A/C to step the Vertical Swing.
Definition: ir_Fujitsu.cpp:345
IRFujitsuAC::_outsideQuiet
bool _outsideQuiet
Definition: ir_Fujitsu.h:190
IRFujitsuAC::setTemp
void setTemp(const uint8_t temp)
Set the temperature.
Definition: ir_Fujitsu.cpp:440
IRsend
Class for sending all basic IR protocols.
Definition: IRsend.h:182
IRFujitsuAC::convertMode
uint8_t convertMode(const stdAc::opmode_t mode)
Convert a stdAc::opmode_t enum into its native mode.
Definition: ir_Fujitsu.cpp:681
IRFujitsuAC::stateReset
void stateReset(void)
Reset the state of the remote to a known good state/sequence.
Definition: ir_Fujitsu.cpp:96
kFujitsuAcCleanOffset
const uint8_t kFujitsuAcCleanOffset
Definition: ir_Fujitsu.h:77
IRsend::calibrate
int8_t calibrate(uint16_t hz=38000U)
Calculate & set any offsets to account for execution times during sending.
Definition: IRsend.cpp:207
kFujitsuAcFanAuto
const uint8_t kFujitsuAcFanAuto
Definition: ir_Fujitsu.h:60
IRFujitsuAC::setRaw
bool setRaw(const uint8_t newState[], const uint16_t length)
Set the internal state from a valid code for this protocol.
Definition: ir_Fujitsu.cpp:320
String
std::string String
Definition: IRremoteESP8266.h:1178
kFujitsuAcOutsideQuietOffset
const uint8_t kFujitsuAcOutsideQuietOffset
Definition: ir_Fujitsu.h:76
kFujitsuAcCmdTurnOn
const uint8_t kFujitsuAcCmdTurnOn
Definition: ir_Fujitsu.h:51
IRFujitsuAC::_state_length_short
uint8_t _state_length_short
Definition: ir_Fujitsu.h:189
kFujitsuAcMinTemp
const uint8_t kFujitsuAcMinTemp
Definition: ir_Fujitsu.h:67
kFujitsuAcFanHigh
const uint8_t kFujitsuAcFanHigh
Definition: ir_Fujitsu.h:61
IRFujitsuAC::_offtimer
uint16_t _offtimer
Definition: ir_Fujitsu.h:194
kFujitsuAcModeHeat
const uint8_t kFujitsuAcModeHeat
Definition: ir_Fujitsu.h:48
IRFujitsuAC::setFilter
void setFilter(const bool on)
Set the Filter mode status of the A/C.
Definition: ir_Fujitsu.cpp:534
IRFujitsuAC::convertFan
uint8_t convertFan(stdAc::fanspeed_t speed)
Convert a stdAc::fanspeed_t enum into it's native speed.
Definition: ir_Fujitsu.cpp:694
IRremoteESP8266.h
IRFujitsuAC::stepHoriz
void stepHoriz(void)
Request the A/C to step the Horizontal Swing.
Definition: ir_Fujitsu.cpp:333
IRFujitsuAC::getModel
fujitsu_ac_remote_model_t getModel(void)
Get the currently emulated/detected model of the A/C.
Definition: ir_Fujitsu.cpp:93
kFujitsuAcCmdToggleSwingHoriz
const uint8_t kFujitsuAcCmdToggleSwingHoriz
Definition: ir_Fujitsu.h:58
IRFujitsuAC::_irsend
IRsend _irsend
Instance of the IR send class.
Definition: ir_Fujitsu.h:175
kFujitsuAcTimerTypeSize
const uint8_t kFujitsuAcTimerTypeSize
Mask: 0b00xx0000.
Definition: ir_Fujitsu.h:82
fujitsu_ac_remote_model_t
fujitsu_ac_remote_model_t
Fujitsu A/C model numbers.
Definition: IRsend.h:120
kFujitsuAcStopTimers
const uint8_t kFujitsuAcStopTimers
Definition: ir_Fujitsu.h:83
IRFujitsuAC::setCmd
void setCmd(const uint8_t cmd)
Set the requested (special) command part for the A/C message.
Definition: ir_Fujitsu.cpp:358
IRFujitsuAC::setOffTimer
void setOffTimer(const uint16_t nr_mins)
Set the Off Timer time for the A/C.
Definition: ir_Fujitsu.cpp:635
IRFujitsuAC::buildFromState
void buildFromState(const uint16_t length)
Build the internal state/config from the current (raw) A/C message.
Definition: ir_Fujitsu.cpp:248
IRFujitsuAC::_temp
uint8_t _temp
Definition: ir_Fujitsu.h:182
IRFujitsuAC::_swingMode
uint8_t _swingMode
Definition: ir_Fujitsu.h:185
IRFujitsuAC::begin
void begin(void)
Set up hardware to be able to send a message.
Definition: ir_Fujitsu.cpp:111
IRFujitsuAC
Class for handling detailed Fujitsu A/C messages.
Definition: ir_Fujitsu.h:113
kFujitsuAcCmdStepVert
const uint8_t kFujitsuAcCmdStepVert
Definition: ir_Fujitsu.h:55
IRFujitsuAC::setSwing
void setSwing(const uint8_t mode)
Set the requested swing operation mode of the A/C unit.
Definition: ir_Fujitsu.cpp:482
kFujitsuAcStateLength
const uint16_t kFujitsuAcStateLength
Definition: IRremoteESP8266.h:944
kFujitsuAcCmdPowerful
const uint8_t kFujitsuAcCmdPowerful
Definition: ir_Fujitsu.h:54
IRFujitsuAC::toCommonMode
static stdAc::opmode_t toCommonMode(const uint8_t mode)
Convert a native mode into its stdAc equivalent.
Definition: ir_Fujitsu.cpp:708
kFujitsuAcSwingSize
const uint8_t kFujitsuAcSwingSize
Definition: ir_Fujitsu.h:70
IRFujitsuAC::_mode
uint8_t _mode
Definition: ir_Fujitsu.h:184
IRFujitsuAC::toCommon
stdAc::state_t toCommon(void)
Convert the current internal state into its stdAc::state_t equivalent.
Definition: ir_Fujitsu.cpp:733
kFujitsuAcCmdStepHoriz
const uint8_t kFujitsuAcCmdStepHoriz
Definition: ir_Fujitsu.h:57
IRFujitsuAC::setMode
void setMode(const uint8_t mode)
Set the operating mode of the A/C.
Definition: ir_Fujitsu.cpp:466
kFujitsuAcSwingHoriz
const uint8_t kFujitsuAcSwingHoriz
Definition: ir_Fujitsu.h:73
kFujitsuAcSwingVert
const uint8_t kFujitsuAcSwingVert
Definition: ir_Fujitsu.h:72
IRFujitsuAC::toCommonFanSpeed
static stdAc::fanspeed_t toCommonFanSpeed(const uint8_t speed)
Convert a native fan speed into its stdAc equivalent.
Definition: ir_Fujitsu.cpp:721
IRFujitsuAC::toggleSwingVert
void toggleSwingVert(const bool update=true)
Request the A/C to toggle the Vertical Swing mode.
Definition: ir_Fujitsu.cpp:349
IRrecv.h
kFujitsuAcModeAuto
const uint8_t kFujitsuAcModeAuto
Definition: ir_Fujitsu.h:44
IRFujitsuAC::setOutsideQuiet
void setOutsideQuiet(const bool on)
Set the Outside Quiet mode of the A/C.
Definition: ir_Fujitsu.cpp:421
kFujitsuAcSwingOff
const uint8_t kFujitsuAcSwingOff
Definition: ir_Fujitsu.h:71
IRFujitsuAC::setModel
void setModel(const fujitsu_ac_remote_model_t model)
Set the currently emulated model of the A/C.
Definition: ir_Fujitsu.cpp:74
kFujitsuAcModeDry
const uint8_t kFujitsuAcModeDry
Definition: ir_Fujitsu.h:46
ARRAH2E
@ ARRAH2E
Definition: IRsend.h:121
IRFujitsuAC::getFilter
bool getFilter(const bool raw=false)
Get the Filter mode status of the A/C.
Definition: ir_Fujitsu.cpp:542
kFujitsuAcSleepTimer
const uint8_t kFujitsuAcSleepTimer
Definition: ir_Fujitsu.h:84
IRFujitsuAC::getStateLength
uint8_t getStateLength(void)
Get the length (size) of the state code for the current configuration.
Definition: ir_Fujitsu.cpp:226
kFujitsuAcFanSize
const uint8_t kFujitsuAcFanSize
Definition: ir_Fujitsu.h:65
IRFujitsuAC::_ontimer
uint16_t _ontimer
Definition: ir_Fujitsu.h:193
kFujitsuAcFanMed
const uint8_t kFujitsuAcFanMed
Definition: ir_Fujitsu.h:62
IRFujitsuAC::IRFujitsuAC
IRFujitsuAC(const uint16_t pin, const fujitsu_ac_remote_model_t model=ARRAH2E, const bool inverted=false, const bool use_modulation=true)
Class Constructor.
Definition: ir_Fujitsu.cpp:64
IRFujitsuAC::setSleepTimer
void setSleepTimer(const uint16_t nr_mins)
Set the Sleep Timer time for the A/C.
Definition: ir_Fujitsu.cpp:645
kFujitsuAcSwingBoth
const uint8_t kFujitsuAcSwingBoth
Definition: ir_Fujitsu.h:74
IRFujitsuAC::getMode
uint8_t getMode(void)
Get the operating mode setting of the A/C.
Definition: ir_Fujitsu.cpp:476
IRFujitsuAC::getTemp
uint8_t getTemp(void)
Get the current temperature setting.
Definition: ir_Fujitsu.cpp:448
IRFujitsuAC::buildState
void buildState(void)
(Re)Build the state from the currently configured settings.
Definition: ir_Fujitsu.cpp:123
IRFujitsuAC::_model
fujitsu_ac_remote_model_t _model
Definition: ir_Fujitsu.h:187
kFujitsuAcMaxTemp
const uint8_t kFujitsuAcMaxTemp
Definition: ir_Fujitsu.h:68
kFujitsuAcCmdStayOn
const uint8_t kFujitsuAcCmdStayOn
Definition: ir_Fujitsu.h:50
IRFujitsuAC::getTimerType
uint8_t getTimerType(const bool raw=false)
Get the Timer type of the A/C message.
Definition: ir_Fujitsu.cpp:556
IRFujitsuAC::getOutsideQuiet
bool getOutsideQuiet(const bool raw=false)
Get the Outside Quiet mode status of the A/C.
Definition: ir_Fujitsu.cpp:429
IRFujitsuAC::toString
String toString(void)
Convert the current internal state into a human readable string.
Definition: ir_Fujitsu.cpp:776
IRFujitsuAC::getFanSpeed
uint8_t getFanSpeed(void)
Get the current fan speed setting.
Definition: ir_Fujitsu.cpp:462
IRFujitsuAC::getOnTimer
uint16_t getOnTimer(const bool raw=false)
Get the On Timer setting of the A/C.
Definition: ir_Fujitsu.cpp:587
IRFujitsuAC::getCmd
uint8_t getCmd(const bool raw=false)
Set the requested (special) command part for the A/C message.
Definition: ir_Fujitsu.cpp:398
kFujitsuAcOnTimer
const uint8_t kFujitsuAcOnTimer
Definition: ir_Fujitsu.h:86
IRFujitsuAC::setFanSpeed
void setFanSpeed(const uint8_t fan)
Set the speed of the fan.
Definition: ir_Fujitsu.cpp:452
kFujitsuAcOffTimer
const uint8_t kFujitsuAcOffTimer
Definition: ir_Fujitsu.h:85
IRFujitsuAC::getSwing
uint8_t getSwing(const bool raw=false)
Get the requested swing operation mode of the A/C unit.
Definition: ir_Fujitsu.cpp:505
IRFujitsuAC::off
void off(void)
Set the requested power state of the A/C to off.
Definition: ir_Fujitsu.cpp:410
IRFujitsuAC::setPower
void setPower(const bool on)
Change the power setting.
Definition: ir_Fujitsu.cpp:405
IRFujitsuAC::on
void on(void)
Set the requested power state of the A/C to on.
Definition: ir_Fujitsu.cpp:413
IRFujitsuAC::send
void send(const uint16_t repeat=kFujitsuAcMinRepeat)
Send the current internal state as an IR message.
Definition: ir_Fujitsu.cpp:116
IRFujitsuAC::getClean
bool getClean(const bool raw=false)
Get the Clean mode status of the A/C.
Definition: ir_Fujitsu.cpp:521
IRFujitsuAC::setOffSleepTimer
void setOffSleepTimer(const uint16_t nr_mins)
Set the Off/Sleep Timer time for the A/C.
Definition: ir_Fujitsu.cpp:629
IRFujitsuAC::getPower
bool getPower(void)
Get the value of the current power setting.
Definition: ir_Fujitsu.cpp:417
IRFujitsuAC::validChecksum
static bool validChecksum(uint8_t *state, const uint16_t length)
Verify the checksum is valid for a given state.
Definition: ir_Fujitsu.cpp:657
IRFujitsuAC::_state_length
uint8_t _state_length
Definition: ir_Fujitsu.h:188
kFujitsuAcTimerMax
const uint16_t kFujitsuAcTimerMax
Minutes.
Definition: ir_Fujitsu.h:87
IRFujitsuAC::toggleSwingHoriz
void toggleSwingHoriz(const bool update=true)
Request the A/C to toggle the Horizontal Swing mode.
Definition: ir_Fujitsu.cpp:337
kFujitsuAcModeFan
const uint8_t kFujitsuAcModeFan
Definition: ir_Fujitsu.h:47
stdAc::state_t
Structure to hold a common A/C state.
Definition: IRsend.h:97
kFujitsuAcCmdEcono
const uint8_t kFujitsuAcCmdEcono
Definition: ir_Fujitsu.h:53
IRFujitsuAC::remote_state
uint8_t remote_state[kFujitsuAcStateLength]
The state of the IR remote.
Definition: ir_Fujitsu.h:181
kFujitsuAcFanQuiet
const uint8_t kFujitsuAcFanQuiet
Definition: ir_Fujitsu.h:64
kFujitsuAcFanLow
const uint8_t kFujitsuAcFanLow
Definition: ir_Fujitsu.h:63
kFujitsuAcModeCool
const uint8_t kFujitsuAcModeCool
Definition: ir_Fujitsu.h:45
stdAc::opmode_t
opmode_t
Common A/C settings for A/C operating modes.
Definition: IRsend.h:46