|
IRremoteESP8266
|
Class for handling detailed Mitsubishi 144-bit A/C messages. More...
#include <ir_Mitsubishi.h>

Public Member Functions | |
| IRMitsubishiAC (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=kMitsubishiACMinRepeat) |
| 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) |
| Set the requested power state of the A/C to on. More... | |
| void | off (void) |
| Set the requested power state of the A/C 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 float degrees) |
| Set the temperature. More... | |
| float | 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 | setISave10C (const bool state) |
| Set the iSave10C (i-SAVE) mode of the A/C. More... | |
| bool | getISave10C (void) const |
| Get the iSave10C (i-SAVE) mode of the A/C. More... | |
| void | setISee (const bool state) |
| Set the requested iSee mode. More... | |
| bool | getISee (void) const |
| Get the iSee mode of the A/C. More... | |
| void | setDirectIndirect (const uint8_t position) |
| Set the requested Direct/Indirect mode. Only works if I-See mode is ON. More... | |
| uint8_t | getDirectIndirect (void) const |
| Get the Direct/Indirect mode of the A/C. More... | |
| void | setEcocool (const bool state) |
| Set the requested Ecocool mode. More... | |
| bool | getEcocool (void) const |
| Get the Ecocool mode of the A/C. More... | |
| void | setAbsenseDetect (const bool state) |
| Set the requested Absense Detect mode. More... | |
| bool | getAbsenseDetect (void) const |
| Get the Absense Detect mode of the A/C. More... | |
| void | setNaturalFlow (const bool state) |
| Set the requested Natural Flow mode. More... | |
| bool | getNaturalFlow (void) const |
| Get the Natural Flow mode of the A/C. More... | |
| void | setVane (const uint8_t position) |
| Set the requested vane (Vertical Swing) operation mode of the a/c unit. More... | |
| uint8_t | getVane (void) const |
| Get the Vane (Vertical Swing) mode of the A/C. More... | |
| void | setVaneLeft (const uint8_t position) |
| Set the requested Left Vane (Vertical Swing) operation mode of the a/c unit. More... | |
| uint8_t | getVaneLeft (void) const |
| Get the Left Vane (Vertical Swing) mode of the A/C. More... | |
| void | setWideVane (const uint8_t position) |
| Set the requested wide-vane (Horizontal Swing) operation mode of the a/c. More... | |
| uint8_t | getWideVane (void) const |
| Get the Wide Vane (Horizontal Swing) mode 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 *data) |
| Set the internal state from a valid code for this protocol. More... | |
| uint8_t | getClock (void) const |
| Get the clock time of the A/C unit. More... | |
| void | setClock (const uint8_t clock) |
| Set the clock time on the A/C unit. More... | |
| uint8_t | getStartClock (void) const |
| Get the desired start time of the A/C unit. More... | |
| void | setStartClock (const uint8_t clock) |
| Set the desired start time of the A/C unit. More... | |
| uint8_t | getStopClock (void) const |
| Get the desired stop time of the A/C unit. More... | |
| void | setStopClock (const uint8_t clock) |
| Set the desired stop time of the A/C unit. More... | |
| uint8_t | getTimer (void) const |
| Get the timers active setting of the A/C. More... | |
| void | setTimer (const uint8_t timer) |
| Set the timers active setting of the A/C. More... | |
| bool | getWeeklyTimerEnabled (void) const |
| Get the value of the WeeklyTimer Enabled setting. More... | |
| void | setWeeklyTimerEnabled (const bool on) |
| Change the Weekly Timer Enabled setting. 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 internal state into a human readable string. More... | |
Static Public Member Functions | |
| static bool | validChecksum (const uint8_t *data) |
| 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 uint8_t | convertSwingV (const stdAc::swingv_t position) |
| Convert a stdAc::swingv_t enum into it's native setting. More... | |
| static uint8_t | convertSwingH (const stdAc::swingh_t position) |
| Convert a stdAc::swingh_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... | |
| 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 | checksum (void) |
| Calculate and set the checksum values for the internal state. More... | |
Static Private Member Functions | |
| static uint8_t | calculateChecksum (const uint8_t *data) |
| Calculate the checksum for a given state. More... | |
Private Attributes | |
| IRsend | _irsend |
| Instance of the IR send class. More... | |
| Mitsubishi144Protocol | _ |
Class for handling detailed Mitsubishi 144-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 IRMitsubishiAC::begin | ( | void | ) |
Set up hardware to be able to send a message.
|
staticprivate |
Calculate the checksum for a given state.
| [in] | data | The value to calc the checksum of. |
|
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. |
|
static |
Convert a stdAc::swingh_t enum into it's native setting.
| [in] | position | The enum to be converted. |
|
static |
Convert a stdAc::swingv_t enum into it's native setting.
| [in] | position | The enum to be converted. |
| bool IRMitsubishiAC::getAbsenseDetect | ( | void | ) | const |
Get the Absense Detect mode of the A/C.
| uint8_t IRMitsubishiAC::getClock | ( | void | ) | const |
Get the clock time of the A/C unit.
| uint8_t IRMitsubishiAC::getDirectIndirect | ( | void | ) | const |
Get the Direct/Indirect mode of the A/C.
| bool IRMitsubishiAC::getEcocool | ( | void | ) | const |
Get the Ecocool mode of the A/C.
| uint8_t IRMitsubishiAC::getFan | ( | void | ) | const |
Get the current fan speed setting.
| bool IRMitsubishiAC::getISave10C | ( | void | ) | const |
Get the iSave10C (i-SAVE) mode of the A/C.
| bool IRMitsubishiAC::getISee | ( | void | ) | const |
Get the iSee mode of the A/C.
| uint8_t IRMitsubishiAC::getMode | ( | void | ) | const |
Get the operating mode setting of the A/C.
| bool IRMitsubishiAC::getNaturalFlow | ( | void | ) | const |
Get the Natural Flow mode of the A/C.
| bool IRMitsubishiAC::getPower | ( | void | ) | const |
Get the value of the current power setting.
| uint8_t * IRMitsubishiAC::getRaw | ( | void | ) |
Get a PTR to the internal state/code for this protocol.
| uint8_t IRMitsubishiAC::getStartClock | ( | void | ) | const |
Get the desired start time of the A/C unit.
| uint8_t IRMitsubishiAC::getStopClock | ( | void | ) | const |
Get the desired stop time of the A/C unit.
| float IRMitsubishiAC::getTemp | ( | void | ) | const |
Get the current temperature setting.
| uint8_t IRMitsubishiAC::getTimer | ( | void | ) | const |
Get the timers active setting of the A/C.
| uint8_t IRMitsubishiAC::getVane | ( | void | ) | const |
Get the Vane (Vertical Swing) mode of the A/C.
| uint8_t IRMitsubishiAC::getVaneLeft | ( | void | ) | const |
Get the Left Vane (Vertical Swing) mode of the A/C.
| bool IRMitsubishiAC::getWeeklyTimerEnabled | ( | void | ) | const |
Get the value of the WeeklyTimer Enabled setting.
| uint8_t IRMitsubishiAC::getWideVane | ( | void | ) | const |
Get the Wide Vane (Horizontal Swing) mode of the A/C.
| void IRMitsubishiAC::off | ( | void | ) |
Set the requested power state of the A/C to off.
| void IRMitsubishiAC::on | ( | void | ) |
Set the requested power state of the A/C to on.
| void IRMitsubishiAC::send | ( | const uint16_t | repeat = kMitsubishiACMinRepeat | ) |
Send the current internal state as an IR message.
| [in] | repeat | Nr. of times the message will be repeated. |
| void IRMitsubishiAC::setAbsenseDetect | ( | const bool | state | ) |
Set the requested Absense Detect mode.
| [in] | state | requested Absense Detect mode. |
| void IRMitsubishiAC::setClock | ( | const uint8_t | clock | ) |
Set the clock time on the A/C unit.
| [in] | clock | Nr. of 10 minute increments past midnight. |
| void IRMitsubishiAC::setDirectIndirect | ( | const uint8_t | mode | ) |
Set the requested Direct/Indirect mode. Only works if I-See mode is ON.
| [in] | mode | requested Direct/Indirect mode. |
| void IRMitsubishiAC::setEcocool | ( | const bool | state | ) |
Set the requested Ecocool mode.
| [in] | state | requested Ecocool mode. |
| void IRMitsubishiAC::setFan | ( | const uint8_t | speed | ) |
Set the speed of the fan.
| [in] | speed | The desired setting. 0 is auto, 1-5 is speed, 6 is silent. |
| void IRMitsubishiAC::setISave10C | ( | const bool | state | ) |
Set the iSave10C (i-SAVE) mode of the A/C.
| [in] | state | true, the setting is on. false, the setting is off. |
| void IRMitsubishiAC::setISee | ( | const bool | state | ) |
Set the requested iSee mode.
| [in] | state | requested iSee mode. |
| void IRMitsubishiAC::setMode | ( | const uint8_t | mode | ) |
Set the operating mode of the A/C.
| [in] | mode | The desired operating mode. |
| void IRMitsubishiAC::setNaturalFlow | ( | const bool | state | ) |
Set the requested Natural Flow mode.
| [in] | state | requested Natural Flow mode. |
| void IRMitsubishiAC::setPower | ( | const bool | on | ) |
Change the power setting.
| [in] | on | true, the setting is on. false, the setting is off. |
| void IRMitsubishiAC::setRaw | ( | const uint8_t * | data | ) |
Set the internal state from a valid code for this protocol.
| [in] | data | A valid code for this protocol. |
| void IRMitsubishiAC::setStartClock | ( | const uint8_t | clock | ) |
Set the desired start time of the A/C unit.
| [in] | clock | Nr. of 10 minute increments past midnight. |
| void IRMitsubishiAC::setStopClock | ( | const uint8_t | clock | ) |
Set the desired stop time of the A/C unit.
| [in] | clock | Nr. of 10 minute increments past midnight. |
| void IRMitsubishiAC::setTemp | ( | const float | degrees | ) |
Set the temperature.
| [in] | degrees | The temperature in degrees celsius. |
| void IRMitsubishiAC::setTimer | ( | const uint8_t | timer | ) |
Set the timers active setting of the A/C.
| [in] | timer | The timer code indicating which ones are active. |
| void IRMitsubishiAC::setVane | ( | const uint8_t | position | ) |
Set the requested vane (Vertical Swing) operation mode of the a/c unit.
| [in] | position | The position/mode to set the vane to. |
| void IRMitsubishiAC::setVaneLeft | ( | const uint8_t | position | ) |
Set the requested Left Vane (Vertical Swing) operation mode of the a/c unit.
| [in] | position | The position/mode to set the vane to. |
| void IRMitsubishiAC::setWeeklyTimerEnabled | ( | const bool | on | ) |
Change the Weekly Timer Enabled setting.
| [in] | on | true, the setting is on. false, the setting is off. |
| void IRMitsubishiAC::setWideVane | ( | const uint8_t | position | ) |
Set the requested wide-vane (Horizontal Swing) operation mode of the a/c.
| [in] | position | The position/mode to set the wide vane to. |
| void IRMitsubishiAC::stateReset | ( | void | ) |
Reset the state of the remote to a known good state/sequence.
| stdAc::state_t IRMitsubishiAC::toCommon | ( | void | ) | const |
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 IRMitsubishiAC::toString | ( | void | ) | const |
Convert the internal state into a human readable string.
|
static |
Verify the checksum is valid for a given state.
| [in] | data | The array to verify the checksum of. |
|
private |
|
private |
Instance of the IR send class.
1.8.17