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

| Public Member Functions | |
| IRPanasonicAc (const uint16_t pin, const bool inverted=false, const bool use_modulation=true) | |
| Class constructor.  More... | |
| void | stateReset (void) | 
| Reset the state of the remote to a known good state/sequence.  More... | |
| void | send (const uint16_t repeat=kPanasonicAcDefaultRepeat) | 
| 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) | 
| Control the power state of the A/C unit.  More... | |
| bool | getPower (void) | 
| Get the A/C power state of the remote.  More... | |
| void | setTemp (const uint8_t temp, const bool remember=true) | 
| Set the temperature.  More... | |
| uint8_t | getTemp (void) | 
| Get the current temperature setting.  More... | |
| void | setFan (const uint8_t fan) | 
| Set the speed of the fan.  More... | |
| uint8_t | getFan (void) | 
| 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) | 
| Get the operating mode setting of the A/C.  More... | |
| void | setRaw (const uint8_t state[]) | 
| Set the internal state from a valid code for this protocol.  More... | |
| uint8_t * | getRaw (void) | 
| Get a PTR to the internal state/code for this protocol.  More... | |
| void | setQuiet (const bool on) | 
| Set the Quiet setting of the A/C.  More... | |
| bool | getQuiet (void) | 
| Get the Quiet setting of the A/C.  More... | |
| void | setPowerful (const bool on) | 
| Set the Powerful (Turbo) setting of the A/C.  More... | |
| bool | getPowerful (void) | 
| Get the Powerful (Turbo) setting of the A/C.  More... | |
| void | setIon (const bool on) | 
| Set the Ion (filter) setting of the A/C.  More... | |
| bool | getIon (void) | 
| Get the Ion (filter) setting of the A/C.  More... | |
| void | setModel (const panasonic_ac_remote_model_t model) | 
| Set the model of the A/C to emulate.  More... | |
| panasonic_ac_remote_model_t | getModel (void) | 
| Get/Detect the model of the A/C.  More... | |
| void | setSwingVertical (const uint8_t elevation) | 
| Control the vertical swing setting.  More... | |
| uint8_t | getSwingVertical (void) | 
| Get the current vertical swing setting.  More... | |
| void | setSwingHorizontal (const uint8_t direction) | 
| Control the horizontal swing setting.  More... | |
| uint8_t | getSwingHorizontal (void) | 
| Get the current horizontal swing setting.  More... | |
| uint16_t | getClock (void) | 
| Get the current clock time value.  More... | |
| void | setClock (const uint16_t mins_since_midnight) | 
| Set the current clock time value.  More... | |
| uint16_t | getOnTimer (void) | 
| Get the On Timer time value.  More... | |
| void | setOnTimer (const uint16_t mins_since_midnight, const bool enable=true) | 
| Set/Enable the On Timer.  More... | |
| void | cancelOnTimer (void) | 
| Cancel the On Timer.  More... | |
| bool | isOnTimerEnabled (void) | 
| Check if the On Timer is Enabled.  More... | |
| uint16_t | getOffTimer (void) | 
| Get the Off Timer time value.  More... | |
| void | setOffTimer (const uint16_t mins_since_midnight, const bool enable=true) | 
| Set/Enable the Off Timer.  More... | |
| void | cancelOffTimer (void) | 
| Cancel the Off Timer.  More... | |
| bool | isOffTimerEnabled (void) | 
| Check if the Off Timer is Enabled.  More... | |
| stdAc::state_t | toCommon (void) | 
| Convert the current internal state into its stdAc::state_t equivalent.  More... | |
| String | toString (void) | 
| Convert the internal state into a human readable string.  More... | |
| Static Public Member Functions | |
| static bool | validChecksum (const uint8_t *state, const uint16_t length=kPanasonicAcStateLength) | 
| Verify the checksum is valid for a given state.  More... | |
| static uint8_t | calcChecksum (const uint8_t *state, const uint16_t length=kPanasonicAcStateLength) | 
| Calculate the checksum for a given state.  More... | |
| static uint16_t | encodeTime (const uint8_t hours, const uint8_t mins) | 
| Convert standard (military/24hr) time to nr. of minutes since midnight.  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 uint8_t | convertSwingV (const stdAc::swingv_t position) | 
| Convert a standard A/C vertical swing into its native setting.  More... | |
| static uint8_t | convertSwingH (const stdAc::swingh_t position) | 
| Convert a standard A/C horizontal swing into its 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... | |
| static stdAc::swingv_t | toCommonSwingV (const uint8_t pos) | 
| Convert a native vertical swing postion to it's common equivalent.  More... | |
| static stdAc::swingh_t | toCommonSwingH (const uint8_t pos) | 
| Convert a native horizontal swing postion to it's common equivalent.  More... | |
| Private Member Functions | |
| void | fixChecksum (const uint16_t length=kPanasonicAcStateLength) | 
| Calculate and set the checksum values for the internal state.  More... | |
| Static Private Member Functions | |
| static uint16_t | _getTime (const uint8_t ptr[]) | 
| Get the time from a given pointer location.  More... | |
| static void | _setTime (uint8_t *const ptr, const uint16_t mins_since_midnight, const bool round_down) | 
| Set the time at a given pointer location.  More... | |
| Private Attributes | |
| IRsend | _irsend | 
| Instance of the IR send class.  More... | |
| uint8_t | remote_state [kPanasonicAcStateLength] | 
| The state in code form.  More... | |
| uint8_t | _swingh | 
| uint8_t | _temp | 
Class for handling detailed Panasonic 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? | 
| 
 | staticprivate | 
Get the time from a given pointer location.
| [in] | ptr | A pointer to a time location in a state. | 
| 
 | staticprivate | 
Set the time at a given pointer location.
| [in,out] | ptr | A pointer to a time location in a state. | 
| [in] | mins_since_midnight | The time as nr. of minutes past midnight. | 
| [in] | round_down | Do we round to the nearest 10 minute mark? | 
| void IRPanasonicAc::begin | ( | void | ) | 
Set up hardware to be able to send a message.
| 
 | static | 
Calculate the checksum for a given state.
| [in] | state | The value to calc the checksum of. | 
| [in] | length | The size/length of the state. | 
| 
 | inline | 
Run the calibration to calculate uSec timing offsets for this platform.
| void IRPanasonicAc::cancelOffTimer | ( | void | ) | 
Cancel the Off Timer.
| void IRPanasonicAc::cancelOnTimer | ( | void | ) | 
Cancel the On Timer.
| 
 | 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 standard A/C horizontal swing into its native setting.
| [in] | position | A stdAc::swingh_t position to convert. | 
| 
 | static | 
Convert a standard A/C vertical swing into its native setting.
| [in] | position | A stdAc::swingv_t position to convert. | 
| 
 | static | 
Convert standard (military/24hr) time to nr. of minutes since midnight.
| [in] | hours | The hours component of the time. | 
| [in] | mins | The minutes component of the time. | 
| 
 | private | 
Calculate and set the checksum values for the internal state.
| [in] | length | The size/length of the state. | 
| uint16_t IRPanasonicAc::getClock | ( | void | ) | 
Get the current clock time value.
| uint8_t IRPanasonicAc::getFan | ( | void | ) | 
Get the current fan speed setting.
| bool IRPanasonicAc::getIon | ( | void | ) | 
Get the Ion (filter) setting of the A/C.
| uint8_t IRPanasonicAc::getMode | ( | void | ) | 
Get the operating mode setting of the A/C.
| panasonic_ac_remote_model_t IRPanasonicAc::getModel | ( | void | ) | 
Get/Detect the model of the A/C.
| uint16_t IRPanasonicAc::getOffTimer | ( | void | ) | 
Get the Off Timer time value.
| uint16_t IRPanasonicAc::getOnTimer | ( | void | ) | 
Get the On Timer time value.
| bool IRPanasonicAc::getPower | ( | void | ) | 
Get the A/C power state of the remote.
| bool IRPanasonicAc::getPowerful | ( | void | ) | 
Get the Powerful (Turbo) setting of the A/C.
| bool IRPanasonicAc::getQuiet | ( | void | ) | 
Get the Quiet setting of the A/C.
| uint8_t * IRPanasonicAc::getRaw | ( | void | ) | 
Get a PTR to the internal state/code for this protocol.
| uint8_t IRPanasonicAc::getSwingHorizontal | ( | void | ) | 
Get the current horizontal swing setting.
| uint8_t IRPanasonicAc::getSwingVertical | ( | void | ) | 
Get the current vertical swing setting.
| uint8_t IRPanasonicAc::getTemp | ( | void | ) | 
Get the current temperature setting.
| bool IRPanasonicAc::isOffTimerEnabled | ( | void | ) | 
Check if the Off Timer is Enabled.
| bool IRPanasonicAc::isOnTimerEnabled | ( | void | ) | 
Check if the On Timer is Enabled.
| void IRPanasonicAc::off | ( | void | ) | 
Change the power setting to Off.
| void IRPanasonicAc::on | ( | void | ) | 
Change the power setting to On.
| void IRPanasonicAc::send | ( | const uint16_t | repeat = kPanasonicAcDefaultRepeat | ) | 
Send the current internal state as an IR message.
| [in] | repeat | Nr. of times the message will be repeated. | 
| void IRPanasonicAc::setClock | ( | const uint16_t | mins_since_midnight | ) | 
Set the current clock time value.
| [in] | mins_since_midnight | The time as nr. of minutes past midnight. | 
| void IRPanasonicAc::setFan | ( | const uint8_t | speed | ) | 
Set the speed of the fan.
| [in] | speed | The desired setting. | 
| void IRPanasonicAc::setIon | ( | const bool | on | ) | 
Set the Ion (filter) setting of the A/C.
| [in] | on | true, the setting is on. false, the setting is off. | 
| void IRPanasonicAc::setMode | ( | const uint8_t | desired | ) | 
Set the operating mode of the A/C.
| [in] | desired | The desired operating mode. | 
| void IRPanasonicAc::setModel | ( | const panasonic_ac_remote_model_t | model | ) | 
Set the model of the A/C to emulate.
| [in] | model | The enum of the appropriate model. | 
| void IRPanasonicAc::setOffTimer | ( | const uint16_t | mins_since_midnight, | 
| const bool | enable = true | ||
| ) | 
Set/Enable the Off Timer.
| [in] | mins_since_midnight | The time as nr. of minutes past midnight. | 
| [in] | enable | Do we enable the timer or not? | 
| void IRPanasonicAc::setOnTimer | ( | const uint16_t | mins_since_midnight, | 
| const bool | enable = true | ||
| ) | 
Set/Enable the On Timer.
| [in] | mins_since_midnight | The time as nr. of minutes past midnight. | 
| [in] | enable | Do we enable the timer or not? | 
| void IRPanasonicAc::setPower | ( | const bool | on | ) | 
Control the power state of the A/C unit.
| [in] | on | true, the setting is on. false, the setting is off. | 
setPower(false) will leave the A/C power state as it was. For all other models, setPower(true) should set the internal state to turn it on, and setPower(false) should turn it off. | void IRPanasonicAc::setPowerful | ( | const bool | on | ) | 
Set the Powerful (Turbo) setting of the A/C.
| [in] | on | true, the setting is on. false, the setting is off. | 
| void IRPanasonicAc::setQuiet | ( | const bool | on | ) | 
Set the Quiet setting of the A/C.
| [in] | on | true, the setting is on. false, the setting is off. | 
| void IRPanasonicAc::setRaw | ( | const uint8_t | state[] | ) | 
Set the internal state from a valid code for this protocol.
| [in] | state | A valid code for this protocol. | 
| void IRPanasonicAc::setSwingHorizontal | ( | const uint8_t | desired_direction | ) | 
Control the horizontal swing setting.
| [in] | desired_direction | The position to set the horizontal swing to. | 
| void IRPanasonicAc::setSwingVertical | ( | const uint8_t | desired_elevation | ) | 
Control the vertical swing setting.
| [in] | desired_elevation | The position to set the vertical swing to. | 
| void IRPanasonicAc::setTemp | ( | const uint8_t | celsius, | 
| const bool | remember = true | ||
| ) | 
Set the temperature.
| [in] | celsius | The temperature in degrees celsius. | 
| [in] | remember | A flag for the class to remember the temperature. | 
| void IRPanasonicAc::stateReset | ( | void | ) | 
Reset the state of the remote to a known good state/sequence.
| stdAc::state_t IRPanasonicAc::toCommon | ( | void | ) | 
Convert the current internal state into its stdAc::state_t equivalent.
| 
 | static | 
| 
 | static | 
| 
 | static | 
Convert a native horizontal swing postion to it's common equivalent.
| [in] | pos | A native position to convert. | 
| 
 | static | 
Convert a native vertical swing postion to it's common equivalent.
| [in] | pos | A native position to convert. | 
| String IRPanasonicAc::toString | ( | void | ) | 
Convert the 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. | 
| [in] | length | The length of the state array. | 
| 
 | private | 
Instance of the IR send class.
| 
 | private | 
| 
 | private | 
| 
 | private | 
The state in code form.
 1.8.17
 1.8.17