Showing content from https://crankyoldgit.github.io/IRremoteESP8266/doxygen/html/classIRTechnibelAc.html below:
IRremoteESP8266: IRTechnibelAc Class Reference
Class for handling detailed Technibel A/C messages. More...
#include <ir_Technibel.h>
Class for handling detailed Technibel A/C messages.
◆ IRTechnibelAc() IRTechnibelAc::IRTechnibelAc ( 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 IRTechnibelAc::begin ( void )
Set up hardware to be able to send a message.
◆ calcChecksum() uint8_t IRTechnibelAc::calcChecksum ( const uint64_t state ) static
Compute the checksum of the supplied state.
-
Parameters
-
[in] state A valid code for this protocol.
-
Returns
-
The calculated checksum of the supplied state.
◆ calibrate() int8_t IRTechnibelAc::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 IRTechnibelAc::checksum ( void ) private
Set the checksum of 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.
◆ convertSwing()
Convert a stdAc::swingv_t enum into it's native swing.
-
Parameters
-
[in] swing The enum to be converted.
-
Returns
-
true, the swing is on. false, the swing is off.
◆ getFan() uint8_t IRTechnibelAc::getFan ( void ) const
Get the current fan speed setting.
-
Returns
-
The current fan speed/mode.
◆ getMode() uint8_t IRTechnibelAc::getMode ( void ) const
Get the operating mode setting of the A/C.
-
Returns
-
The current operating mode setting.
◆ getPower() bool IRTechnibelAc::getPower ( void ) const
Get the value of the current power setting.
-
Returns
-
true, the setting is on. false, the setting is off.
◆ getRaw() uint64_t IRTechnibelAc::getRaw ( void )
Get a copy of the internal state/code for this protocol.
-
Returns
-
A code for this protocol based on the current internal state.
◆ getSleep() bool IRTechnibelAc::getSleep ( void ) const
Get the Sleep setting of the A/C.
-
Returns
-
true, the setting is on. false, the setting is off.
◆ getSwing() bool IRTechnibelAc::getSwing ( 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 IRTechnibelAc::getTemp ( void ) const
Get the current temperature setting.
-
Returns
-
The current setting for temp. in degrees.
◆ getTempUnit() bool IRTechnibelAc::getTempUnit ( void ) const
Get the temperature unit setting.
-
Returns
-
true, the unit is °F. false, the unit is °C.
◆ getTimer() uint16_t IRTechnibelAc::getTimer ( void ) const
Get the timer time for when the A/C unit will switch power state.
-
Returns
-
The number of minutes left on the timer.
0
means off.
◆ getTimerEnabled() bool IRTechnibelAc::getTimerEnabled ( void ) const
Is the timer function enabled?
-
Returns
-
true, the setting is on. false, the setting is off.
◆ off() void IRTechnibelAc::off ( void )
Set the requested power state of the A/C to off.
◆ on() void IRTechnibelAc::on ( void )
Set the requested power state of the A/C to on.
◆ send()
Send the current internal state as an IR message.
-
Parameters
-
[in] repeat Nr. of times the message will be repeated.
◆ setFan() void IRTechnibelAc::setFan ( const uint8_t speed )
Set the speed of the fan.
-
Parameters
-
[in] speed The desired setting.
◆ setMode() void IRTechnibelAc::setMode ( const uint8_t mode )
Set the operating mode of the A/C.
-
Parameters
-
[in] mode The desired operating mode.
◆ setPower() void IRTechnibelAc::setPower ( const bool on )
Change the power setting.
-
Parameters
-
[in] on true, the setting is on. false, the setting is off.
◆ setRaw() void IRTechnibelAc::setRaw ( const uint64_t state )
Set the internal state from a valid code for this protocol.
-
Parameters
-
[in] state A valid code for this protocol.
◆ setSleep() void IRTechnibelAc::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.
◆ setSwing() void IRTechnibelAc::setSwing ( 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 IRTechnibelAc::setTemp ( const uint8_t degrees, const bool fahrenheit = false
)
Set the temperature.
-
Parameters
-
[in] degrees The temperature in degrees. [in] fahrenheit The temperature unit: true=°F, false(default)=°C.
◆ setTempUnit() void IRTechnibelAc::setTempUnit ( const bool fahrenheit )
Set the temperature unit setting.
-
Parameters
-
[in] fahrenheit true, the unit is °F. false, the unit is °C.
◆ setTimer() void IRTechnibelAc::setTimer ( const uint16_t nr_of_mins )
Set the timer for when the A/C unit will switch off.
-
Parameters
-
[in] nr_of_mins Number of minutes before power off.
0
will clear the timer. Max is 24 hrs (1440 mins).
-
Note
-
Time is stored internally in hours.
◆ setTimerEnabled() void IRTechnibelAc::setTimerEnabled ( const bool on )
Set the enable timer setting.
-
Parameters
-
[in] on true, the setting is on. false, the setting is off.
◆ stateReset() void IRTechnibelAc::stateReset ( void )
Reset the internal state of the emulation.
-
Note
-
Mode:Cool, Power:Off, fan:Low, temp:20, swing:Off, sleep:Off
◆ 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.
◆ toCommonSwing()
Convert a native swing into its stdAc equivalent.
-
Parameters
-
[in] swing true, the swing is on. false, the swing is off.
-
Returns
-
The stdAc equivalent of the native setting.
◆ toString() String IRTechnibelAc::toString ( void ) const
Convert the current internal state into a human readable string.
-
Returns
-
A human readable string.
◆ validChecksum() bool IRTechnibelAc::validChecksum ( const uint64_t state ) static
Confirm the checksum of the supplied state is valid.
-
Parameters
-
[in] state A valid code for this protocol.
-
Returns
-
true
if the checksum is correct, otherwise false
.
◆ _ ◆ _irsend [1/2] ◆ _irsend [2/2] IRsendTest IRTechnibelAc::_irsend private ◆ _saved_temp uint8_t IRTechnibelAc::_saved_temp private ◆ _saved_temp_units uint8_t IRTechnibelAc::_saved_temp_units private
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