Go to the documentation of this file.
15 #define __STDC_LIMIT_MACROS
23 #include "IRsend_test.h"
60 explicit IRAirwellAc(
const uint16_t pin,
const bool inverted =
false,
61 const bool use_modulation =
true);
70 #endif // SEND_AIRWELL
74 void setTemp(
const uint8_t temp);
76 void setFan(
const uint8_t speed);
78 void setMode(
const uint8_t mode);
81 void setRaw(
const uint64_t state);
99 #endif // IR_AIRWELL_H_
const uint16_t kAirwellMinRepeats
Definition: IRremoteESP8266.h:839
const uint8_t kAirwellFanHigh
Definition: ir_Airwell.h:46
uint64_t Temp
Definition: ir_Airwell.h:30
void send(const uint16_t repeat=kAirwellMinRepeats)
Send the current internal state as an IR message.
Definition: ir_Airwell.cpp:108
uint64_t PowerToggle
Definition: ir_Airwell.h:34
void setTemp(const uint8_t temp)
Set the temperature.
Definition: ir_Airwell.cpp:225
IRsend _irsend
Instance of the IR send class.
Definition: ir_Airwell.h:91
Definition: ir_Airwell.h:26
fanspeed_t
Common A/C settings for Fan Speeds.
Definition: IRsend.h:58
const uint8_t kAirwellCool
Definition: ir_Airwell.h:49
stdAc::state_t toCommon(void) const
Convert the current internal state into its stdAc::state_t equivilant.
Definition: ir_Airwell.cpp:239
IRAirwellAc(const uint16_t pin, const bool inverted=false, const bool use_modulation=true)
Class constructor.
Definition: ir_Airwell.cpp:85
const uint8_t kAirwellHeat
Definition: ir_Airwell.h:50
void setMode(const uint8_t mode)
Set the desired operation mode.
Definition: ir_Airwell.cpp:138
const uint8_t kAirwellMinTemp
Definition: ir_Airwell.h:41
Class for sending all basic IR protocols.
Definition: IRsend.h:176
const uint8_t kAirwellFanAuto
Definition: ir_Airwell.h:47
int8_t calibrate(uint16_t hz=38000U)
Calculate & set any offsets to account for execution times during sending.
Definition: IRsend.cpp:207
uint64_t raw
Definition: ir_Airwell.h:27
const uint8_t kAirwellFan
Definition: ir_Airwell.h:53
uint8_t getTemp() const
Get the current temperature setting.
Definition: ir_Airwell.cpp:233
std::string String
Definition: IRremoteESP8266.h:1128
uint64_t getRaw() const
Get the raw state of the object, suitable to be sent with the appropriate IRsend object method.
Definition: ir_Airwell.cpp:95
const uint8_t kAirwellFanLow
Definition: ir_Airwell.h:44
const uint8_t kAirwellAuto
Definition: ir_Airwell.h:51
int8_t calibrate(void)
Run the calibration to calculate uSec timing offsets for this platform.
Definition: ir_Airwell.h:69
uint8_t getFan() const
Get the current fan speed setting.
Definition: ir_Airwell.cpp:189
void stateReset()
Reset the internals of the object to a known good state.
Definition: ir_Airwell.cpp:114
AirwellProtocol _
Definition: ir_Airwell.h:97
void setFan(const uint8_t speed)
Set the speed of the fan.
Definition: ir_Airwell.cpp:182
static uint8_t convertMode(const stdAc::opmode_t mode)
Convert a stdAc::opmode_t enum into its native mode.
Definition: ir_Airwell.cpp:156
const uint8_t kAirwellMaxTemp
Definition: ir_Airwell.h:42
static stdAc::opmode_t toCommonMode(const uint8_t mode)
Convert a native mode into its stdAc equivilant.
Definition: ir_Airwell.cpp:169
Class for handling detailed Airwell A/C messages.
Definition: ir_Airwell.h:58
const uint64_t kAirwellKnownGoodState
Definition: ir_Airwell.h:39
uint8_t getMode() const
Get the current operation mode setting.
Definition: ir_Airwell.cpp:132
static stdAc::fanspeed_t toCommonFanSpeed(const uint8_t speed)
Convert a native fan speed into its stdAc equivilant.
Definition: ir_Airwell.cpp:214
static uint8_t convertFan(const stdAc::fanspeed_t speed)
Convert a stdAc::fanspeed_t enum into it's native speed.
Definition: ir_Airwell.cpp:196
void setPowerToggle(const bool on)
Turn on/off the Power Airwell setting.
Definition: ir_Airwell.cpp:120
void begin()
Set up hardware to be able to send a message.
Definition: ir_Airwell.cpp:90
uint64_t Fan
Definition: ir_Airwell.h:32
const uint8_t kAirwellFanMedium
Definition: ir_Airwell.h:45
uint64_t Mode
Definition: ir_Airwell.h:33
String toString() const
Convert the current internal state into a human readable string.
Definition: ir_Airwell.cpp:265
Structure to hold a common A/C state.
Definition: IRsend.h:97
bool getPowerToggle() const
Get the power toggle setting from the internal state.
Definition: ir_Airwell.cpp:126
const uint8_t kAirwellDry
Definition: ir_Airwell.h:52
void setRaw(const uint64_t state)
Set the raw state of the object.
Definition: ir_Airwell.cpp:101
opmode_t
Common A/C settings for A/C operating modes.
Definition: IRsend.h:46