lcd_8cpp.html 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  5. <meta http-equiv="X-UA-Compatible" content="IE=9"/>
  6. <meta name="generator" content="Doxygen 1.8.10"/>
  7. <title>CoffeePi: lcd.cpp File Reference</title>
  8. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  9. <script type="text/javascript" src="jquery.js"></script>
  10. <script type="text/javascript" src="dynsections.js"></script>
  11. <link href="search/search.css" rel="stylesheet" type="text/css"/>
  12. <script type="text/javascript" src="search/searchdata.js"></script>
  13. <script type="text/javascript" src="search/search.js"></script>
  14. <script type="text/javascript">
  15. $(document).ready(function() { init_search(); });
  16. </script>
  17. <link href="doxygen.css" rel="stylesheet" type="text/css" />
  18. </head>
  19. <body>
  20. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  21. <div id="titlearea">
  22. <table cellspacing="0" cellpadding="0">
  23. <tbody>
  24. <tr style="height: 56px;">
  25. <td id="projectalign" style="padding-left: 0.5em;">
  26. <div id="projectname">CoffeePi
  27. </div>
  28. <div id="projectbrief">Coffee machine control for Raspberry Pi</div>
  29. </td>
  30. </tr>
  31. </tbody>
  32. </table>
  33. </div>
  34. <!-- end header part -->
  35. <!-- Generated by Doxygen 1.8.10 -->
  36. <script type="text/javascript">
  37. var searchBox = new SearchBox("searchBox", "search",false,'Search');
  38. </script>
  39. <div id="navrow1" class="tabs">
  40. <ul class="tablist">
  41. <li><a href="index.html"><span>Main&#160;Page</span></a></li>
  42. <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
  43. <li class="current"><a href="files.html"><span>Files</span></a></li>
  44. <li>
  45. <div id="MSearchBox" class="MSearchBoxInactive">
  46. <span class="left">
  47. <img id="MSearchSelect" src="search/mag_sel.png"
  48. onmouseover="return searchBox.OnSearchSelectShow()"
  49. onmouseout="return searchBox.OnSearchSelectHide()"
  50. alt=""/>
  51. <input type="text" id="MSearchField" value="Search" accesskey="S"
  52. onfocus="searchBox.OnSearchFieldFocus(true)"
  53. onblur="searchBox.OnSearchFieldFocus(false)"
  54. onkeyup="searchBox.OnSearchFieldChange(event)"/>
  55. </span><span class="right">
  56. <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
  57. </span>
  58. </div>
  59. </li>
  60. </ul>
  61. </div>
  62. <div id="navrow2" class="tabs2">
  63. <ul class="tablist">
  64. <li><a href="files.html"><span>File&#160;List</span></a></li>
  65. <li><a href="globals.html"><span>Globals</span></a></li>
  66. </ul>
  67. </div>
  68. <!-- window showing the filter options -->
  69. <div id="MSearchSelectWindow"
  70. onmouseover="return searchBox.OnSearchSelectShow()"
  71. onmouseout="return searchBox.OnSearchSelectHide()"
  72. onkeydown="return searchBox.OnSearchSelectKey(event)">
  73. </div>
  74. <!-- iframe showing the search results (closed by default) -->
  75. <div id="MSearchResultsWindow">
  76. <iframe src="javascript:void(0)" frameborder="0"
  77. name="MSearchResults" id="MSearchResults">
  78. </iframe>
  79. </div>
  80. </div><!-- top -->
  81. <div class="header">
  82. <div class="summary">
  83. <a href="#define-members">Macros</a> &#124;
  84. <a href="#func-members">Functions</a> &#124;
  85. <a href="#var-members">Variables</a> </div>
  86. <div class="headertitle">
  87. <div class="title">lcd.cpp File Reference</div> </div>
  88. </div><!--header-->
  89. <div class="contents">
  90. <div class="textblock"><code>#include &lt;stdio.h&gt;</code><br />
  91. <code>#include &lt;stdlib.h&gt;</code><br />
  92. <code>#include &lt;stdarg.h&gt;</code><br />
  93. <code>#include &lt;wiringPi.h&gt;</code><br />
  94. <code>#include &quot;<a class="el" href="spi_8h_source.html">spi.h</a>&quot;</code><br />
  95. <code>#include &quot;<a class="el" href="lcd_8h_source.html">lcd.h</a>&quot;</code><br />
  96. <code>#include &quot;<a class="el" href="global_8h_source.html">global.h</a>&quot;</code><br />
  97. </div><table class="memberdecls">
  98. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
  99. Macros</h2></td></tr>
  100. <tr class="memitem:aa8cecfc5c5c054d2875c03e77b7be15d"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="lcd_8cpp.html#aa8cecfc5c5c054d2875c03e77b7be15d">TRUE</a>&#160;&#160;&#160;(1==1)</td></tr>
  101. <tr class="separator:aa8cecfc5c5c054d2875c03e77b7be15d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  102. <tr class="memitem:aa93f0eb578d23995850d61f7d61c55c1"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="lcd_8cpp.html#aa93f0eb578d23995850d61f7d61c55c1">FALSE</a>&#160;&#160;&#160;(1==2)</td></tr>
  103. <tr class="separator:aa93f0eb578d23995850d61f7d61c55c1"><td class="memSeparator" colspan="2">&#160;</td></tr>
  104. <tr class="memitem:a6aa8aa2057294b7d06088e834299b369"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="lcd_8cpp.html#a6aa8aa2057294b7d06088e834299b369">LCD_CLEAR</a>&#160;&#160;&#160;0x01</td></tr>
  105. <tr class="separator:a6aa8aa2057294b7d06088e834299b369"><td class="memSeparator" colspan="2">&#160;</td></tr>
  106. <tr class="memitem:ae0e309ccad89222eb3457f2da9f2bb8d"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="lcd_8cpp.html#ae0e309ccad89222eb3457f2da9f2bb8d">LCD_HOME</a>&#160;&#160;&#160;0x02</td></tr>
  107. <tr class="separator:ae0e309ccad89222eb3457f2da9f2bb8d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  108. <tr class="memitem:a28d2c8d621da114a0fe438db2e58507a"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="lcd_8cpp.html#a28d2c8d621da114a0fe438db2e58507a">LCD_ENTRY</a>&#160;&#160;&#160;0x04</td></tr>
  109. <tr class="separator:a28d2c8d621da114a0fe438db2e58507a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  110. <tr class="memitem:a8e945df7ca614325cafa08258e82a63c"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="lcd_8cpp.html#a8e945df7ca614325cafa08258e82a63c">LCD_CTRL</a>&#160;&#160;&#160;0x08</td></tr>
  111. <tr class="separator:a8e945df7ca614325cafa08258e82a63c"><td class="memSeparator" colspan="2">&#160;</td></tr>
  112. <tr class="memitem:a93e4bb4b824f5b8f5d572d9b4a943ad2"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="lcd_8cpp.html#a93e4bb4b824f5b8f5d572d9b4a943ad2">LCD_CDSHIFT</a>&#160;&#160;&#160;0x10</td></tr>
  113. <tr class="separator:a93e4bb4b824f5b8f5d572d9b4a943ad2"><td class="memSeparator" colspan="2">&#160;</td></tr>
  114. <tr class="memitem:a387bfe42ea7284ba0f154f00df579cad"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="lcd_8cpp.html#a387bfe42ea7284ba0f154f00df579cad">LCD_FUNC</a>&#160;&#160;&#160;0x20</td></tr>
  115. <tr class="separator:a387bfe42ea7284ba0f154f00df579cad"><td class="memSeparator" colspan="2">&#160;</td></tr>
  116. <tr class="memitem:a3b38de74c362be1781fef1136aa9684c"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="lcd_8cpp.html#a3b38de74c362be1781fef1136aa9684c">LCD_CGRAM</a>&#160;&#160;&#160;0x40</td></tr>
  117. <tr class="separator:a3b38de74c362be1781fef1136aa9684c"><td class="memSeparator" colspan="2">&#160;</td></tr>
  118. <tr class="memitem:a9f40873eaf6a8f0a93971b3e0ab3fd12"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="lcd_8cpp.html#a9f40873eaf6a8f0a93971b3e0ab3fd12">LCD_DGRAM</a>&#160;&#160;&#160;0x80</td></tr>
  119. <tr class="separator:a9f40873eaf6a8f0a93971b3e0ab3fd12"><td class="memSeparator" colspan="2">&#160;</td></tr>
  120. <tr class="memitem:aff5b4fcb87ea2eef9bb3af0234b14f53"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="lcd_8cpp.html#aff5b4fcb87ea2eef9bb3af0234b14f53">LCD_ENTRY_SH</a>&#160;&#160;&#160;0x01</td></tr>
  121. <tr class="separator:aff5b4fcb87ea2eef9bb3af0234b14f53"><td class="memSeparator" colspan="2">&#160;</td></tr>
  122. <tr class="memitem:a58e84458e964afcac51877bd13e7703f"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="lcd_8cpp.html#a58e84458e964afcac51877bd13e7703f">LCD_ENTRY_ID</a>&#160;&#160;&#160;0x02</td></tr>
  123. <tr class="separator:a58e84458e964afcac51877bd13e7703f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  124. <tr class="memitem:aa52bab70fab9c117f20d71442de77452"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="lcd_8cpp.html#aa52bab70fab9c117f20d71442de77452">LCD_BLINK_CTRL</a>&#160;&#160;&#160;0x01</td></tr>
  125. <tr class="separator:aa52bab70fab9c117f20d71442de77452"><td class="memSeparator" colspan="2">&#160;</td></tr>
  126. <tr class="memitem:a3da48db16c1e7844567542273a5578c7"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="lcd_8cpp.html#a3da48db16c1e7844567542273a5578c7">LCD_CURSOR_CTRL</a>&#160;&#160;&#160;0x02</td></tr>
  127. <tr class="separator:a3da48db16c1e7844567542273a5578c7"><td class="memSeparator" colspan="2">&#160;</td></tr>
  128. <tr class="memitem:a1a166a796cbaf4cdd6a3af584ec067d5"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="lcd_8cpp.html#a1a166a796cbaf4cdd6a3af584ec067d5">LCD_DISPLAY_CTRL</a>&#160;&#160;&#160;0x04</td></tr>
  129. <tr class="separator:a1a166a796cbaf4cdd6a3af584ec067d5"><td class="memSeparator" colspan="2">&#160;</td></tr>
  130. <tr class="memitem:a5ea7976aa137e8d043d3dfab474cf0b4"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="lcd_8cpp.html#a5ea7976aa137e8d043d3dfab474cf0b4">LCD_FUNC_F</a>&#160;&#160;&#160;0x04</td></tr>
  131. <tr class="separator:a5ea7976aa137e8d043d3dfab474cf0b4"><td class="memSeparator" colspan="2">&#160;</td></tr>
  132. <tr class="memitem:a0741cad05d62ff28d92a05ea11aa6fdc"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="lcd_8cpp.html#a0741cad05d62ff28d92a05ea11aa6fdc">LCD_FUNC_N</a>&#160;&#160;&#160;0x08</td></tr>
  133. <tr class="separator:a0741cad05d62ff28d92a05ea11aa6fdc"><td class="memSeparator" colspan="2">&#160;</td></tr>
  134. <tr class="memitem:ae4b9a3bcb0dc315afc03412237c5a3ea"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="lcd_8cpp.html#ae4b9a3bcb0dc315afc03412237c5a3ea">LCD_FUNC_DL</a>&#160;&#160;&#160;0x10</td></tr>
  135. <tr class="separator:ae4b9a3bcb0dc315afc03412237c5a3ea"><td class="memSeparator" colspan="2">&#160;</td></tr>
  136. <tr class="memitem:afb0c5015365d7e200edec8967d32195c"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="lcd_8cpp.html#afb0c5015365d7e200edec8967d32195c">LCD_CDSHIFT_RL</a>&#160;&#160;&#160;0x04</td></tr>
  137. <tr class="separator:afb0c5015365d7e200edec8967d32195c"><td class="memSeparator" colspan="2">&#160;</td></tr>
  138. </table><table class="memberdecls">
  139. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
  140. Functions</h2></td></tr>
  141. <tr class="memitem:a688913764edb3a241c26da5e51d70ac2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="lcd_8cpp.html#a688913764edb3a241c26da5e51d70ac2">lcdHome</a> (const int fd)</td></tr>
  142. <tr class="separator:a688913764edb3a241c26da5e51d70ac2"><td class="memSeparator" colspan="2">&#160;</td></tr>
  143. <tr class="memitem:ae1b4dfd9571742b5ca0aba92882b57a6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="lcd_8cpp.html#ae1b4dfd9571742b5ca0aba92882b57a6">lcdClear</a> (const int fd)</td></tr>
  144. <tr class="separator:ae1b4dfd9571742b5ca0aba92882b57a6"><td class="memSeparator" colspan="2">&#160;</td></tr>
  145. <tr class="memitem:af08385cd21eea125d63d6919ecfbea4a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="lcd_8cpp.html#af08385cd21eea125d63d6919ecfbea4a">lcdDisplay</a> (const int fd, int <a class="el" href="coffee_8cpp.html#a89f234133d3efe315836311cbf21c64b">state</a>)</td></tr>
  146. <tr class="separator:af08385cd21eea125d63d6919ecfbea4a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  147. <tr class="memitem:a8aa13c894973d52eeed51d10bf869df2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="lcd_8cpp.html#a8aa13c894973d52eeed51d10bf869df2">lcdCursor</a> (const int fd, int <a class="el" href="coffee_8cpp.html#a89f234133d3efe315836311cbf21c64b">state</a>)</td></tr>
  148. <tr class="separator:a8aa13c894973d52eeed51d10bf869df2"><td class="memSeparator" colspan="2">&#160;</td></tr>
  149. <tr class="memitem:af39d67df7e36291184f69691bb97285b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="lcd_8cpp.html#af39d67df7e36291184f69691bb97285b">lcdCursorBlink</a> (const int fd, int <a class="el" href="coffee_8cpp.html#a89f234133d3efe315836311cbf21c64b">state</a>)</td></tr>
  150. <tr class="separator:af39d67df7e36291184f69691bb97285b"><td class="memSeparator" colspan="2">&#160;</td></tr>
  151. <tr class="memitem:abb6341df42d0e652db66e51fbf0ba486"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="lcd_8cpp.html#abb6341df42d0e652db66e51fbf0ba486">lcdSendCommand</a> (const int fd, unsigned char command)</td></tr>
  152. <tr class="separator:abb6341df42d0e652db66e51fbf0ba486"><td class="memSeparator" colspan="2">&#160;</td></tr>
  153. <tr class="memitem:a5d09137f6373e95a692c4b3403729254"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="lcd_8cpp.html#a5d09137f6373e95a692c4b3403729254">lcdPosition</a> (const int fd, int x, int y)</td></tr>
  154. <tr class="separator:a5d09137f6373e95a692c4b3403729254"><td class="memSeparator" colspan="2">&#160;</td></tr>
  155. <tr class="memitem:a74d902393394e4d3cebdcf0d81bbaeeb"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="lcd_8cpp.html#a74d902393394e4d3cebdcf0d81bbaeeb">lcdCharDef</a> (const int fd, int index, unsigned char data[8])</td></tr>
  156. <tr class="separator:a74d902393394e4d3cebdcf0d81bbaeeb"><td class="memSeparator" colspan="2">&#160;</td></tr>
  157. <tr class="memitem:a21c60441ee22710add0c9bda1310ed66"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="lcd_8cpp.html#a21c60441ee22710add0c9bda1310ed66">lcdPutchar</a> (const int fd, unsigned char data)</td></tr>
  158. <tr class="separator:a21c60441ee22710add0c9bda1310ed66"><td class="memSeparator" colspan="2">&#160;</td></tr>
  159. <tr class="memitem:a805efc4a96cca29544672151a9594c20"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="lcd_8cpp.html#a805efc4a96cca29544672151a9594c20">lcdPuts</a> (const int fd, const char *string)</td></tr>
  160. <tr class="separator:a805efc4a96cca29544672151a9594c20"><td class="memSeparator" colspan="2">&#160;</td></tr>
  161. <tr class="memitem:a49c322ad29410ea292f8d976baf6deb9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="lcd_8cpp.html#a49c322ad29410ea292f8d976baf6deb9">lcdPrintf</a> (const int fd, const char *message,...)</td></tr>
  162. <tr class="separator:a49c322ad29410ea292f8d976baf6deb9"><td class="memSeparator" colspan="2">&#160;</td></tr>
  163. <tr class="memitem:a88d70347308e92cb29eb45b505cad39e"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="lcd_8cpp.html#a88d70347308e92cb29eb45b505cad39e">lcdInit</a> (void)</td></tr>
  164. <tr class="separator:a88d70347308e92cb29eb45b505cad39e"><td class="memSeparator" colspan="2">&#160;</td></tr>
  165. <tr class="memitem:a47f05b4cef2cf066cf1cbb1beb7ceb31"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="lcd_8cpp.html#a47f05b4cef2cf066cf1cbb1beb7ceb31">lcdInitI</a> (const int rows, const int cols, const int bits, const int rs, const int strb)</td></tr>
  166. <tr class="separator:a47f05b4cef2cf066cf1cbb1beb7ceb31"><td class="memSeparator" colspan="2">&#160;</td></tr>
  167. </table><table class="memberdecls">
  168. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
  169. Variables</h2></td></tr>
  170. <tr class="memitem:a6e3994c5175d8609dee2cc8d3bcd66e9"><td class="memItemLeft" align="right" valign="top">struct lcdDataStruct *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="lcd_8cpp.html#a6e3994c5175d8609dee2cc8d3bcd66e9">lcds</a> [<a class="el" href="lcd_8h.html#a6bfe3f4a880b075a72d2a8318bd10f8e">MAX_LCDS</a>]</td></tr>
  171. <tr class="separator:a6e3994c5175d8609dee2cc8d3bcd66e9"><td class="memSeparator" colspan="2">&#160;</td></tr>
  172. </table>
  173. <h2 class="groupheader">Macro Definition Documentation</h2>
  174. <a class="anchor" id="aa93f0eb578d23995850d61f7d61c55c1"></a>
  175. <div class="memitem">
  176. <div class="memproto">
  177. <table class="memname">
  178. <tr>
  179. <td class="memname">#define FALSE&#160;&#160;&#160;(1==2)</td>
  180. </tr>
  181. </table>
  182. </div><div class="memdoc">
  183. </div>
  184. </div>
  185. <a class="anchor" id="aa52bab70fab9c117f20d71442de77452"></a>
  186. <div class="memitem">
  187. <div class="memproto">
  188. <table class="memname">
  189. <tr>
  190. <td class="memname">#define LCD_BLINK_CTRL&#160;&#160;&#160;0x01</td>
  191. </tr>
  192. </table>
  193. </div><div class="memdoc">
  194. </div>
  195. </div>
  196. <a class="anchor" id="a93e4bb4b824f5b8f5d572d9b4a943ad2"></a>
  197. <div class="memitem">
  198. <div class="memproto">
  199. <table class="memname">
  200. <tr>
  201. <td class="memname">#define LCD_CDSHIFT&#160;&#160;&#160;0x10</td>
  202. </tr>
  203. </table>
  204. </div><div class="memdoc">
  205. </div>
  206. </div>
  207. <a class="anchor" id="afb0c5015365d7e200edec8967d32195c"></a>
  208. <div class="memitem">
  209. <div class="memproto">
  210. <table class="memname">
  211. <tr>
  212. <td class="memname">#define LCD_CDSHIFT_RL&#160;&#160;&#160;0x04</td>
  213. </tr>
  214. </table>
  215. </div><div class="memdoc">
  216. </div>
  217. </div>
  218. <a class="anchor" id="a3b38de74c362be1781fef1136aa9684c"></a>
  219. <div class="memitem">
  220. <div class="memproto">
  221. <table class="memname">
  222. <tr>
  223. <td class="memname">#define LCD_CGRAM&#160;&#160;&#160;0x40</td>
  224. </tr>
  225. </table>
  226. </div><div class="memdoc">
  227. </div>
  228. </div>
  229. <a class="anchor" id="a6aa8aa2057294b7d06088e834299b369"></a>
  230. <div class="memitem">
  231. <div class="memproto">
  232. <table class="memname">
  233. <tr>
  234. <td class="memname">#define LCD_CLEAR&#160;&#160;&#160;0x01</td>
  235. </tr>
  236. </table>
  237. </div><div class="memdoc">
  238. </div>
  239. </div>
  240. <a class="anchor" id="a8e945df7ca614325cafa08258e82a63c"></a>
  241. <div class="memitem">
  242. <div class="memproto">
  243. <table class="memname">
  244. <tr>
  245. <td class="memname">#define LCD_CTRL&#160;&#160;&#160;0x08</td>
  246. </tr>
  247. </table>
  248. </div><div class="memdoc">
  249. </div>
  250. </div>
  251. <a class="anchor" id="a3da48db16c1e7844567542273a5578c7"></a>
  252. <div class="memitem">
  253. <div class="memproto">
  254. <table class="memname">
  255. <tr>
  256. <td class="memname">#define LCD_CURSOR_CTRL&#160;&#160;&#160;0x02</td>
  257. </tr>
  258. </table>
  259. </div><div class="memdoc">
  260. </div>
  261. </div>
  262. <a class="anchor" id="a9f40873eaf6a8f0a93971b3e0ab3fd12"></a>
  263. <div class="memitem">
  264. <div class="memproto">
  265. <table class="memname">
  266. <tr>
  267. <td class="memname">#define LCD_DGRAM&#160;&#160;&#160;0x80</td>
  268. </tr>
  269. </table>
  270. </div><div class="memdoc">
  271. </div>
  272. </div>
  273. <a class="anchor" id="a1a166a796cbaf4cdd6a3af584ec067d5"></a>
  274. <div class="memitem">
  275. <div class="memproto">
  276. <table class="memname">
  277. <tr>
  278. <td class="memname">#define LCD_DISPLAY_CTRL&#160;&#160;&#160;0x04</td>
  279. </tr>
  280. </table>
  281. </div><div class="memdoc">
  282. </div>
  283. </div>
  284. <a class="anchor" id="a28d2c8d621da114a0fe438db2e58507a"></a>
  285. <div class="memitem">
  286. <div class="memproto">
  287. <table class="memname">
  288. <tr>
  289. <td class="memname">#define LCD_ENTRY&#160;&#160;&#160;0x04</td>
  290. </tr>
  291. </table>
  292. </div><div class="memdoc">
  293. </div>
  294. </div>
  295. <a class="anchor" id="a58e84458e964afcac51877bd13e7703f"></a>
  296. <div class="memitem">
  297. <div class="memproto">
  298. <table class="memname">
  299. <tr>
  300. <td class="memname">#define LCD_ENTRY_ID&#160;&#160;&#160;0x02</td>
  301. </tr>
  302. </table>
  303. </div><div class="memdoc">
  304. </div>
  305. </div>
  306. <a class="anchor" id="aff5b4fcb87ea2eef9bb3af0234b14f53"></a>
  307. <div class="memitem">
  308. <div class="memproto">
  309. <table class="memname">
  310. <tr>
  311. <td class="memname">#define LCD_ENTRY_SH&#160;&#160;&#160;0x01</td>
  312. </tr>
  313. </table>
  314. </div><div class="memdoc">
  315. </div>
  316. </div>
  317. <a class="anchor" id="a387bfe42ea7284ba0f154f00df579cad"></a>
  318. <div class="memitem">
  319. <div class="memproto">
  320. <table class="memname">
  321. <tr>
  322. <td class="memname">#define LCD_FUNC&#160;&#160;&#160;0x20</td>
  323. </tr>
  324. </table>
  325. </div><div class="memdoc">
  326. </div>
  327. </div>
  328. <a class="anchor" id="ae4b9a3bcb0dc315afc03412237c5a3ea"></a>
  329. <div class="memitem">
  330. <div class="memproto">
  331. <table class="memname">
  332. <tr>
  333. <td class="memname">#define LCD_FUNC_DL&#160;&#160;&#160;0x10</td>
  334. </tr>
  335. </table>
  336. </div><div class="memdoc">
  337. </div>
  338. </div>
  339. <a class="anchor" id="a5ea7976aa137e8d043d3dfab474cf0b4"></a>
  340. <div class="memitem">
  341. <div class="memproto">
  342. <table class="memname">
  343. <tr>
  344. <td class="memname">#define LCD_FUNC_F&#160;&#160;&#160;0x04</td>
  345. </tr>
  346. </table>
  347. </div><div class="memdoc">
  348. </div>
  349. </div>
  350. <a class="anchor" id="a0741cad05d62ff28d92a05ea11aa6fdc"></a>
  351. <div class="memitem">
  352. <div class="memproto">
  353. <table class="memname">
  354. <tr>
  355. <td class="memname">#define LCD_FUNC_N&#160;&#160;&#160;0x08</td>
  356. </tr>
  357. </table>
  358. </div><div class="memdoc">
  359. </div>
  360. </div>
  361. <a class="anchor" id="ae0e309ccad89222eb3457f2da9f2bb8d"></a>
  362. <div class="memitem">
  363. <div class="memproto">
  364. <table class="memname">
  365. <tr>
  366. <td class="memname">#define LCD_HOME&#160;&#160;&#160;0x02</td>
  367. </tr>
  368. </table>
  369. </div><div class="memdoc">
  370. </div>
  371. </div>
  372. <a class="anchor" id="aa8cecfc5c5c054d2875c03e77b7be15d"></a>
  373. <div class="memitem">
  374. <div class="memproto">
  375. <table class="memname">
  376. <tr>
  377. <td class="memname">#define TRUE&#160;&#160;&#160;(1==1)</td>
  378. </tr>
  379. </table>
  380. </div><div class="memdoc">
  381. </div>
  382. </div>
  383. <h2 class="groupheader">Function Documentation</h2>
  384. <a class="anchor" id="a74d902393394e4d3cebdcf0d81bbaeeb"></a>
  385. <div class="memitem">
  386. <div class="memproto">
  387. <table class="memname">
  388. <tr>
  389. <td class="memname">void lcdCharDef </td>
  390. <td>(</td>
  391. <td class="paramtype">const int&#160;</td>
  392. <td class="paramname"><em>fd</em>, </td>
  393. </tr>
  394. <tr>
  395. <td class="paramkey"></td>
  396. <td></td>
  397. <td class="paramtype">int&#160;</td>
  398. <td class="paramname"><em>index</em>, </td>
  399. </tr>
  400. <tr>
  401. <td class="paramkey"></td>
  402. <td></td>
  403. <td class="paramtype">unsigned char&#160;</td>
  404. <td class="paramname"><em>data</em>[8]&#160;</td>
  405. </tr>
  406. <tr>
  407. <td></td>
  408. <td>)</td>
  409. <td></td><td></td>
  410. </tr>
  411. </table>
  412. </div><div class="memdoc">
  413. </div>
  414. </div>
  415. <a class="anchor" id="ae1b4dfd9571742b5ca0aba92882b57a6"></a>
  416. <div class="memitem">
  417. <div class="memproto">
  418. <table class="memname">
  419. <tr>
  420. <td class="memname">void lcdClear </td>
  421. <td>(</td>
  422. <td class="paramtype">const int&#160;</td>
  423. <td class="paramname"><em>fd</em></td><td>)</td>
  424. <td></td>
  425. </tr>
  426. </table>
  427. </div><div class="memdoc">
  428. </div>
  429. </div>
  430. <a class="anchor" id="a8aa13c894973d52eeed51d10bf869df2"></a>
  431. <div class="memitem">
  432. <div class="memproto">
  433. <table class="memname">
  434. <tr>
  435. <td class="memname">void lcdCursor </td>
  436. <td>(</td>
  437. <td class="paramtype">const int&#160;</td>
  438. <td class="paramname"><em>fd</em>, </td>
  439. </tr>
  440. <tr>
  441. <td class="paramkey"></td>
  442. <td></td>
  443. <td class="paramtype">int&#160;</td>
  444. <td class="paramname"><em>state</em>&#160;</td>
  445. </tr>
  446. <tr>
  447. <td></td>
  448. <td>)</td>
  449. <td></td><td></td>
  450. </tr>
  451. </table>
  452. </div><div class="memdoc">
  453. </div>
  454. </div>
  455. <a class="anchor" id="af39d67df7e36291184f69691bb97285b"></a>
  456. <div class="memitem">
  457. <div class="memproto">
  458. <table class="memname">
  459. <tr>
  460. <td class="memname">void lcdCursorBlink </td>
  461. <td>(</td>
  462. <td class="paramtype">const int&#160;</td>
  463. <td class="paramname"><em>fd</em>, </td>
  464. </tr>
  465. <tr>
  466. <td class="paramkey"></td>
  467. <td></td>
  468. <td class="paramtype">int&#160;</td>
  469. <td class="paramname"><em>state</em>&#160;</td>
  470. </tr>
  471. <tr>
  472. <td></td>
  473. <td>)</td>
  474. <td></td><td></td>
  475. </tr>
  476. </table>
  477. </div><div class="memdoc">
  478. </div>
  479. </div>
  480. <a class="anchor" id="af08385cd21eea125d63d6919ecfbea4a"></a>
  481. <div class="memitem">
  482. <div class="memproto">
  483. <table class="memname">
  484. <tr>
  485. <td class="memname">void lcdDisplay </td>
  486. <td>(</td>
  487. <td class="paramtype">const int&#160;</td>
  488. <td class="paramname"><em>fd</em>, </td>
  489. </tr>
  490. <tr>
  491. <td class="paramkey"></td>
  492. <td></td>
  493. <td class="paramtype">int&#160;</td>
  494. <td class="paramname"><em>state</em>&#160;</td>
  495. </tr>
  496. <tr>
  497. <td></td>
  498. <td>)</td>
  499. <td></td><td></td>
  500. </tr>
  501. </table>
  502. </div><div class="memdoc">
  503. </div>
  504. </div>
  505. <a class="anchor" id="a688913764edb3a241c26da5e51d70ac2"></a>
  506. <div class="memitem">
  507. <div class="memproto">
  508. <table class="memname">
  509. <tr>
  510. <td class="memname">void lcdHome </td>
  511. <td>(</td>
  512. <td class="paramtype">const int&#160;</td>
  513. <td class="paramname"><em>fd</em></td><td>)</td>
  514. <td></td>
  515. </tr>
  516. </table>
  517. </div><div class="memdoc">
  518. </div>
  519. </div>
  520. <a class="anchor" id="a88d70347308e92cb29eb45b505cad39e"></a>
  521. <div class="memitem">
  522. <div class="memproto">
  523. <table class="memname">
  524. <tr>
  525. <td class="memname">int lcdInit </td>
  526. <td>(</td>
  527. <td class="paramtype">void&#160;</td>
  528. <td class="paramname"></td><td>)</td>
  529. <td></td>
  530. </tr>
  531. </table>
  532. </div><div class="memdoc">
  533. </div>
  534. </div>
  535. <a class="anchor" id="a47f05b4cef2cf066cf1cbb1beb7ceb31"></a>
  536. <div class="memitem">
  537. <div class="memproto">
  538. <table class="memname">
  539. <tr>
  540. <td class="memname">int lcdInitI </td>
  541. <td>(</td>
  542. <td class="paramtype">const int&#160;</td>
  543. <td class="paramname"><em>rows</em>, </td>
  544. </tr>
  545. <tr>
  546. <td class="paramkey"></td>
  547. <td></td>
  548. <td class="paramtype">const int&#160;</td>
  549. <td class="paramname"><em>cols</em>, </td>
  550. </tr>
  551. <tr>
  552. <td class="paramkey"></td>
  553. <td></td>
  554. <td class="paramtype">const int&#160;</td>
  555. <td class="paramname"><em>bits</em>, </td>
  556. </tr>
  557. <tr>
  558. <td class="paramkey"></td>
  559. <td></td>
  560. <td class="paramtype">const int&#160;</td>
  561. <td class="paramname"><em>rs</em>, </td>
  562. </tr>
  563. <tr>
  564. <td class="paramkey"></td>
  565. <td></td>
  566. <td class="paramtype">const int&#160;</td>
  567. <td class="paramname"><em>strb</em>&#160;</td>
  568. </tr>
  569. <tr>
  570. <td></td>
  571. <td>)</td>
  572. <td></td><td></td>
  573. </tr>
  574. </table>
  575. </div><div class="memdoc">
  576. </div>
  577. </div>
  578. <a class="anchor" id="a5d09137f6373e95a692c4b3403729254"></a>
  579. <div class="memitem">
  580. <div class="memproto">
  581. <table class="memname">
  582. <tr>
  583. <td class="memname">void lcdPosition </td>
  584. <td>(</td>
  585. <td class="paramtype">const int&#160;</td>
  586. <td class="paramname"><em>fd</em>, </td>
  587. </tr>
  588. <tr>
  589. <td class="paramkey"></td>
  590. <td></td>
  591. <td class="paramtype">int&#160;</td>
  592. <td class="paramname"><em>x</em>, </td>
  593. </tr>
  594. <tr>
  595. <td class="paramkey"></td>
  596. <td></td>
  597. <td class="paramtype">int&#160;</td>
  598. <td class="paramname"><em>y</em>&#160;</td>
  599. </tr>
  600. <tr>
  601. <td></td>
  602. <td>)</td>
  603. <td></td><td></td>
  604. </tr>
  605. </table>
  606. </div><div class="memdoc">
  607. </div>
  608. </div>
  609. <a class="anchor" id="a49c322ad29410ea292f8d976baf6deb9"></a>
  610. <div class="memitem">
  611. <div class="memproto">
  612. <table class="memname">
  613. <tr>
  614. <td class="memname">void lcdPrintf </td>
  615. <td>(</td>
  616. <td class="paramtype">const int&#160;</td>
  617. <td class="paramname"><em>fd</em>, </td>
  618. </tr>
  619. <tr>
  620. <td class="paramkey"></td>
  621. <td></td>
  622. <td class="paramtype">const char *&#160;</td>
  623. <td class="paramname"><em>message</em>, </td>
  624. </tr>
  625. <tr>
  626. <td class="paramkey"></td>
  627. <td></td>
  628. <td class="paramtype">&#160;</td>
  629. <td class="paramname"><em>...</em>&#160;</td>
  630. </tr>
  631. <tr>
  632. <td></td>
  633. <td>)</td>
  634. <td></td><td></td>
  635. </tr>
  636. </table>
  637. </div><div class="memdoc">
  638. </div>
  639. </div>
  640. <a class="anchor" id="a21c60441ee22710add0c9bda1310ed66"></a>
  641. <div class="memitem">
  642. <div class="memproto">
  643. <table class="memname">
  644. <tr>
  645. <td class="memname">void lcdPutchar </td>
  646. <td>(</td>
  647. <td class="paramtype">const int&#160;</td>
  648. <td class="paramname"><em>fd</em>, </td>
  649. </tr>
  650. <tr>
  651. <td class="paramkey"></td>
  652. <td></td>
  653. <td class="paramtype">unsigned char&#160;</td>
  654. <td class="paramname"><em>data</em>&#160;</td>
  655. </tr>
  656. <tr>
  657. <td></td>
  658. <td>)</td>
  659. <td></td><td></td>
  660. </tr>
  661. </table>
  662. </div><div class="memdoc">
  663. </div>
  664. </div>
  665. <a class="anchor" id="a805efc4a96cca29544672151a9594c20"></a>
  666. <div class="memitem">
  667. <div class="memproto">
  668. <table class="memname">
  669. <tr>
  670. <td class="memname">void lcdPuts </td>
  671. <td>(</td>
  672. <td class="paramtype">const int&#160;</td>
  673. <td class="paramname"><em>fd</em>, </td>
  674. </tr>
  675. <tr>
  676. <td class="paramkey"></td>
  677. <td></td>
  678. <td class="paramtype">const char *&#160;</td>
  679. <td class="paramname"><em>string</em>&#160;</td>
  680. </tr>
  681. <tr>
  682. <td></td>
  683. <td>)</td>
  684. <td></td><td></td>
  685. </tr>
  686. </table>
  687. </div><div class="memdoc">
  688. </div>
  689. </div>
  690. <a class="anchor" id="abb6341df42d0e652db66e51fbf0ba486"></a>
  691. <div class="memitem">
  692. <div class="memproto">
  693. <table class="memname">
  694. <tr>
  695. <td class="memname">void lcdSendCommand </td>
  696. <td>(</td>
  697. <td class="paramtype">const int&#160;</td>
  698. <td class="paramname"><em>fd</em>, </td>
  699. </tr>
  700. <tr>
  701. <td class="paramkey"></td>
  702. <td></td>
  703. <td class="paramtype">unsigned char&#160;</td>
  704. <td class="paramname"><em>command</em>&#160;</td>
  705. </tr>
  706. <tr>
  707. <td></td>
  708. <td>)</td>
  709. <td></td><td></td>
  710. </tr>
  711. </table>
  712. </div><div class="memdoc">
  713. </div>
  714. </div>
  715. <h2 class="groupheader">Variable Documentation</h2>
  716. <a class="anchor" id="a6e3994c5175d8609dee2cc8d3bcd66e9"></a>
  717. <div class="memitem">
  718. <div class="memproto">
  719. <table class="memname">
  720. <tr>
  721. <td class="memname">struct lcdDataStruct* lcds[<a class="el" href="lcd_8h.html#a6bfe3f4a880b075a72d2a8318bd10f8e">MAX_LCDS</a>]</td>
  722. </tr>
  723. </table>
  724. </div><div class="memdoc">
  725. </div>
  726. </div>
  727. </div><!-- contents -->
  728. <!-- start footer part -->
  729. <hr class="footer"/><address class="footer"><small>
  730. Generated by &#160;<a href="http://www.doxygen.org/index.html">
  731. <img class="footer" src="doxygen.png" alt="doxygen"/>
  732. </a> 1.8.10
  733. </small></address>
  734. </body>
  735. </html>