|
| | IRArgoAC (const uint16_t pin, const bool inverted=false, const bool use_modulation=true) |
| | Class constructor.
|
| |
| void | sendSensorTemp (const uint8_t degrees, const uint16_t repeat=kArgoDefaultRepeat) |
| | Send current room temperature for the iFeel feature as a silent IR message (no acknowledgement from the device) (WREM2)
|
| |
| String | toString (void) const |
| | Convert the current internal state into a human readable string (WREM2).
|
| |
| stdAc::state_t | toCommon (void) const |
| | Convert the current internal state into its stdAc::state_t equivalent.
|
| |
| void | setMode (const uint8_t mode) |
| | Set the desired operation mode.
|
| |
| uint8_t | getMode (void) const |
| | Get the current operation mode.
|
| |
| void | setFan (const uint8_t fan) |
| | Set the speed of the fan.
|
| |
| uint8_t | getFan (void) const |
| | Get the current fan speed setting.
|
| |
| void | setFlap (const uint8_t flap) |
| | Set the flap position. i.e. Swing. (WREM2)
|
| |
| uint8_t | getFlap (void) const |
| | Get the flap position. i.e. Swing. (WREM2)
|
| |
| | IRArgoACBase (const uint16_t pin, const bool inverted=false, const bool use_modulation=true) |
| | Class constructor.
|
| |
| void | send (const uint16_t repeat=kArgoDefaultRepeat) |
| | Send the current internal state as an IR message.
|
| |
| int8_t | calibrate (void) |
| | Run the calibration to calculate uSec timing offsets for this platform.
|
| |
| void | begin (void) |
| | Set up hardware to be able to send a message.
|
| |
| void | on (void) |
| | Set the internal state to have the power on.
|
| |
| void | off (void) |
| | Set the internal state to have the power off.
|
| |
| void | setPower (const bool on) |
| | Set the internal state to have the desired power.
|
| |
| bool | getPower (void) const |
| | Get the power setting from the internal state.
|
| |
| void | setTemp (const uint8_t degrees) |
| | Set the temperature.
|
| |
| uint8_t | getTemp (void) const |
| | Get the current temperature setting.
|
| |
| void | setSensorTemp (const uint8_t degrees) |
| | Set the value for the current room temperature.
|
| |
| uint8_t | getSensorTemp (void) const |
| | Get the currently stored value for the room temperature setting.
|
| |
| void | setFan (const argoFan_t fan) |
| | Set the desired fan mode (WREM3).
|
| |
| void | setFanEx (const argoFan_t fan) |
| |
| argoFan_t | getFanEx (void) const |
| | -Ex for backw. compat w/ IRArgoAC
|
| |
| void | setFlap (const argoFlap_t flap) |
| | Set the desired flap mode.
|
| |
| void | setFlapEx (const argoFlap_t flap) |
| |
| argoFlap_t | getFlapEx (void) const |
| | -Ex for backw. compat w/ IRArgoAC
|
| |
| void | setMode (const argoMode_t mode) |
| | Set the desired operation mode.
|
| |
| void | setModeEx (const argoMode_t mode) |
| |
| argoMode_t | getModeEx (void) const |
| | -Ex for backw. compat w/ IRArgoAC
|
| |
| void | setMax (const bool on) |
| | Control the current Max setting. (i.e. Turbo)
|
| |
| bool | getMax (void) const |
| | Is the Max (i.e. Turbo) setting on?
|
| |
| void | setNight (const bool on) |
| | Turn on/off the Night mode. i.e. Sleep.
|
| |
| bool | getNight (void) const |
| | Get the status of Night mode. i.e. Sleep.
|
| |
| void | setiFeel (const bool on) |
| | Turn on/off the iFeel mode.
|
| |
| bool | getiFeel (void) const |
| | Get the status of iFeel mode.
|
| |
| void | setMessageType (const argoIrMessageType_t msgType) |
| | Set the message type of the next command (setting this resets state)
|
| |
| argoIrMessageType_t | getMessageType (void) const |
| | Get the message type.
|
| |
| uint8_t * | getRaw (void) |
| | Get the raw state of the object, suitable to be sent with the appropriate IRsend object method.
|
| |
| uint16_t | getRawByteLength () const |
| | Get actual raw state byte length for the current state.
|
| |
| void | setRaw (const uint8_t state[], const uint16_t length) |
| | Set the raw state of the object.
|
| |
|
| static argoIrMessageType_t | getMessageType (const uint8_t state[], const uint16_t length) |
| | Get message type from raw WREM-3 data.
|
| |
| static uint16_t | getStateLengthForIrMsgType (argoIrMessageType_t type) |
| | Get byte length of raw WREM-3 message based on IR cmd type.
|
| |
| static bool | validChecksum (const uint8_t state[], const uint16_t length) |
| | Verify the checksum is valid for a given state.
|
| |
| static argoMode_t | convertMode (const stdAc::opmode_t mode) |
| | Convert a stdAc::opmode_t enum into its native mode.
|
| |
| static argoFan_t | convertFan (const stdAc::fanspeed_t speed) |
| | Convert a stdAc::fanspeed_t enum into it's native speed.
|
| |
| static argoFlap_t | convertSwingV (const stdAc::swingv_t position) |
| | Convert a stdAc::swingv_t enum into it's native setting.
|
| |
| static argoIrMessageType_t | convertCommand (const stdAc::ac_command_t command) |
| | Convert a stdAc::ac_command_t enum into its native message type.
|
| |
| void | _stateReset (ArgoProtocol *state, argoIrMessageType_t messageType=argoIrMessageType_t::AC_CONTROL) |
| |
| void | stateReset (argoIrMessageType_t messageType=argoIrMessageType_t::AC_CONTROL) |
| | Reset the internals of the object to a known good state.
|
| |
| void | _checksum (ArgoProtocol *state) |
| |
| void | checksum (void) |
| | Update the checksum for the internal state.
|
| |
| static uint16_t | getRawByteLength (const ArgoProtocol &raw, argoIrMessageType_t messageTypeHint=argoIrMessageType_t::AC_CONTROL) |
| |
| static uint8_t | calcChecksum (const uint8_t state[], const uint16_t length) |
| | Calculate the checksum for a given state (WREM-3).
|
| |
| static uint8_t | getChecksum (const uint8_t state[], const uint16_t length) |
| | Retrieve the checksum value from transmitted state.
|
| |
| static stdAc::opmode_t | toCommonMode (const argoMode_t mode) |
| | Convert a native mode into its stdAc equivalent.
|
| |
| static stdAc::fanspeed_t | toCommonFanSpeed (const argoFan_t speed) |
| | Convert a native fan speed into its stdAc equivalent.
|
| |
| static stdAc::swingv_t | toCommonSwingV (const uint8_t position) |
| | Convert a native flap mode into its stdAc equivalent (WREM3).
|
| |
| static stdAc::ac_command_t | toCommonCommand (const argoIrMessageType_t command) |
| | Convert a native message type into its stdAc equivalent.
|
| |
| ArgoProtocol | _ |
| | The raw protocol data.
|
| |
| uint16_t | _length |
| |
| argoIrMessageType_t | _messageType |
| |
| IRsend | _irsend |
| | instance of the IR send class
|
| |
| void | setPower (const bool on) |
| | Set the internal state to have the desired power.
|
| |
| bool | getPower (void) const |
| | Get the power setting from the internal state.
|
| |
| void | setFan (argoFan_t fan) |
| | Set the desired fan mode (WREM3).
|
| |
| void | setMode (argoMode_t mode) |
| | Set the desired operation mode.
|
| |
| argoIrMessageType_t | getMessageType (const uint8_t state[], const uint16_t length) |
| | Get message type from raw WREM-3 data.
|
| |
| uint16_t | getRawByteLength (const ArgoProtocol &, argoIrMessageType_t messageType) |
| | Get actual raw state byte length for the current state _param 1st param ignored: WREM-2 does not caryy type in payload, allegedly.
|
| |
| uint16_t | getRawByteLength (const ArgoProtocolWREM3 &raw, argoIrMessageType_t) |
| | Get actual raw state byte length for the current state.
|
| |
| void | _stateReset (ArgoProtocol *state, argoIrMessageType_t) |
| | Reset the given state to a known good state.
|
| |
| void | _stateReset (ArgoProtocolWREM3 *state, argoIrMessageType_t messageType) |
| | Reset the given state to a known good state.
|
| |
| void | _checksum (ArgoProtocol *state) |
| | Update the checksum for a given state (WREM2).
|
| |
| void | _checksum (ArgoProtocolWREM3 *state) |
| | Update the checksum for a given state (WREM3).
|
| |
| uint8_t | calcChecksum (const uint8_t state[], const uint16_t length) |
| | Calculate the checksum for a given state (WREM-3).
|
| |
| stdAc::swingv_t | toCommonSwingV (const uint8_t position) |
| | Convert a native flap mode into its stdAc equivalent (WREM3).
|
| |
Supports Argo A/C SAC-WREM2 IR remote protocol.