Showing content from https://crankyoldgit.github.io/IRremoteESP8266/doxygen/html/classIRAirtonAc.html below:
IRremoteESP8266: IRAirtonAc Class Reference
Class for handling detailed Airton 56-bit A/C messages. More...
#include <ir_Airton.h>
void checksum (void) Update the checksum value for the internal state. More...
Class for handling detailed Airton 56-bit A/C messages.
◆ IRAirtonAc() IRAirtonAc::IRAirtonAc ( 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 IRAirtonAc::begin ( void )
Set up hardware to be able to send a message.
◆ calcChecksum() uint8_t IRAirtonAc::calcChecksum ( const uint64_t state ) static
Calculate the checksum for the supplied state.
-
Parameters
-
[in] state The source state to generate the checksum from.
-
Returns
-
The checksum value.
◆ calibrate() int8_t IRAirtonAc::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.
◆ checksum() void IRAirtonAc::checksum ( void ) private
Update the checksum value for the internal state.
◆ 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.
◆ convertSwingV() static uint8_t IRAirtonAc::convertSwingV ( const stdAc::swingv_t position ) static ◆ getEcono() bool IRAirtonAc::getEcono ( void ) const
Get the Economy setting of the A/C.
-
Returns
-
true, the setting is on. false, the setting is off.
◆ getFan() uint8_t IRAirtonAc::getFan ( void ) const
Get the current fan speed setting.
-
Returns
-
The current fan speed.
◆ getHealth() bool IRAirtonAc::getHealth ( void ) const
Get the Health/Filter setting of the A/C.
-
Returns
-
true, the setting is on. false, the setting is off.
◆ getLight() bool IRAirtonAc::getLight ( void ) const
Get the Light/LED/Display setting of the A/C.
-
Returns
-
true, the setting is on. false, the setting is off.
◆ getMode() uint8_t IRAirtonAc::getMode ( void ) const
Get the current operation mode setting.
-
Returns
-
The current operation mode.
◆ getPower() bool IRAirtonAc::getPower ( void ) const
Get the power setting from the internal state.
-
Returns
-
A boolean indicating the power setting.
◆ getRaw() uint64_t IRAirtonAc::getRaw ( void )
Get the raw state of the object, suitable to be sent with the appropriate IRsend object method.
-
Returns
-
A copy to the internal state.
◆ getSleep() bool IRAirtonAc::getSleep ( void ) const
Get the Sleep setting of the A/C.
-
Returns
-
true, the setting is on. false, the setting is off.
◆ getSwingV() bool IRAirtonAc::getSwingV ( void ) const
Get the Vertical Swing setting of the A/C.
-
Returns
-
true, the setting is on. false, the setting is off.
◆ getTemp() uint8_t IRAirtonAc::getTemp ( void ) const
Get the current temperature setting.
-
Returns
-
Get current setting for temp. in degrees celsius.
◆ getTurbo() bool IRAirtonAc::getTurbo ( void ) const
Get the Turbo setting of the A/C.
-
Returns
-
true, the setting is on. false, the setting is off.
◆ off() void IRAirtonAc::off ( void )
Set the internal state to have the power off.
◆ on() void IRAirtonAc::on ( void )
Set the internal state to have the power on.
◆ send()
Send the current internal state as an IR message.
-
Parameters
-
[in] repeat Nr. of times the message will be repeated.
◆ setEcono() void IRAirtonAc::setEcono ( const bool on )
Set the Economy setting of the A/C.
-
Parameters
-
[in] on true, the setting is on. false, the setting is off.
-
Note
-
Only available in Cool mode.
◆ setFan() void IRAirtonAc::setFan ( const uint8_t speed )
Set the speed of the fan.
-
Parameters
-
[in] speed The desired setting.
◆ setHealth() void IRAirtonAc::setHealth ( const bool on )
Set the Health/Filter setting of the A/C.
-
Parameters
-
[in] on true, the setting is on. false, the setting is off.
◆ setLight() void IRAirtonAc::setLight ( const bool on )
Set the Light/LED/Display setting of the A/C.
-
Parameters
-
[in] on true, the setting is on. false, the setting is off.
◆ setMode() void IRAirtonAc::setMode ( const uint8_t mode )
Set the desired operation mode.
-
Parameters
-
[in] mode The desired operation mode.
◆ setPower() void IRAirtonAc::setPower ( const bool on )
Set the internal state to have the desired power.
-
Parameters
-
[in] on The desired power state.
◆ setRaw() void IRAirtonAc::setRaw ( const uint64_t state )
Set the raw state of the object.
-
Parameters
-
[in] state The raw state from the native IR message.
◆ setSleep() void IRAirtonAc::setSleep ( const bool on )
Set the Sleep setting of the A/C.
-
Parameters
-
[in] on true, the setting is on. false, the setting is off.
-
Note
-
Sleep not available in fan or auto mode.
◆ setSwingV() void IRAirtonAc::setSwingV ( const bool on )
Set the Vertical Swing setting of the A/C.
-
Parameters
-
[in] on true, the setting is on. false, the setting is off.
◆ setTemp() void IRAirtonAc::setTemp ( const uint8_t degrees )
Set the temperature.
-
Parameters
-
[in] degrees The temperature in degrees celsius.
◆ setTurbo() void IRAirtonAc::setTurbo ( const bool on )
Set the Turbo setting of the A/C.
-
Parameters
-
[in] on true, the setting is on. false, the setting is off.
◆ stateReset() void IRAirtonAc::stateReset ( void )
Reset the internals of the object to a known good state.
◆ toCommon()
Convert the current internal state into its stdAc::state_t equivalent.
-
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 IRAirtonAc::toString ( void ) const
Convert the current internal state into a human readable string.
-
Returns
-
A human readable string.
◆ validChecksum() bool IRAirtonAc::validChecksum ( const uint64_t state ) static
Verify the checksum is valid for a given state.
-
Parameters
-
[in] state The value to verify the checksum of.
-
Returns
-
A boolean indicating if it's checksum is valid.
◆ _ ◆ _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