Showing content from https://crankyoldgit.github.io/IRremoteESP8266/doxygen/html/classIRAirwellAc.html below:
IRremoteESP8266: IRAirwellAc Class Reference
Class for handling detailed Airwell A/C messages. More...
#include <ir_Airwell.h>
Class for handling detailed Airwell A/C messages.
◆ IRAirwellAc() IRAirwellAc::IRAirwellAc ( const uint16_t pin, const bool inverted = false
, const bool use_modulation = true
) explicit
Class constructor.
-
Parameters
-
[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?
◆ begin() void IRAirwellAc::begin ( )
Set up hardware to be able to send a message.
◆ calibrate() int8_t IRAirwellAc::calibrate ( void ) inline
Run the calibration to calculate uSec timing offsets for this platform.
-
Returns
-
The uSec timing offset needed per modulation of the IR Led.
-
Note
-
This will produce a 65ms IR signal pulse at 38kHz. Only ever needs to be run once per object instantiation, if at all.
◆ convertFan()
Convert a stdAc::fanspeed_t enum into it's native speed.
-
Parameters
-
[in] speed The enum to be converted.
-
Returns
-
The native equivalent of the enum.
◆ convertMode()
Convert a stdAc::opmode_t enum into its native mode.
-
Parameters
-
[in] mode The enum to be converted.
-
Returns
-
The native equivalent of the enum.
◆ getFan() uint8_t IRAirwellAc::getFan ( ) const
Get the current fan speed setting.
-
Returns
-
The current fan speed.
◆ getMode() uint8_t IRAirwellAc::getMode ( ) const
Get the current operation mode setting.
-
Returns
-
The current operation mode.
◆ getPowerToggle() bool IRAirwellAc::getPowerToggle ( ) const
Get the power toggle setting from the internal state.
-
Returns
-
A boolean indicating the setting.
◆ getRaw() uint64_t IRAirwellAc::getRaw ( ) const
Get the raw state of the object, suitable to be sent with the appropriate IRsend object method.
-
Returns
-
A copy of the internal state.
◆ getTemp() uint8_t IRAirwellAc::getTemp ( ) const
Get the current temperature setting.
-
Returns
-
Get current setting for temp. in degrees celsius.
◆ send()
Send the current internal state as an IR message.
-
Parameters
-
[in] repeat Nr. of times the message will be repeated.
◆ setFan() void IRAirwellAc::setFan ( const uint8_t speed )
Set the speed of the fan.
-
Parameters
-
[in] speed The desired setting.
-
Note
-
The speed is locked to Low when in Dry mode.
◆ setMode() void IRAirwellAc::setMode ( const uint8_t mode )
Set the desired operation mode.
-
Parameters
-
[in] mode The desired operation mode.
◆ setPowerToggle() void IRAirwellAc::setPowerToggle ( const bool on )
Turn on/off the Power Airwell setting.
-
Parameters
-
[in] on The desired setting state.
◆ setRaw() void IRAirwellAc::setRaw ( const uint64_t state )
Set the raw state of the object.
-
Parameters
-
[in] state The raw state from the native IR message.
◆ setTemp() void IRAirwellAc::setTemp ( const uint8_t degrees )
Set the temperature.
-
Parameters
-
[in] degrees The temperature in degrees celsius.
◆ stateReset() void IRAirwellAc::stateReset ( )
Reset the internals of the object to a known good state.
◆ toCommon()
Convert the current internal state into its stdAc::state_t equivalent.
-
Parameters
-
[in] prev Ptr to the previous state if required.
-
Returns
-
The stdAc equivalent of the native settings.
◆ toCommonFanSpeed()
Convert a native fan speed into its stdAc equivalent.
-
Parameters
-
[in] speed The native setting to be converted.
-
Returns
-
The stdAc equivalent of the native setting.
◆ toCommonMode()
Convert a native mode into its stdAc equivalent.
-
Parameters
-
[in] mode The native setting to be converted.
-
Returns
-
The stdAc equivalent of the native setting.
◆ toString() String IRAirwellAc::toString ( ) const
Convert the current internal state into a human readable string.
-
Returns
-
A human readable string.
◆ _ ◆ _irsend
Instance of the IR send class.
The documentation for this class was generated from the following files:
RetroSearch is an open source project built by @garambo
| Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4