| IRremoteESP8266
    | 
Class for handling detailed Daikin 128-bit A/C messages. More...
#include <ir_Daikin.h>

| Public Member Functions | |
| IRDaikin128 (const uint16_t pin, const bool inverted=false, const bool use_modulation=true) | |
| Class constructor.  More... | |
| void | send (const uint16_t repeat=kDaikin128DefaultRepeat) | 
| 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 | setPowerToggle (const bool toggle) | 
| Set the Power toggle setting of the A/C.  More... | |
| bool | getPowerToggle (void) const | 
| Get the Power toggle setting of the A/C.  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 fan) | 
| Set the speed of the fan.  More... | |
| uint8_t | getFan (void) const | 
| Get the current fan speed setting.  More... | |
| uint8_t | getMode (void) const | 
| Get the operating mode setting of the A/C.  More... | |
| void | setMode (const uint8_t mode) | 
| Set the operating mode of the A/C.  More... | |
| void | setSwingVertical (const bool on) | 
| Set the Vertical Swing mode of the A/C.  More... | |
| bool | getSwingVertical (void) const | 
| Get the Vertical Swing mode of the A/C.  More... | |
| bool | getSleep (void) const | 
| Get the Sleep mode of the A/C.  More... | |
| void | setSleep (const bool on) | 
| Set the Sleep mode of the A/C.  More... | |
| bool | getQuiet (void) const | 
| Get the Quiet mode status of the A/C.  More... | |
| void | setQuiet (const bool on) | 
| Set the Quiet mode of the A/C.  More... | |
| bool | getPowerful (void) const | 
| Get the Powerful (Turbo) mode of the A/C.  More... | |
| void | setPowerful (const bool on) | 
| Set the Powerful (Turbo) mode of the A/C.  More... | |
| void | setEcono (const bool on) | 
| Set the Economy mode of the A/C.  More... | |
| bool | getEcono (void) const | 
| Get the Economical mode of the A/C.  More... | |
| void | setOnTimer (const uint16_t mins_since_midnight) | 
| Set the On Timer time for the A/C unit.  More... | |
| uint16_t | getOnTimer (void) const | 
| Get the On Timer time to be sent to the A/C unit.  More... | |
| bool | getOnTimerEnabled (void) const | 
| Get the enable status of the On Timer.  More... | |
| void | setOnTimerEnabled (const bool on) | 
| Set the enable status of the On Timer.  More... | |
| void | setOffTimer (const uint16_t mins_since_midnight) | 
| Set the Off Timer time for the A/C unit.  More... | |
| uint16_t | getOffTimer (void) const | 
| Get the Off Timer time to be sent to the A/C unit.  More... | |
| bool | getOffTimerEnabled (void) const | 
| Get the enable status of the Off Timer.  More... | |
| void | setOffTimerEnabled (const bool on) | 
| Set the enable status of the Off Timer.  More... | |
| void | setClock (const uint16_t mins_since_midnight) | 
| Set the clock on the A/C unit.  More... | |
| uint16_t | getClock (void) const | 
| Get the clock time to be sent to the A/C unit.  More... | |
| void | setLightToggle (const uint8_t unit_type) | 
| Set the Light toggle setting of the A/C.  More... | |
| uint8_t | getLightToggle (void) const | 
| Get the Light toggle setting of the A/C.  More... | |
| uint8_t * | getRaw (void) | 
| Get a PTR to the internal state/code for this protocol.  More... | |
| void | setRaw (const uint8_t new_code[]) | 
| Set the internal state from a valid code for this protocol.  More... | |
| stdAc::state_t | toCommon (const stdAc::state_t *prev=NULL) 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 bool | validChecksum (uint8_t state[]) | 
| Verify the checksum is valid for a given state.  More... | |
| 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 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 Member Functions | |
| void | stateReset (void) | 
| Reset the internal state to a fixed known good state.  More... | |
| void | checksum (void) | 
| Calculate and set the checksum values for the internal state.  More... | |
| Static Private Member Functions | |
| static uint8_t | calcFirstChecksum (const uint8_t state[]) | 
| static uint8_t | calcSecondChecksum (const uint8_t state[]) | 
| Private Attributes | |
| IRsend | _irsend | 
| instance of the IR send class  More... | |
| Daikin128Protocol | _ | 
Class for handling detailed Daikin 128-bit 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 IRDaikin128::begin | ( | void | ) | 
Set up hardware to be able to send a message.
| 
 | staticprivate | 
| 
 | staticprivate | 
| 
 | inline | 
Run the calibration to calculate uSec timing offsets for this platform.
| 
 | private | 
Calculate and set the checksum values for the internal state.
| 
 | 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. | 
| uint16_t IRDaikin128::getClock | ( | void | ) | const | 
Get the clock time to be sent to the A/C unit.
| bool IRDaikin128::getEcono | ( | void | ) | const | 
Get the Economical mode of the A/C.
| uint8_t IRDaikin128::getFan | ( | void | ) | const | 
Get the current fan speed setting.
| uint8_t IRDaikin128::getLightToggle | ( | void | ) | const | 
Get the Light toggle setting of the A/C.
| uint8_t IRDaikin128::getMode | ( | void | ) | const | 
Get the operating mode setting of the A/C.
| uint16_t IRDaikin128::getOffTimer | ( | void | ) | const | 
Get the Off Timer time to be sent to the A/C unit.
| bool IRDaikin128::getOffTimerEnabled | ( | void | ) | const | 
Get the enable status of the Off Timer.
| uint16_t IRDaikin128::getOnTimer | ( | void | ) | const | 
Get the On Timer time to be sent to the A/C unit.
| bool IRDaikin128::getOnTimerEnabled | ( | void | ) | const | 
Get the enable status of the On Timer.
| bool IRDaikin128::getPowerful | ( | void | ) | const | 
Get the Powerful (Turbo) mode of the A/C.
| bool IRDaikin128::getPowerToggle | ( | void | ) | const | 
Get the Power toggle setting of the A/C.
| bool IRDaikin128::getQuiet | ( | void | ) | const | 
Get the Quiet mode status of the A/C.
| uint8_t * IRDaikin128::getRaw | ( | void | ) | 
Get a PTR to the internal state/code for this protocol.
| bool IRDaikin128::getSleep | ( | void | ) | const | 
Get the Sleep mode of the A/C.
| bool IRDaikin128::getSwingVertical | ( | void | ) | const | 
Get the Vertical Swing mode of the A/C.
| uint8_t IRDaikin128::getTemp | ( | void | ) | const | 
Get the current temperature setting.
| void IRDaikin128::send | ( | const uint16_t | repeat = kDaikin128DefaultRepeat | ) | 
Send the current internal state as an IR message.
| [in] | repeat | Nr. of times the message will be repeated. | 
| void IRDaikin128::setClock | ( | const uint16_t | mins_since_midnight | ) | 
Set the clock on the A/C unit.
| [in] | mins_since_midnight | Nr. of minutes past midnight. | 
| void IRDaikin128::setEcono | ( | const bool | on | ) | 
Set the Economy mode of the A/C.
| [in] | on | true, the setting is on. false, the setting is off. | 
| void IRDaikin128::setFan | ( | const uint8_t | speed | ) | 
Set the speed of the fan.
| [in] | speed | The desired setting. | 
| void IRDaikin128::setLightToggle | ( | const uint8_t | unit | ) | 
Set the Light toggle setting of the A/C.
| [in] | unit | Device to show the LED (Light) Display info about. | 
| void IRDaikin128::setMode | ( | const uint8_t | mode | ) | 
Set the operating mode of the A/C.
| [in] | mode | The desired operating mode. | 
| void IRDaikin128::setOffTimer | ( | const uint16_t | mins_since_midnight | ) | 
Set the Off Timer time for the A/C unit.
| [in] | mins_since_midnight | Nr. of minutes past midnight. | 
| void IRDaikin128::setOffTimerEnabled | ( | const bool | on | ) | 
Set the enable status of the Off Timer.
| [in] | on | true, the setting is on. false, the setting is off. | 
| void IRDaikin128::setOnTimer | ( | const uint16_t | mins_since_midnight | ) | 
Set the On Timer time for the A/C unit.
| [in] | mins_since_midnight | Nr. of minutes past midnight. | 
| void IRDaikin128::setOnTimerEnabled | ( | const bool | on | ) | 
Set the enable status of the On Timer.
| [in] | on | true, the setting is on. false, the setting is off. | 
| void IRDaikin128::setPowerful | ( | const bool | on | ) | 
Set the Powerful (Turbo) mode of the A/C.
| [in] | on | true, the setting is on. false, the setting is off. | 
| void IRDaikin128::setPowerToggle | ( | const bool | toggle | ) | 
Set the Power toggle setting of the A/C.
| [in] | toggle | true, the setting is on. false, the setting is off. | 
| void IRDaikin128::setQuiet | ( | const bool | on | ) | 
Set the Quiet mode of the A/C.
| [in] | on | true, the setting is on. false, the setting is off. | 
| void IRDaikin128::setRaw | ( | const uint8_t | new_code[] | ) | 
Set the internal state from a valid code for this protocol.
| [in] | new_code | A valid code for this protocol. | 
| void IRDaikin128::setSleep | ( | const bool | on | ) | 
Set the Sleep mode of the A/C.
| [in] | on | true, the setting is on. false, the setting is off. | 
| void IRDaikin128::setSwingVertical | ( | const bool | on | ) | 
Set the Vertical Swing mode of the A/C.
| [in] | on | true, the setting is on. false, the setting is off. | 
| void IRDaikin128::setTemp | ( | const uint8_t | temp | ) | 
Set the temperature.
| [in] | temp | The temperature in degrees celsius. | 
| 
 | private | 
Reset the internal state to a fixed known good state.
| stdAc::state_t IRDaikin128::toCommon | ( | const stdAc::state_t * | prev = NULL | ) | const | 
Convert the current internal state into its stdAc::state_t equivalent.
| [in] | prev | Ptr to a previous state. | 
| 
 | static | 
| 
 | static | 
| String IRDaikin128::toString | ( | void | ) | const | 
Convert the current internal state into a human readable string.
| 
 | static | 
Verify the checksum is valid for a given state.
| [in] | state | The array to verify the checksum of. | 
| 
 | private | 
| 
 | private | 
instance of the IR send class
 1.8.17
 1.8.17