Showing content from https://crankyoldgit.github.io/IRremoteESP8266/doxygen/html/classIRDaikin128.html below:
IRremoteESP8266: IRDaikin128 Class Reference
Class for handling detailed Daikin 128-bit A/C messages. More...
#include <ir_Daikin.h>
void stateReset (void) Reset the internal state to a fixed known good state. More...
void checksum (void) Calculate and set the checksum values for the internal state. More...
Class for handling detailed Daikin 128-bit A/C messages.
-
Note
-
Code by crankyoldgit. Analysis by Daniel Vena
◆ IRDaikin128() IRDaikin128::IRDaikin128 ( 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 IRDaikin128::begin ( void )
Set up hardware to be able to send a message.
◆ calcFirstChecksum() uint8_t IRDaikin128::calcFirstChecksum ( const uint8_t state[] ) staticprivate ◆ calcSecondChecksum() uint8_t IRDaikin128::calcSecondChecksum ( const uint8_t state[] ) staticprivate ◆ calibrate() int8_t IRDaikin128::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 IRDaikin128::checksum ( void ) private
Calculate and set the checksum values 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.
◆ getClock() uint16_t IRDaikin128::getClock ( void ) const
Get the clock time to be sent to the A/C unit.
-
Returns
-
The number of minutes past midnight.
◆ getEcono() bool IRDaikin128::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 IRDaikin128::getFan ( void ) const
Get the current fan speed setting.
-
Returns
-
The current fan speed.
◆ getLightToggle() uint8_t IRDaikin128::getLightToggle ( void ) const
Get the Light toggle setting of the A/C.
-
Returns
-
The current operating mode setting.
◆ getMode() uint8_t IRDaikin128::getMode ( void ) const
Get the operating mode setting of the A/C.
-
Returns
-
The current operating mode setting.
◆ getOffTimer() uint16_t IRDaikin128::getOffTimer ( void ) const
Get the Off Timer time to be sent to the A/C unit.
-
Returns
-
The number of minutes past midnight.
◆ getOffTimerEnabled() bool IRDaikin128::getOffTimerEnabled ( void ) const
Get the enable status of the Off Timer.
-
Returns
-
true, the setting is on. false, the setting is off.
◆ getOnTimer() uint16_t IRDaikin128::getOnTimer ( void ) const
Get the On Timer time to be sent to the A/C unit.
-
Returns
-
The number of minutes past midnight.
◆ getOnTimerEnabled() bool IRDaikin128::getOnTimerEnabled ( void ) const
Get the enable status of the On Timer.
-
Returns
-
true, the setting is on. false, the setting is off.
◆ getPowerful() bool IRDaikin128::getPowerful ( void ) const
Get the Powerful (Turbo) mode of the A/C.
-
Returns
-
true, the setting is on. false, the setting is off.
◆ getPowerToggle() bool IRDaikin128::getPowerToggle ( void ) const
Get the Power toggle setting of the A/C.
-
Returns
-
The current operating mode setting.
◆ getQuiet() bool IRDaikin128::getQuiet ( void ) const
Get the Quiet mode status of the A/C.
-
Returns
-
true, the setting is on. false, the setting is off.
◆ getRaw() uint8_t * IRDaikin128::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.
◆ getSleep() bool IRDaikin128::getSleep ( void ) const
Get the Sleep mode of the A/C.
-
Returns
-
true, the setting is on. false, the setting is off.
◆ getSwingVertical() bool IRDaikin128::getSwingVertical ( void ) const
Get the Vertical Swing mode of the A/C.
-
Returns
-
true, the setting is on. false, the setting is off.
◆ getTemp() uint8_t IRDaikin128::getTemp ( void ) const
Get the current temperature setting.
-
Returns
-
The 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.
◆ setClock() void IRDaikin128::setClock ( const uint16_t mins_since_midnight )
Set the clock on the A/C unit.
-
Parameters
-
[in] mins_since_midnight Nr. of minutes past midnight.
◆ setEcono() void IRDaikin128::setEcono ( const bool on )
Set the Economy mode of the A/C.
-
Parameters
-
[in] on true, the setting is on. false, the setting is off.
◆ setFan() void IRDaikin128::setFan ( const uint8_t speed )
Set the speed of the fan.
-
Parameters
-
[in] speed The desired setting.
◆ setLightToggle() void IRDaikin128::setLightToggle ( const uint8_t unit )
Set the Light toggle setting of the A/C.
-
Parameters
-
[in] unit Device to show the LED (Light) Display info about.
-
Note
-
0 is off.
◆ setMode() void IRDaikin128::setMode ( const uint8_t mode )
Set the operating mode of the A/C.
-
Parameters
-
[in] mode The desired operating mode.
◆ setOffTimer() void IRDaikin128::setOffTimer ( const uint16_t mins_since_midnight )
Set the Off Timer time for the A/C unit.
-
Parameters
-
[in] mins_since_midnight Nr. of minutes past midnight.
◆ setOffTimerEnabled() void IRDaikin128::setOffTimerEnabled ( const bool on )
Set the enable status of the Off Timer.
-
Parameters
-
[in] on true, the setting is on. false, the setting is off.
◆ setOnTimer() void IRDaikin128::setOnTimer ( const uint16_t mins_since_midnight )
Set the On Timer time for the A/C unit.
-
Parameters
-
[in] mins_since_midnight Nr. of minutes past midnight.
◆ setOnTimerEnabled() void IRDaikin128::setOnTimerEnabled ( const bool on )
Set the enable status of the On Timer.
-
Parameters
-
[in] on true, the setting is on. false, the setting is off.
◆ setPowerful() void IRDaikin128::setPowerful ( const bool on )
Set the Powerful (Turbo) mode of the A/C.
-
Parameters
-
[in] on true, the setting is on. false, the setting is off.
◆ setPowerToggle() void IRDaikin128::setPowerToggle ( const bool toggle )
Set the Power toggle setting of the A/C.
-
Parameters
-
[in] toggle true, the setting is on. false, the setting is off.
◆ setQuiet() void IRDaikin128::setQuiet ( const bool on )
Set the Quiet mode of the A/C.
-
Parameters
-
[in] on true, the setting is on. false, the setting is off.
◆ setRaw() void IRDaikin128::setRaw ( const uint8_t new_code[] )
Set the internal state from a valid code for this protocol.
-
Parameters
-
[in] new_code A valid code for this protocol.
◆ setSleep() void IRDaikin128::setSleep ( const bool on )
Set the Sleep mode of the A/C.
-
Parameters
-
[in] on true, the setting is on. false, the setting is off.
◆ setSwingVertical() void IRDaikin128::setSwingVertical ( const bool on )
Set the Vertical Swing mode of the A/C.
-
Parameters
-
[in] on true, the setting is on. false, the setting is off.
◆ setTemp() void IRDaikin128::setTemp ( const uint8_t temp )
Set the temperature.
-
Parameters
-
[in] temp The temperature in degrees celsius.
◆ stateReset() void IRDaikin128::stateReset ( void ) private
Reset the internal state to a fixed known good state.
◆ toCommon()
Convert the current internal state into its stdAc::state_t equivalent.
-
Parameters
-
[in] prev Ptr to a previous state.
-
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 IRDaikin128::toString ( void ) const
Convert the current internal state into a human readable string.
-
Returns
-
A human readable string.
◆ validChecksum() bool IRDaikin128::validChecksum ( uint8_t state[] ) static
Verify the checksum is valid for a given state.
-
Parameters
-
[in] state The array to verify the checksum of.
-
Returns
-
true, if the state has a valid checksum. Otherwise, false.
◆ _ ◆ _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