| IRremoteESP8266
    | 
Class for handling detailed Goodweather A/C messages. More...
#include <ir_Goodweather.h>

| Public Member Functions | |
| IRGoodweatherAc (const uint16_t pin, const bool inverted=false, const bool use_modulation=true) | |
| Class constructor.  More... | |
| void | stateReset (void) | 
| Reset the internal state to a fixed known good state.  More... | |
| void | send (const uint16_t repeat=kGoodweatherMinRepeat) | 
| Send the current internal state as an IR message.  More... | |
| int8_t | calibrate (void) | 
| Run the calibration to calculate uSec timing offsets for this platform.  More... | |
| void | begin (void) | 
| Set up hardware to be able to send a message.  More... | |
| void | on (void) | 
| Change the power setting to On.  More... | |
| void | off (void) | 
| Change the power setting to Off.  More... | |
| void | setPower (const bool on) | 
| Change the power setting.  More... | |
| bool | getPower (void) const | 
| Get the value of the current power setting.  More... | |
| void | setTemp (const uint8_t temp) | 
| Set the temperature.  More... | |
| uint8_t | getTemp (void) const | 
| Get the current temperature setting.  More... | |
| void | setFan (const uint8_t speed) | 
| Set the speed of the fan.  More... | |
| uint8_t | getFan (void) const | 
| Get the current fan speed setting.  More... | |
| void | setMode (const uint8_t mode) | 
| Set the operating mode of the A/C.  More... | |
| uint8_t | getMode (void) const | 
| Get the operating mode setting of the A/C.  More... | |
| void | setSwing (const uint8_t speed) | 
| Set the Vertical Swing speed of the A/C.  More... | |
| uint8_t | getSwing (void) const | 
| Get the Vertical Swing speed of the A/C.  More... | |
| void | setSleep (const bool toggle) | 
| Set the Sleep Toggle setting of the A/C.  More... | |
| bool | getSleep (void) const | 
| Get the Sleep Toggle setting of the A/C.  More... | |
| void | setTurbo (const bool toggle) | 
| Set the Turbo Toggle setting of the A/C.  More... | |
| bool | getTurbo (void) const | 
| Get the Turbo Toggle setting of the A/C.  More... | |
| void | setLight (const bool toggle) | 
| Set the Light (LED) Toggle setting of the A/C.  More... | |
| bool | getLight (void) const | 
| Get the Light (LED) Toggle setting of the A/C.  More... | |
| void | setCommand (const uint8_t cmd) | 
| Set the remote Command type/button pressed.  More... | |
| uint8_t | getCommand (void) const | 
| Get the Command type/button pressed from the current settings.  More... | |
| uint64_t | getRaw (void) | 
| Get a copy of the internal state as a valid code for this protocol.  More... | |
| void | setRaw (const uint64_t state) | 
| Set the internal state from a valid code for this protocol.  More... | |
| stdAc::state_t | toCommon (void) const | 
| Convert the current internal state into its stdAc::state_t equivalent.  More... | |
| String | toString (void) const | 
| Convert the current internal state into a human readable string.  More... | |
| Static Public Member Functions | |
| static uint8_t | convertMode (const stdAc::opmode_t mode) | 
| Convert a stdAc::opmode_t enum into its native mode.  More... | |
| static uint8_t | convertFan (const stdAc::fanspeed_t speed) | 
| Convert a stdAc::fanspeed_t enum into it's native speed.  More... | |
| static uint8_t | convertSwingV (const stdAc::swingv_t swingv) | 
| Convert a stdAc::swingv_t enum into it's native setting.  More... | |
| static stdAc::opmode_t | toCommonMode (const uint8_t mode) | 
| Convert a native mode into its stdAc equivalent.  More... | |
| static stdAc::fanspeed_t | toCommonFanSpeed (const uint8_t speed) | 
| Convert a native fan speed into its stdAc equivalent.  More... | |
| Private Attributes | |
| IRsend | _irsend | 
| Instance of the IR send class.  More... | |
| GoodweatherProtocol | _ | 
Class for handling detailed Goodweather A/C messages.
| 
 | explicit | 
Class constructor.
| [in] | pin | GPIO to be used when sending. | 
| [in] | inverted | Is the output signal to be inverted? | 
| [in] | use_modulation | Is frequency modulation to be used? | 
| void IRGoodweatherAc::begin | ( | void | ) | 
Set up hardware to be able to send a message.
| 
 | inline | 
Run the calibration to calculate uSec timing offsets for this platform.
| 
 | static | 
Convert a stdAc::fanspeed_t enum into it's native speed.
| [in] | speed | The enum to be converted. | 
| 
 | static | 
Convert a stdAc::opmode_t enum into its native mode.
| [in] | mode | The enum to be converted. | 
| 
 | static | 
Convert a stdAc::swingv_t enum into it's native setting.
| [in] | swingv | The enum to be converted. | 
| uint8_t IRGoodweatherAc::getCommand | ( | void | ) | const | 
Get the Command type/button pressed from the current settings.
| uint8_t IRGoodweatherAc::getFan | ( | void | ) | const | 
Get the current fan speed setting.
| bool IRGoodweatherAc::getLight | ( | void | ) | const | 
Get the Light (LED) Toggle setting of the A/C.
| uint8_t IRGoodweatherAc::getMode | ( | void | ) | const | 
Get the operating mode setting of the A/C.
| bool IRGoodweatherAc::getPower | ( | void | ) | const | 
Get the value of the current power setting.
| uint64_t IRGoodweatherAc::getRaw | ( | void | ) | 
Get a copy of the internal state as a valid code for this protocol.
| bool IRGoodweatherAc::getSleep | ( | void | ) | const | 
Get the Sleep Toggle setting of the A/C.
| uint8_t IRGoodweatherAc::getSwing | ( | void | ) | const | 
Get the Vertical Swing speed of the A/C.
| uint8_t IRGoodweatherAc::getTemp | ( | void | ) | const | 
Get the current temperature setting.
| bool IRGoodweatherAc::getTurbo | ( | void | ) | const | 
Get the Turbo Toggle setting of the A/C.
| void IRGoodweatherAc::off | ( | void | ) | 
Change the power setting to Off.
| void IRGoodweatherAc::on | ( | void | ) | 
Change the power setting to On.
| void IRGoodweatherAc::send | ( | const uint16_t | repeat = kGoodweatherMinRepeat | ) | 
Send the current internal state as an IR message.
| [in] | repeat | Nr. of times the message will be repeated. | 
| void IRGoodweatherAc::setCommand | ( | const uint8_t | cmd | ) | 
Set the remote Command type/button pressed.
| [in] | cmd | The command/button that was issued/pressed. | 
| void IRGoodweatherAc::setFan | ( | const uint8_t | speed | ) | 
Set the speed of the fan.
| [in] | speed | The desired setting. | 
| void IRGoodweatherAc::setLight | ( | const bool | toggle | ) | 
Set the Light (LED) Toggle setting of the A/C.
| [in] | toggle | true, the setting is on. false, the setting is off. | 
| void IRGoodweatherAc::setMode | ( | const uint8_t | mode | ) | 
Set the operating mode of the A/C.
| [in] | mode | The desired operating mode. | 
| void IRGoodweatherAc::setPower | ( | const bool | on | ) | 
Change the power setting.
| [in] | on | true, the setting is on. false, the setting is off. | 
| void IRGoodweatherAc::setRaw | ( | const uint64_t | state | ) | 
Set the internal state from a valid code for this protocol.
| [in] | state | A valid code for this protocol. | 
| void IRGoodweatherAc::setSleep | ( | const bool | toggle | ) | 
Set the Sleep Toggle setting of the A/C.
| [in] | toggle | true, the setting is on. false, the setting is off. | 
| void IRGoodweatherAc::setSwing | ( | const uint8_t | speed | ) | 
Set the Vertical Swing speed of the A/C.
| [in] | speed | The speed to set the swing to. | 
| void IRGoodweatherAc::setTemp | ( | const uint8_t | temp | ) | 
Set the temperature.
| [in] | temp | The temperature in degrees celsius. | 
| void IRGoodweatherAc::setTurbo | ( | const bool | toggle | ) | 
Set the Turbo Toggle setting of the A/C.
| [in] | toggle | true, the setting is on. false, the setting is off. | 
| void IRGoodweatherAc::stateReset | ( | void | ) | 
Reset the internal state to a fixed known good state.
| stdAc::state_t IRGoodweatherAc::toCommon | ( | void | ) | const | 
Convert the current internal state into its stdAc::state_t equivalent.
| 
 | static | 
| 
 | static | 
| String IRGoodweatherAc::toString | ( | void | ) | const | 
Convert the current internal state into a human readable string.
| 
 | private | 
| 
 | private | 
Instance of the IR send class.
 1.8.17
 1.8.17