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

| Public Member Functions | |
| IRYorkAc (const uint16_t pin, const bool inverted=false, const bool use_modulation=true) | |
| Class constructor.  More... | |
| void | stateReset () | 
| void | send (const uint16_t repeat=kNoRepeat) | 
| 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 () | 
| Set up hardware to be able to send a message.  More... | |
| void | setPowerToggle (const bool on) | 
| bool | getPowerToggle () const | 
| void | setTemp (const uint8_t temp) | 
| Set the temperature.  More... | |
| uint8_t | getTemp () const | 
| Get the current temperature setting.  More... | |
| void | setFan (const uint8_t speed) | 
| Set the speed of the fan.  More... | |
| uint8_t | getFan () const | 
| Get the current fan speed setting.  More... | |
| void | setMode (const uint8_t mode) | 
| Set the desired operation mode.  More... | |
| uint8_t | getMode () const | 
| Get the current operation mode setting.  More... | |
| uint16_t | getOnTimer (void) const | 
| Get the On Timer setting of the A/C.  More... | |
| uint16_t | getOffTimer (void) const | 
| Get the Off Timer setting of the A/C.  More... | |
| void | setOnTimer (const uint16_t mins) | 
| Set the On Timer value of the A/C.  More... | |
| void | setOffTimer (const uint16_t mins) | 
| Set the Off Timer value of the A/C.  More... | |
| uint8_t * | getRaw () | 
| Get the raw state of the object, suitable to be sent with the appropriate IRsend object method.  More... | |
| void | setRaw (const uint8_t new_code[], const uint16_t length=kYorkStateLength) | 
| Set the internal state from a valid code for this protocol.  More... | |
| void | calcChecksum () | 
| CRC16-16 (a.k.a. CRC-16-IBM)  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 () 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 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... | |
| YorkProtocol | _ | 
Class for handling detailed York 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 IRYorkAc::begin | ( | ) | 
Set up hardware to be able to send a message.
| void IRYorkAc::calcChecksum | ( | ) | 
CRC16-16 (a.k.a. CRC-16-IBM)
| 
 | 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. | 
| uint8_t IRYorkAc::getFan | ( | ) | const | 
Get the current fan speed setting.
| uint8_t IRYorkAc::getMode | ( | ) | const | 
Get the current operation mode setting.
| uint16_t IRYorkAc::getOffTimer | ( | void | ) | const | 
Get the Off Timer setting of the A/C.
| uint16_t IRYorkAc::getOnTimer | ( | void | ) | const | 
Get the On Timer setting of the A/C.
| bool IRYorkAc::getPowerToggle | ( | ) | const | 
| uint8_t * IRYorkAc::getRaw | ( | ) | 
Get the raw state of the object, suitable to be sent with the appropriate IRsend object method.
| uint8_t IRYorkAc::getTemp | ( | ) | const | 
Get the current temperature setting.
| void IRYorkAc::send | ( | const uint16_t | repeat = kNoRepeat | ) | 
Send the current internal state as an IR message.
| [in] | repeat | Nr. of times the message will be repeated. | 
| void IRYorkAc::setFan | ( | const uint8_t | speed | ) | 
Set the speed of the fan.
| [in] | speed | The desired setting. | 
| void IRYorkAc::setMode | ( | const uint8_t | mode | ) | 
Set the desired operation mode.
| [in] | mode | The desired operation mode. | 
| void IRYorkAc::setOffTimer | ( | const uint16_t | nr_of_mins | ) | 
Set the Off Timer value of the A/C.
| [in] | nr_of_mins | The number of minutes the timer should be. | 
| void IRYorkAc::setOnTimer | ( | const uint16_t | nr_of_mins | ) | 
Set the On Timer value of the A/C.
| [in] | nr_of_mins | The number of minutes the timer should be. | 
| void IRYorkAc::setPowerToggle | ( | const bool | on | ) | 
| void IRYorkAc::setRaw | ( | const uint8_t | new_code[], | 
| const uint16_t | length = kYorkStateLength | ||
| ) | 
Set the internal state from a valid code for this protocol.
| [in] | new_code | A valid code for this protocol. | 
| [in] | length | Length of the code in bytes. | 
| void IRYorkAc::setTemp | ( | const uint8_t | degrees | ) | 
Set the temperature.
| [in] | degrees | The temperature in degrees celsius. | 
| void IRYorkAc::stateReset | ( | ) | 
| stdAc::state_t IRYorkAc::toCommon | ( | const stdAc::state_t * | prev = NULL | ) | const | 
Convert the current internal state into its stdAc::state_t equivalent.
| [in] | prev | Ptr to the previous state if required. | 
| 
 | static | 
| 
 | static | 
| String IRYorkAc::toString | ( | ) | 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