Showing content from https://crankyoldgit.github.io/IRremoteESP8266/doxygen/html/classIRMitsubishiHeavy88Ac.html below:
IRremoteESP8266: IRMitsubishiHeavy88Ac Class Reference
Class for handling detailed Mitsubishi Heavy 88-bit A/C messages. More...
#include <ir_MitsubishiHeavy.h>
void checksum (void) Calculate the checksum for the current internal state of the remote. Note: Technically it has no checksum, but does have inverted byte pairs. More...
Class for handling detailed Mitsubishi Heavy 88-bit A/C messages.
◆ IRMitsubishiHeavy88Ac() IRMitsubishiHeavy88Ac::IRMitsubishiHeavy88Ac ( 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 IRMitsubishiHeavy88Ac::begin ( void )
Set up hardware to be able to send a message.
◆ calibrate() int8_t IRMitsubishiHeavy88Ac::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 IRMitsubishiHeavy88Ac::checksum ( void ) private
Calculate the checksum for the current internal state of the remote. Note: Technically it has no checksum, but does have inverted byte pairs.
◆ checkZjsSig() bool IRMitsubishiHeavy88Ac::checkZjsSig ( const uint8_t * state ) static
Verify the given state has a ZJ-S signature.
-
Parameters
-
[in] state A ptr to a state to be checked.
-
Returns
-
true, the check passed. Otherwise, false.
◆ 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.
◆ convertSwingH() uint8_t IRMitsubishiHeavy88Ac::convertSwingH ( const stdAc::swingh_t position ) static
Convert a stdAc::swingh_t enum into it's native setting.
-
Parameters
-
[in] position The enum to be converted.
-
Returns
-
The native equivalent of the enum.
◆ convertSwingV() uint8_t IRMitsubishiHeavy88Ac::convertSwingV ( const stdAc::swingv_t position ) static
Convert a stdAc::swingv_t enum into it's native setting.
-
Parameters
-
[in] position The enum to be converted.
-
Returns
-
The native equivalent of the enum.
◆ get3D() bool IRMitsubishiHeavy88Ac::get3D ( void ) const
Get the 3D mode of the A/C.
-
Returns
-
true, the setting is on. false, the setting is off.
◆ getClean() bool IRMitsubishiHeavy88Ac::getClean ( void ) const
Get the Clean mode of the A/C.
-
Returns
-
true, the setting is on. false, the setting is off.
◆ getEcono() bool IRMitsubishiHeavy88Ac::getEcono ( void ) const
Get the Economical mode of the A/C.
-
Returns
-
true, the setting is on. false, the setting is off.
◆ getFan() uint8_t IRMitsubishiHeavy88Ac::getFan ( void ) const
Get the current fan speed setting.
-
Returns
-
The current fan speed/mode.
◆ getMode() uint8_t IRMitsubishiHeavy88Ac::getMode ( void ) const
Get the operating mode setting of the A/C.
-
Returns
-
The current operating mode setting.
◆ getPower() bool IRMitsubishiHeavy88Ac::getPower ( void ) const
Get the value of the current power setting.
-
Returns
-
true, the setting is on. false, the setting is off.
◆ getRaw() uint8_t * IRMitsubishiHeavy88Ac::getRaw ( void )
Get a PTR to the internal state/code for this protocol.
-
Returns
-
PTR to a code for this protocol based on the current internal state.
◆ getSwingHorizontal() uint8_t IRMitsubishiHeavy88Ac::getSwingHorizontal ( void ) const
Get the Horizontal Swing mode of the A/C.
-
Returns
-
The native position/mode setting.
◆ getSwingVertical() uint8_t IRMitsubishiHeavy88Ac::getSwingVertical ( void ) const
Get the Vertical Swing mode of the A/C.
-
Returns
-
The native position/mode setting.
◆ getTemp() uint8_t IRMitsubishiHeavy88Ac::getTemp ( void ) const
Get the current temperature setting.
-
Returns
-
The current setting for temp. in degrees celsius.
◆ getTurbo() bool IRMitsubishiHeavy88Ac::getTurbo ( void ) const
Get the Turbo mode of the A/C.
-
Returns
-
true, the setting is on. false, the setting is off.
◆ off() void IRMitsubishiHeavy88Ac::off ( void )
Set the requested power state of the A/C to off.
◆ on() void IRMitsubishiHeavy88Ac::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.
◆ set3D() void IRMitsubishiHeavy88Ac::set3D ( const bool on )
Set the 3D mode of the A/C.
-
Parameters
-
[in] on true, the setting is on. false, the setting is off.
◆ setClean() void IRMitsubishiHeavy88Ac::setClean ( const bool on )
Set the Clean mode of the A/C.
-
Parameters
-
[in] on true, the setting is on. false, the setting is off.
◆ setEcono() void IRMitsubishiHeavy88Ac::setEcono ( const bool on )
Set the Economical mode of the A/C.
-
Parameters
-
[in] on true, the setting is on. false, the setting is off.
◆ setFan() void IRMitsubishiHeavy88Ac::setFan ( const uint8_t speed )
Set the speed of the fan.
-
Parameters
-
[in] speed The desired setting.
◆ setMode() void IRMitsubishiHeavy88Ac::setMode ( const uint8_t mode )
Set the operating mode of the A/C.
-
Parameters
-
[in] mode The desired operating mode.
◆ setPower() void IRMitsubishiHeavy88Ac::setPower ( const bool on )
Change the power setting.
-
Parameters
-
[in] on true, the setting is on. false, the setting is off.
◆ setRaw() void IRMitsubishiHeavy88Ac::setRaw ( const uint8_t * data )
Set the internal state from a valid code for this protocol.
-
Parameters
-
[in] data A valid code for this protocol.
◆ setSwingHorizontal() void IRMitsubishiHeavy88Ac::setSwingHorizontal ( const uint8_t pos )
Set the Horizontal Swing mode of the A/C.
-
Parameters
-
[in] pos The position/mode to set the swing to.
◆ setSwingVertical() void IRMitsubishiHeavy88Ac::setSwingVertical ( const uint8_t pos )
Set the Vertical Swing mode of the A/C.
-
Parameters
-
[in] pos The position/mode to set the swing to.
◆ setTemp() void IRMitsubishiHeavy88Ac::setTemp ( const uint8_t temp )
Set the temperature.
-
Parameters
-
[in] temp The temperature in degrees celsius.
◆ setTurbo() void IRMitsubishiHeavy88Ac::setTurbo ( const bool on )
Set the Turbo mode of the A/C.
-
Parameters
-
[in] on true, the setting is on. false, the setting is off.
◆ stateReset() void IRMitsubishiHeavy88Ac::stateReset ( void )
Reset the state of the remote to a known good state/sequence.
◆ 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.
◆ toCommonSwingH() stdAc::swingh_t IRMitsubishiHeavy88Ac::toCommonSwingH ( const uint8_t pos ) static
Convert a native horizontal swing postion to it's common equivalent.
-
Parameters
-
[in] pos A native position to convert.
-
Returns
-
The common horizontal swing position.
◆ toCommonSwingV() stdAc::swingv_t IRMitsubishiHeavy88Ac::toCommonSwingV ( const uint8_t pos ) static
Convert a native vertical swing postion to it's common equivalent.
-
Parameters
-
[in] pos A native position to convert.
-
Returns
-
The common vertical swing position.
◆ toString() String IRMitsubishiHeavy88Ac::toString ( void ) const
Convert the internal state into a human readable string.
-
Returns
-
A string containing the settings in human-readable form.
◆ validChecksum()
Verify the checksum is valid for a given state.
-
Parameters
-
[in] state The array to verify the checksum of. [in] length The length/size of the state array.
-
Returns
-
true, if the state has a valid checksum. Otherwise, false. Note: Technically it has no checksum, but does have inverted byte pairs.
◆ _ ◆ _irsend IRsend IRMitsubishiHeavy88Ac::_irsend private
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