Tasmota/lib/IRremoteESP8266-2.7.8/docs/doxygen/html/classIRLgAc.html

1109 lines
56 KiB
HTML
Raw Normal View History

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>IRremoteESP8266: IRLgAc Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">IRremoteESP8266
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pri-methods">Private Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="classIRLgAc-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">IRLgAc Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>Class for handling detailed LG A/C messages.
<a href="classIRLgAc.html#details">More...</a></p>
<p><code>#include &lt;<a class="el" href="ir__LG_8h_source.html">ir_LG.h</a>&gt;</code></p>
<div class="dynheader">
Collaboration diagram for IRLgAc:</div>
<div class="dyncontent">
<div class="center"><img src="classIRLgAc__coll__graph.png" border="0" usemap="#IRLgAc_coll__map" alt="Collaboration graph"/></div>
<map name="IRLgAc_coll__map" id="IRLgAc_coll__map">
<area shape="rect" title="Class for handling detailed LG A/C messages." alt="" coords="5,95,72,121"/>
<area shape="rect" href="classIRsend.html" title="Class for sending all basic IR protocols." alt="" coords="5,5,72,32"/>
</map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a290636496526a9ed2057532649709375"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classIRLgAc.html#a290636496526a9ed2057532649709375">IRLgAc</a> (const uint16_t pin, const bool inverted=false, const bool use_modulation=true)</td></tr>
<tr class="memdesc:a290636496526a9ed2057532649709375"><td class="mdescLeft">&#160;</td><td class="mdescRight">Class constructor. <a href="classIRLgAc.html#a290636496526a9ed2057532649709375">More...</a><br /></td></tr>
<tr class="separator:a290636496526a9ed2057532649709375"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5959000c9f0b2cf64742d6a2f1c4c9b9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classIRLgAc.html#a5959000c9f0b2cf64742d6a2f1c4c9b9">stateReset</a> (void)</td></tr>
<tr class="memdesc:a5959000c9f0b2cf64742d6a2f1c4c9b9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reset the internals of the object to a known good state. <a href="classIRLgAc.html#a5959000c9f0b2cf64742d6a2f1c4c9b9">More...</a><br /></td></tr>
<tr class="separator:a5959000c9f0b2cf64742d6a2f1c4c9b9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5984041eb12603ac1a277c28b355322a"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classIRLgAc.html#a5984041eb12603ac1a277c28b355322a">isValidLgAc</a> (void)</td></tr>
<tr class="memdesc:a5984041eb12603ac1a277c28b355322a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Check if the internal state looks like a valud LG A/C message. <a href="classIRLgAc.html#a5984041eb12603ac1a277c28b355322a">More...</a><br /></td></tr>
<tr class="separator:a5984041eb12603ac1a277c28b355322a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aea85c840161b48f2e8d31e7e6e7da532"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classIRLgAc.html#aea85c840161b48f2e8d31e7e6e7da532">send</a> (const uint16_t repeat=<a class="el" href="IRremoteESP8266_8h.html#a2d6832b3d214e0adad781c205993e461">kLgDefaultRepeat</a>)</td></tr>
<tr class="memdesc:aea85c840161b48f2e8d31e7e6e7da532"><td class="mdescLeft">&#160;</td><td class="mdescRight">Send the current internal state as an IR message. <a href="classIRLgAc.html#aea85c840161b48f2e8d31e7e6e7da532">More...</a><br /></td></tr>
<tr class="separator:aea85c840161b48f2e8d31e7e6e7da532"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4fd11e935c781319b29f606f2f4b2570"><td class="memItemLeft" align="right" valign="top">int8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classIRLgAc.html#a4fd11e935c781319b29f606f2f4b2570">calibrate</a> (void)</td></tr>
<tr class="memdesc:a4fd11e935c781319b29f606f2f4b2570"><td class="mdescLeft">&#160;</td><td class="mdescRight">Run the calibration to calculate uSec timing offsets for this platform. <a href="classIRLgAc.html#a4fd11e935c781319b29f606f2f4b2570">More...</a><br /></td></tr>
<tr class="separator:a4fd11e935c781319b29f606f2f4b2570"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac08ada1c67ace5ee2ebe4d325aa8c25d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classIRLgAc.html#ac08ada1c67ace5ee2ebe4d325aa8c25d">begin</a> (void)</td></tr>
<tr class="memdesc:ac08ada1c67ace5ee2ebe4d325aa8c25d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set up hardware to be able to send a message. <a href="classIRLgAc.html#ac08ada1c67ace5ee2ebe4d325aa8c25d">More...</a><br /></td></tr>
<tr class="separator:ac08ada1c67ace5ee2ebe4d325aa8c25d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a171358340c1ba8f90fef0c5454f2aa41"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classIRLgAc.html#a171358340c1ba8f90fef0c5454f2aa41">on</a> (void)</td></tr>
<tr class="memdesc:a171358340c1ba8f90fef0c5454f2aa41"><td class="mdescLeft">&#160;</td><td class="mdescRight">Change the power setting to On. <a href="classIRLgAc.html#a171358340c1ba8f90fef0c5454f2aa41">More...</a><br /></td></tr>
<tr class="separator:a171358340c1ba8f90fef0c5454f2aa41"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6d3d50b34575fecb93ed8bd5897c3f7c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classIRLgAc.html#a6d3d50b34575fecb93ed8bd5897c3f7c">off</a> (void)</td></tr>
<tr class="memdesc:a6d3d50b34575fecb93ed8bd5897c3f7c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Change the power setting to Off. <a href="classIRLgAc.html#a6d3d50b34575fecb93ed8bd5897c3f7c">More...</a><br /></td></tr>
<tr class="separator:a6d3d50b34575fecb93ed8bd5897c3f7c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a175e6482fd1565d43906c527f911b59e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classIRLgAc.html#a175e6482fd1565d43906c527f911b59e">setPower</a> (const bool <a class="el" href="classIRLgAc.html#a171358340c1ba8f90fef0c5454f2aa41">on</a>)</td></tr>
<tr class="memdesc:a175e6482fd1565d43906c527f911b59e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Change the power setting. <a href="classIRLgAc.html#a175e6482fd1565d43906c527f911b59e">More...</a><br /></td></tr>
<tr class="separator:a175e6482fd1565d43906c527f911b59e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac09b8af7cc2d46881d3a710068acb5bd"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classIRLgAc.html#ac09b8af7cc2d46881d3a710068acb5bd">getPower</a> (void)</td></tr>
<tr class="memdesc:ac09b8af7cc2d46881d3a710068acb5bd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the value of the current power setting. <a href="classIRLgAc.html#ac09b8af7cc2d46881d3a710068acb5bd">More...</a><br /></td></tr>
<tr class="separator:ac09b8af7cc2d46881d3a710068acb5bd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad9924a8bc9737ec6007d76ec47b34142"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classIRLgAc.html#ad9924a8bc9737ec6007d76ec47b34142">setTemp</a> (const uint8_t degrees)</td></tr>
<tr class="memdesc:ad9924a8bc9737ec6007d76ec47b34142"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the temperature. <a href="classIRLgAc.html#ad9924a8bc9737ec6007d76ec47b34142">More...</a><br /></td></tr>
<tr class="separator:ad9924a8bc9737ec6007d76ec47b34142"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a029399c5926bd4f1ff0b26175bc4af79"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classIRLgAc.html#a029399c5926bd4f1ff0b26175bc4af79">getTemp</a> (void)</td></tr>
<tr class="memdesc:a029399c5926bd4f1ff0b26175bc4af79"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the current temperature setting. <a href="classIRLgAc.html#a029399c5926bd4f1ff0b26175bc4af79">More...</a><br /></td></tr>
<tr class="separator:a029399c5926bd4f1ff0b26175bc4af79"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0f1901a21ffb93641d3481417d74bb4e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classIRLgAc.html#a0f1901a21ffb93641d3481417d74bb4e">setFan</a> (const uint8_t speed)</td></tr>
<tr class="memdesc:a0f1901a21ffb93641d3481417d74bb4e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the speed of the fan. <a href="classIRLgAc.html#a0f1901a21ffb93641d3481417d74bb4e">More...</a><br /></td></tr>
<tr class="separator:a0f1901a21ffb93641d3481417d74bb4e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a10d666ca13c99696a53dca7f5773d7de"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classIRLgAc.html#a10d666ca13c99696a53dca7f5773d7de">getFan</a> (void)</td></tr>
<tr class="memdesc:a10d666ca13c99696a53dca7f5773d7de"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the current fan speed setting. <a href="classIRLgAc.html#a10d666ca13c99696a53dca7f5773d7de">More...</a><br /></td></tr>
<tr class="separator:a10d666ca13c99696a53dca7f5773d7de"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5e1b21d9121c6bf6507f615f470b5890"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classIRLgAc.html#a5e1b21d9121c6bf6507f615f470b5890">setMode</a> (const uint8_t mode)</td></tr>
<tr class="memdesc:a5e1b21d9121c6bf6507f615f470b5890"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the operating mode of the A/C. <a href="classIRLgAc.html#a5e1b21d9121c6bf6507f615f470b5890">More...</a><br /></td></tr>
<tr class="separator:a5e1b21d9121c6bf6507f615f470b5890"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a19752b31eb74aad0cc9538a2f0af8b8c"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classIRLgAc.html#a19752b31eb74aad0cc9538a2f0af8b8c">getMode</a> (void)</td></tr>
<tr class="memdesc:a19752b31eb74aad0cc9538a2f0af8b8c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the operating mode setting of the A/C. <a href="classIRLgAc.html#a19752b31eb74aad0cc9538a2f0af8b8c">More...</a><br /></td></tr>
<tr class="separator:a19752b31eb74aad0cc9538a2f0af8b8c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afcb529d2f2c9016388264b80e6a99351"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classIRLgAc.html#afcb529d2f2c9016388264b80e6a99351">getRaw</a> (void)</td></tr>
<tr class="memdesc:afcb529d2f2c9016388264b80e6a99351"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get a copy of the internal state/code for this protocol. <a href="classIRLgAc.html#afcb529d2f2c9016388264b80e6a99351">More...</a><br /></td></tr>
<tr class="separator:afcb529d2f2c9016388264b80e6a99351"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0da8ea4946826736f526386dc4d115cc"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classIRLgAc.html#a0da8ea4946826736f526386dc4d115cc">setRaw</a> (const uint32_t new_code)</td></tr>
<tr class="memdesc:a0da8ea4946826736f526386dc4d115cc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the internal state from a valid code for this protocol. <a href="classIRLgAc.html#a0da8ea4946826736f526386dc4d115cc">More...</a><br /></td></tr>
<tr class="separator:a0da8ea4946826736f526386dc4d115cc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a114eca216b7c9c7be33d4527f848311e"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classIRLgAc.html#a114eca216b7c9c7be33d4527f848311e">convertMode</a> (const <a class="el" href="namespacestdAc.html#a99ad268c783486f9b3207cb78f48444f">stdAc::opmode_t</a> mode)</td></tr>
<tr class="memdesc:a114eca216b7c9c7be33d4527f848311e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert a <a class="el" href="namespacestdAc.html#a99ad268c783486f9b3207cb78f48444f" title="Common A/C settings for A/C operating modes.">stdAc::opmode_t</a> enum into its native mode. <a href="classIRLgAc.html#a114eca216b7c9c7be33d4527f848311e">More...</a><br /></td></tr>
<tr class="separator:a114eca216b7c9c7be33d4527f848311e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a75c52ef31270f25651521ae2be558faa"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structstdAc_1_1state__t.html">stdAc::state_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classIRLgAc.html#a75c52ef31270f25651521ae2be558faa">toCommon</a> (void)</td></tr>
<tr class="memdesc:a75c52ef31270f25651521ae2be558faa"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert the current internal state into its <a class="el" href="structstdAc_1_1state__t.html" title="Structure to hold a common A/C state.">stdAc::state_t</a> equivilant. <a href="classIRLgAc.html#a75c52ef31270f25651521ae2be558faa">More...</a><br /></td></tr>
<tr class="separator:a75c52ef31270f25651521ae2be558faa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4546e2e0f63aac0bb9bd54f4f93c5f6c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="IRremoteESP8266_8h.html#afbeda3fd1bdc8c37d01bdf9f5c8274ff">String</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classIRLgAc.html#a4546e2e0f63aac0bb9bd54f4f93c5f6c">toString</a> (void)</td></tr>
<tr class="memdesc:a4546e2e0f63aac0bb9bd54f4f93c5f6c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert the current internal state into a human readable string. <a href="classIRLgAc.html#a4546e2e0f63aac0bb9bd54f4f93c5f6c">More...</a><br /></td></tr>
<tr class="separator:a4546e2e0f63aac0bb9bd54f4f93c5f6c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae4b8758ecf10bd7e25ed401593692821"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classIRLgAc.html#ae4b8758ecf10bd7e25ed401593692821">setModel</a> (const <a class="el" href="IRsend_8h.html#a50c54713e16502d280723334879dc83b">lg_ac_remote_model_t</a> model)</td></tr>
<tr class="memdesc:ae4b8758ecf10bd7e25ed401593692821"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the model of the A/C to emulate. <a href="classIRLgAc.html#ae4b8758ecf10bd7e25ed401593692821">More...</a><br /></td></tr>
<tr class="separator:ae4b8758ecf10bd7e25ed401593692821"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa49cde438a42a5415e127cc95da465ac"><td class="memItemLeft" align="right" valign="top"><a class="el" href="IRsend_8h.html#a50c54713e16502d280723334879dc83b">lg_ac_remote_model_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classIRLgAc.html#aa49cde438a42a5415e127cc95da465ac">getModel</a> (void)</td></tr>
<tr class="memdesc:aa49cde438a42a5415e127cc95da465ac"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the model of the A/C. <a href="classIRLgAc.html#aa49cde438a42a5415e127cc95da465ac">More...</a><br /></td></tr>
<tr class="separator:aa49cde438a42a5415e127cc95da465ac"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a96024e736cf87e65b4e2db7c4c269520"><td class="memItemLeft" align="right" valign="top">static uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classIRLgAc.html#a96024e736cf87e65b4e2db7c4c269520">calcChecksum</a> (const uint32_t state)</td></tr>
<tr class="memdesc:a96024e736cf87e65b4e2db7c4c269520"><td class="mdescLeft">&#160;</td><td class="mdescRight">Calculate the checksum for a given state. <a href="classIRLgAc.html#a96024e736cf87e65b4e2db7c4c269520">More...</a><br /></td></tr>
<tr class="separator:a96024e736cf87e65b4e2db7c4c269520"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a51748fa24de24049a2fafb4590e84176"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classIRLgAc.html#a51748fa24de24049a2fafb4590e84176">validChecksum</a> (const uint32_t state)</td></tr>
<tr class="memdesc:a51748fa24de24049a2fafb4590e84176"><td class="mdescLeft">&#160;</td><td class="mdescRight">Verify the checksum is valid for a given state. <a href="classIRLgAc.html#a51748fa24de24049a2fafb4590e84176">More...</a><br /></td></tr>
<tr class="separator:a51748fa24de24049a2fafb4590e84176"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac3436968a4445f0210403c353d766b73"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="namespacestdAc.html#a99ad268c783486f9b3207cb78f48444f">stdAc::opmode_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classIRLgAc.html#ac3436968a4445f0210403c353d766b73">toCommonMode</a> (const uint8_t mode)</td></tr>
<tr class="memdesc:ac3436968a4445f0210403c353d766b73"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert a native mode into its <a class="el" href="namespacestdAc.html" title="Enumerators and Structures for the Common A/C API.">stdAc</a> equivilant. <a href="classIRLgAc.html#ac3436968a4445f0210403c353d766b73">More...</a><br /></td></tr>
<tr class="separator:ac3436968a4445f0210403c353d766b73"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af47317ba139a4b1e5961b9a45db974df"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="namespacestdAc.html#a8bb0dbf18fe69f639f4ac0b3ff133383">stdAc::fanspeed_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classIRLgAc.html#af47317ba139a4b1e5961b9a45db974df">toCommonFanSpeed</a> (const uint8_t speed)</td></tr>
<tr class="memdesc:af47317ba139a4b1e5961b9a45db974df"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert a native fan speed into its <a class="el" href="namespacestdAc.html" title="Enumerators and Structures for the Common A/C API.">stdAc</a> equivilant. <a href="classIRLgAc.html#af47317ba139a4b1e5961b9a45db974df">More...</a><br /></td></tr>
<tr class="separator:af47317ba139a4b1e5961b9a45db974df"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a71ce8d1be4222ecae26fcea3b71a1ba6"><td class="memItemLeft" align="right" valign="top">static uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classIRLgAc.html#a71ce8d1be4222ecae26fcea3b71a1ba6">convertFan</a> (const <a class="el" href="namespacestdAc.html#a8bb0dbf18fe69f639f4ac0b3ff133383">stdAc::fanspeed_t</a> speed)</td></tr>
<tr class="memdesc:a71ce8d1be4222ecae26fcea3b71a1ba6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert a <a class="el" href="namespacestdAc.html#a8bb0dbf18fe69f639f4ac0b3ff133383" title="Common A/C settings for Fan Speeds.">stdAc::fanspeed_t</a> enum into it's native speed. <a href="classIRLgAc.html#a71ce8d1be4222ecae26fcea3b71a1ba6">More...</a><br /></td></tr>
<tr class="separator:a71ce8d1be4222ecae26fcea3b71a1ba6"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-methods"></a>
Private Member Functions</h2></td></tr>
<tr class="memitem:a438cbbb77668205c3f2b59b8f28585cd"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classIRLgAc.html#a438cbbb77668205c3f2b59b8f28585cd">checksum</a> (void)</td></tr>
<tr class="memdesc:a438cbbb77668205c3f2b59b8f28585cd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Calculate and set the checksum values for the internal state. <a href="classIRLgAc.html#a438cbbb77668205c3f2b59b8f28585cd">More...</a><br /></td></tr>
<tr class="separator:a438cbbb77668205c3f2b59b8f28585cd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a39aca9861608211c8e74c89a7ccc97cd"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classIRLgAc.html#a39aca9861608211c8e74c89a7ccc97cd">_setTemp</a> (const uint8_t value)</td></tr>
<tr class="memdesc:a39aca9861608211c8e74c89a7ccc97cd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the temperature. <a href="classIRLgAc.html#a39aca9861608211c8e74c89a7ccc97cd">More...</a><br /></td></tr>
<tr class="separator:a39aca9861608211c8e74c89a7ccc97cd"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr class="memitem:a779f321b65db6ad05ab3e578b38cf093"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classIRsend.html">IRsend</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classIRLgAc.html#a779f321b65db6ad05ab3e578b38cf093">_irsend</a></td></tr>
<tr class="memdesc:a779f321b65db6ad05ab3e578b38cf093"><td class="mdescLeft">&#160;</td><td class="mdescRight">Instance of the IR send class. <a href="classIRLgAc.html#a779f321b65db6ad05ab3e578b38cf093">More...</a><br /></td></tr>
<tr class="separator:a779f321b65db6ad05ab3e578b38cf093"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a481133671657b13ecce1bd08f710089d"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classIRLgAc.html#a481133671657b13ecce1bd08f710089d">remote_state</a></td></tr>
<tr class="memdesc:a481133671657b13ecce1bd08f710089d"><td class="mdescLeft">&#160;</td><td class="mdescRight">The state of the IR remote in IR code form. <a href="classIRLgAc.html#a481133671657b13ecce1bd08f710089d">More...</a><br /></td></tr>
<tr class="separator:a481133671657b13ecce1bd08f710089d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1eeb727ee96c26b784a607aabd4577c9"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classIRLgAc.html#a1eeb727ee96c26b784a607aabd4577c9">_temp</a></td></tr>
<tr class="separator:a1eeb727ee96c26b784a607aabd4577c9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9bd32e865a7358bbf32830d888e2786a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="IRremoteESP8266_8h.html#ad5b287a488a8c1b7b8661f029ab56fad">decode_type_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classIRLgAc.html#a9bd32e865a7358bbf32830d888e2786a">_protocol</a></td></tr>
<tr class="separator:a9bd32e865a7358bbf32830d888e2786a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Class for handling detailed LG A/C messages. </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a290636496526a9ed2057532649709375"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a290636496526a9ed2057532649709375">&#9670;&nbsp;</a></span>IRLgAc()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">IRLgAc::IRLgAc </td>
<td>(</td>
<td class="paramtype">const uint16_t&#160;</td>
<td class="paramname"><em>pin</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const bool&#160;</td>
<td class="paramname"><em>inverted</em> = <code>false</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const bool&#160;</td>
<td class="paramname"><em>use_modulation</em> = <code>true</code>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">explicit</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Class constructor. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">pin</td><td>GPIO to be used when sending. </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">inverted</td><td>Is the output signal to be inverted? </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">use_modulation</td><td>Is frequency modulation to be used? </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a39aca9861608211c8e74c89a7ccc97cd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a39aca9861608211c8e74c89a7ccc97cd">&#9670;&nbsp;</a></span>_setTemp()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void IRLgAc::_setTemp </td>
<td>(</td>
<td class="paramtype">const uint8_t&#160;</td>
<td class="paramname"><em>value</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Set the temperature. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">value</td><td>The native temperature. </td></tr>
</table>
</dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>Internal use only. </dd></dl>
</div>
</div>
<a id="ac08ada1c67ace5ee2ebe4d325aa8c25d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac08ada1c67ace5ee2ebe4d325aa8c25d">&#9670;&nbsp;</a></span>begin()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void IRLgAc::begin </td>
<td>(</td>
<td class="paramtype">void&#160;</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Set up hardware to be able to send a message. </p>
</div>
</div>
<a id="a96024e736cf87e65b4e2db7c4c269520"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a96024e736cf87e65b4e2db7c4c269520">&#9670;&nbsp;</a></span>calcChecksum()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">uint8_t IRLgAc::calcChecksum </td>
<td>(</td>
<td class="paramtype">const uint32_t&#160;</td>
<td class="paramname"><em>state</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Calculate the checksum for a given state. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">state</td><td>The value to calc the checksum of. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The calculated checksum value. </dd></dl>
</div>
</div>
<a id="a4fd11e935c781319b29f606f2f4b2570"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4fd11e935c781319b29f606f2f4b2570">&#9670;&nbsp;</a></span>calibrate()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">int8_t IRLgAc::calibrate </td>
<td>(</td>
<td class="paramtype">void&#160;</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Run the calibration to calculate uSec timing offsets for this platform. </p>
<dl class="section return"><dt>Returns</dt><dd>The uSec timing offset needed per modulation of the IR Led. </dd></dl>
<dl class="section note"><dt>Note</dt><dd>This will produce a 65ms IR signal pulse at 38kHz. Only ever needs to be run once per object instantiation, if at all. </dd></dl>
</div>
</div>
<a id="a438cbbb77668205c3f2b59b8f28585cd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a438cbbb77668205c3f2b59b8f28585cd">&#9670;&nbsp;</a></span>checksum()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void IRLgAc::checksum </td>
<td>(</td>
<td class="paramtype">void&#160;</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Calculate and set the checksum values for the internal state. </p>
</div>
</div>
<a id="a71ce8d1be4222ecae26fcea3b71a1ba6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a71ce8d1be4222ecae26fcea3b71a1ba6">&#9670;&nbsp;</a></span>convertFan()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">uint8_t IRLgAc::convertFan </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="namespacestdAc.html#a8bb0dbf18fe69f639f4ac0b3ff133383">stdAc::fanspeed_t</a>&#160;</td>
<td class="paramname"><em>speed</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Convert a <a class="el" href="namespacestdAc.html#a8bb0dbf18fe69f639f4ac0b3ff133383" title="Common A/C settings for Fan Speeds.">stdAc::fanspeed_t</a> enum into it's native speed. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">speed</td><td>The enum to be converted. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The native equivilant of the enum. </dd></dl>
</div>
</div>
<a id="a114eca216b7c9c7be33d4527f848311e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a114eca216b7c9c7be33d4527f848311e">&#9670;&nbsp;</a></span>convertMode()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">uint8_t IRLgAc::convertMode </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="namespacestdAc.html#a99ad268c783486f9b3207cb78f48444f">stdAc::opmode_t</a>&#160;</td>
<td class="paramname"><em>mode</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Convert a <a class="el" href="namespacestdAc.html#a99ad268c783486f9b3207cb78f48444f" title="Common A/C settings for A/C operating modes.">stdAc::opmode_t</a> enum into its native mode. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">mode</td><td>The enum to be converted. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The native equivilant of the enum. </dd></dl>
</div>
</div>
<a id="a10d666ca13c99696a53dca7f5773d7de"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a10d666ca13c99696a53dca7f5773d7de">&#9670;&nbsp;</a></span>getFan()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">uint8_t IRLgAc::getFan </td>
<td>(</td>
<td class="paramtype">void&#160;</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Get the current fan speed setting. </p>
<dl class="section return"><dt>Returns</dt><dd>The current fan speed. </dd></dl>
</div>
</div>
<a id="a19752b31eb74aad0cc9538a2f0af8b8c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a19752b31eb74aad0cc9538a2f0af8b8c">&#9670;&nbsp;</a></span>getMode()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">uint8_t IRLgAc::getMode </td>
<td>(</td>
<td class="paramtype">void&#160;</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Get the operating mode setting of the A/C. </p>
<dl class="section return"><dt>Returns</dt><dd>The current operating mode setting. </dd></dl>
</div>
</div>
<a id="aa49cde438a42a5415e127cc95da465ac"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa49cde438a42a5415e127cc95da465ac">&#9670;&nbsp;</a></span>getModel()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="IRsend_8h.html#a50c54713e16502d280723334879dc83b">lg_ac_remote_model_t</a> IRLgAc::getModel </td>
<td>(</td>
<td class="paramtype">void&#160;</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Get the model of the A/C. </p>
<dl class="section return"><dt>Returns</dt><dd>The enum of the compatible model. </dd></dl>
</div>
</div>
<a id="ac09b8af7cc2d46881d3a710068acb5bd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac09b8af7cc2d46881d3a710068acb5bd">&#9670;&nbsp;</a></span>getPower()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool IRLgAc::getPower </td>
<td>(</td>
<td class="paramtype">void&#160;</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Get the value of the current power setting. </p>
<dl class="section return"><dt>Returns</dt><dd>true, the setting is on. false, the setting is off. </dd></dl>
</div>
</div>
<a id="afcb529d2f2c9016388264b80e6a99351"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afcb529d2f2c9016388264b80e6a99351">&#9670;&nbsp;</a></span>getRaw()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">uint32_t IRLgAc::getRaw </td>
<td>(</td>
<td class="paramtype">void&#160;</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Get a copy of the internal state/code for this protocol. </p>
<dl class="section return"><dt>Returns</dt><dd>The code for this protocol based on the current internal state. </dd></dl>
</div>
</div>
<a id="a029399c5926bd4f1ff0b26175bc4af79"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a029399c5926bd4f1ff0b26175bc4af79">&#9670;&nbsp;</a></span>getTemp()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">uint8_t IRLgAc::getTemp </td>
<td>(</td>
<td class="paramtype">void&#160;</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Get the current temperature setting. </p>
<dl class="section return"><dt>Returns</dt><dd>The current setting for temp. in degrees celsius. </dd></dl>
</div>
</div>
<a id="a5984041eb12603ac1a277c28b355322a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5984041eb12603ac1a277c28b355322a">&#9670;&nbsp;</a></span>isValidLgAc()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool IRLgAc::isValidLgAc </td>
<td>(</td>
<td class="paramtype">void&#160;</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Check if the internal state looks like a valud LG A/C message. </p>
<dl class="section return"><dt>Returns</dt><dd>true, the internal state is a valid LG A/C mesg. Otherwise, false. </dd></dl>
</div>
</div>
<a id="a6d3d50b34575fecb93ed8bd5897c3f7c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6d3d50b34575fecb93ed8bd5897c3f7c">&#9670;&nbsp;</a></span>off()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void IRLgAc::off </td>
<td>(</td>
<td class="paramtype">void&#160;</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Change the power setting to Off. </p>
</div>
</div>
<a id="a171358340c1ba8f90fef0c5454f2aa41"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a171358340c1ba8f90fef0c5454f2aa41">&#9670;&nbsp;</a></span>on()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void IRLgAc::on </td>
<td>(</td>
<td class="paramtype">void&#160;</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Change the power setting to On. </p>
</div>
</div>
<a id="aea85c840161b48f2e8d31e7e6e7da532"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aea85c840161b48f2e8d31e7e6e7da532">&#9670;&nbsp;</a></span>send()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void IRLgAc::send </td>
<td>(</td>
<td class="paramtype">const uint16_t&#160;</td>
<td class="paramname"><em>repeat</em> = <code><a class="el" href="IRremoteESP8266_8h.html#a2d6832b3d214e0adad781c205993e461">kLgDefaultRepeat</a></code></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Send the current internal state as an IR message. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">repeat</td><td>Nr. of times the message will be repeated. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="a0f1901a21ffb93641d3481417d74bb4e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0f1901a21ffb93641d3481417d74bb4e">&#9670;&nbsp;</a></span>setFan()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void IRLgAc::setFan </td>
<td>(</td>
<td class="paramtype">const uint8_t&#160;</td>
<td class="paramname"><em>speed</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Set the speed of the fan. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">speed</td><td>The desired setting. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="a5e1b21d9121c6bf6507f615f470b5890"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5e1b21d9121c6bf6507f615f470b5890">&#9670;&nbsp;</a></span>setMode()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void IRLgAc::setMode </td>
<td>(</td>
<td class="paramtype">const uint8_t&#160;</td>
<td class="paramname"><em>mode</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Set the operating mode of the A/C. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">mode</td><td>The desired operating mode. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="ae4b8758ecf10bd7e25ed401593692821"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae4b8758ecf10bd7e25ed401593692821">&#9670;&nbsp;</a></span>setModel()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void IRLgAc::setModel </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="IRsend_8h.html#a50c54713e16502d280723334879dc83b">lg_ac_remote_model_t</a>&#160;</td>
<td class="paramname"><em>model</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Set the model of the A/C to emulate. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">model</td><td>The enum of the appropriate model. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="a175e6482fd1565d43906c527f911b59e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a175e6482fd1565d43906c527f911b59e">&#9670;&nbsp;</a></span>setPower()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void IRLgAc::setPower </td>
<td>(</td>
<td class="paramtype">const bool&#160;</td>
<td class="paramname"><em>on</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Change the power setting. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">on</td><td>true, the setting is on. false, the setting is off. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="a0da8ea4946826736f526386dc4d115cc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0da8ea4946826736f526386dc4d115cc">&#9670;&nbsp;</a></span>setRaw()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void IRLgAc::setRaw </td>
<td>(</td>
<td class="paramtype">const uint32_t&#160;</td>
<td class="paramname"><em>new_code</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Set the internal state from a valid code for this protocol. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">new_code</td><td>A valid code for this protocol. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="ad9924a8bc9737ec6007d76ec47b34142"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad9924a8bc9737ec6007d76ec47b34142">&#9670;&nbsp;</a></span>setTemp()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void IRLgAc::setTemp </td>
<td>(</td>
<td class="paramtype">const uint8_t&#160;</td>
<td class="paramname"><em>degrees</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Set the temperature. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">degrees</td><td>The temperature in degrees celsius. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="a5959000c9f0b2cf64742d6a2f1c4c9b9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5959000c9f0b2cf64742d6a2f1c4c9b9">&#9670;&nbsp;</a></span>stateReset()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void IRLgAc::stateReset </td>
<td>(</td>
<td class="paramtype">void&#160;</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Reset the internals of the object to a known good state. </p>
</div>
</div>
<a id="a75c52ef31270f25651521ae2be558faa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a75c52ef31270f25651521ae2be558faa">&#9670;&nbsp;</a></span>toCommon()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="structstdAc_1_1state__t.html">stdAc::state_t</a> IRLgAc::toCommon </td>
<td>(</td>
<td class="paramtype">void&#160;</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Convert the current internal state into its <a class="el" href="structstdAc_1_1state__t.html" title="Structure to hold a common A/C state.">stdAc::state_t</a> equivilant. </p>
<dl class="section return"><dt>Returns</dt><dd>The <a class="el" href="namespacestdAc.html" title="Enumerators and Structures for the Common A/C API.">stdAc</a> equivilant of the native settings. </dd></dl>
</div>
</div>
<a id="af47317ba139a4b1e5961b9a45db974df"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af47317ba139a4b1e5961b9a45db974df">&#9670;&nbsp;</a></span>toCommonFanSpeed()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="namespacestdAc.html#a8bb0dbf18fe69f639f4ac0b3ff133383">stdAc::fanspeed_t</a> IRLgAc::toCommonFanSpeed </td>
<td>(</td>
<td class="paramtype">const uint8_t&#160;</td>
<td class="paramname"><em>speed</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Convert a native fan speed into its <a class="el" href="namespacestdAc.html" title="Enumerators and Structures for the Common A/C API.">stdAc</a> equivilant. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">speed</td><td>The native setting to be converted. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The <a class="el" href="namespacestdAc.html" title="Enumerators and Structures for the Common A/C API.">stdAc</a> equivilant of the native setting. </dd></dl>
</div>
</div>
<a id="ac3436968a4445f0210403c353d766b73"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac3436968a4445f0210403c353d766b73">&#9670;&nbsp;</a></span>toCommonMode()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="namespacestdAc.html#a99ad268c783486f9b3207cb78f48444f">stdAc::opmode_t</a> IRLgAc::toCommonMode </td>
<td>(</td>
<td class="paramtype">const uint8_t&#160;</td>
<td class="paramname"><em>mode</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Convert a native mode into its <a class="el" href="namespacestdAc.html" title="Enumerators and Structures for the Common A/C API.">stdAc</a> equivilant. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">mode</td><td>The native setting to be converted. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The <a class="el" href="namespacestdAc.html" title="Enumerators and Structures for the Common A/C API.">stdAc</a> equivilant of the native setting. </dd></dl>
</div>
</div>
<a id="a4546e2e0f63aac0bb9bd54f4f93c5f6c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4546e2e0f63aac0bb9bd54f4f93c5f6c">&#9670;&nbsp;</a></span>toString()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="IRremoteESP8266_8h.html#afbeda3fd1bdc8c37d01bdf9f5c8274ff">String</a> IRLgAc::toString </td>
<td>(</td>
<td class="paramtype">void&#160;</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Convert the current internal state into a human readable string. </p>
<dl class="section return"><dt>Returns</dt><dd>A human readable string. </dd></dl>
</div>
</div>
<a id="a51748fa24de24049a2fafb4590e84176"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a51748fa24de24049a2fafb4590e84176">&#9670;&nbsp;</a></span>validChecksum()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">bool IRLgAc::validChecksum </td>
<td>(</td>
<td class="paramtype">const uint32_t&#160;</td>
<td class="paramname"><em>state</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Verify the checksum is valid for a given state. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">state</td><td>The value to verify the checksum of. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true, if the state has a valid checksum. Otherwise, false. </dd></dl>
</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="a779f321b65db6ad05ab3e578b38cf093"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a779f321b65db6ad05ab3e578b38cf093">&#9670;&nbsp;</a></span>_irsend</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classIRsend.html">IRsend</a> IRLgAc::_irsend</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Instance of the IR send class. </p>
</div>
</div>
<a id="a9bd32e865a7358bbf32830d888e2786a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9bd32e865a7358bbf32830d888e2786a">&#9670;&nbsp;</a></span>_protocol</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="IRremoteESP8266_8h.html#ad5b287a488a8c1b7b8661f029ab56fad">decode_type_t</a> IRLgAc::_protocol</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="a1eeb727ee96c26b784a607aabd4577c9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1eeb727ee96c26b784a607aabd4577c9">&#9670;&nbsp;</a></span>_temp</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">uint8_t IRLgAc::_temp</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="a481133671657b13ecce1bd08f710089d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a481133671657b13ecce1bd08f710089d">&#9670;&nbsp;</a></span>remote_state</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">uint32_t IRLgAc::remote_state</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>The state of the IR remote in IR code form. </p>
</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>src/<a class="el" href="ir__LG_8h_source.html">ir_LG.h</a></li>
<li>src/<a class="el" href="ir__LG_8cpp.html">ir_LG.cpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
</small></address>
</body>
</html>