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

Public Member Functions | |
| IRAmcorAc (const uint16_t pin, const bool inverted=false, const bool use_modulation=true) | |
| Class constructor. More... | |
| void | stateReset () |
| Reset the internals of the object to a known good state. More... | |
| void | send (const uint16_t repeat=kAmcorDefaultRepeat) |
| 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 | setPower (const bool state) |
| Set the internal state to have the desired power. More... | |
| bool | getPower (void) const |
| Get the power setting from the internal state. More... | |
| void | on (void) |
| Set the internal state to have the power on. More... | |
| void | off (void) |
| Set the internal state to have the power off. More... | |
| void | setTemp (const uint8_t temp) |
| Set the temperature. More... | |
| uint8_t | getTemp (void) const |
| Get the current temperature setting. More... | |
| void | setMax (const bool on) |
| Control the current Maximum Cooling or Heating setting. (i.e. Turbo) More... | |
| bool | getMax (void) const |
| Is the Maximum Cooling or Heating setting (i.e. Turbo) setting on? 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 desired operation mode. More... | |
| uint8_t | getMode (void) const |
| Get the current operation mode setting. More... | |
| uint8_t * | getRaw (void) |
| Get the raw state of the object, suitable to be sent with the appropriate IRsend object method. More... | |
| void | setRaw (const uint8_t state[]) |
| Set the raw state of the object. 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 | calcChecksum (const uint8_t state[], const uint16_t length=kAmcorStateLength) |
| Calculate the checksum for the supplied state. More... | |
| static bool | validChecksum (const uint8_t state[], const uint16_t length=kAmcorStateLength) |
| 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 | checksum (void) |
| Update the checksum value for the internal state. More... | |
Private Attributes | |
| IRsend | _irsend |
| AmcorProtocol | _ |
Class for handling detailed Amcor 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 IRAmcorAc::begin | ( | ) |
Set up hardware to be able to send a message.
|
static |
Calculate the checksum for the supplied state.
| [in] | state | The source state to generate the checksum from. |
| [in] | length | Length of the supplied state to checksum. |
|
inline |
Run the calibration to calculate uSec timing offsets for this platform.
|
private |
Update the checksum value 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. |
| uint8_t IRAmcorAc::getFan | ( | void | ) | const |
Get the current fan speed setting.
| bool IRAmcorAc::getMax | ( | void | ) | const |
Is the Maximum Cooling or Heating setting (i.e. Turbo) setting on?
| uint8_t IRAmcorAc::getMode | ( | void | ) | const |
Get the current operation mode setting.
| bool IRAmcorAc::getPower | ( | void | ) | const |
Get the power setting from the internal state.
| uint8_t * IRAmcorAc::getRaw | ( | void | ) |
Get the raw state of the object, suitable to be sent with the appropriate IRsend object method.
| uint8_t IRAmcorAc::getTemp | ( | void | ) | const |
Get the current temperature setting.
| void IRAmcorAc::off | ( | void | ) |
Set the internal state to have the power off.
| void IRAmcorAc::on | ( | void | ) |
Set the internal state to have the power on.
| void IRAmcorAc::send | ( | const uint16_t | repeat = kAmcorDefaultRepeat | ) |
Send the current internal state as an IR message.
| [in] | repeat | Nr. of times the message will be repeated. |
| void IRAmcorAc::setFan | ( | const uint8_t | speed | ) |
Set the speed of the fan.
| [in] | speed | The desired setting. |
| void IRAmcorAc::setMax | ( | const bool | on | ) |
Control the current Maximum Cooling or Heating setting. (i.e. Turbo)
| [in] | on | The desired setting. |
| void IRAmcorAc::setMode | ( | const uint8_t | mode | ) |
Set the desired operation mode.
| [in] | mode | The desired operation mode. |
| void IRAmcorAc::setPower | ( | const bool | on | ) |
Set the internal state to have the desired power.
| [in] | on | The desired power state. |
| void IRAmcorAc::setRaw | ( | const uint8_t | state[] | ) |
Set the raw state of the object.
| [in] | state | The raw state from the native IR message. |
| void IRAmcorAc::setTemp | ( | const uint8_t | degrees | ) |
Set the temperature.
| [in] | degrees | The temperature in degrees celsius. |
| void IRAmcorAc::stateReset | ( | ) |
Reset the internals of the object to a known good state.
| stdAc::state_t IRAmcorAc::toCommon | ( | void | ) | const |
Convert the current internal state into its stdAc::state_t equivalent.
|
static |
|
static |
| String IRAmcorAc::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. |
| [in] | length | The size of the state. |
|
private |
|
private |
1.8.17