display_8cpp.html 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503
  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: display.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="#func-members">Functions</a> &#124;
  84. <a href="#var-members">Variables</a> </div>
  85. <div class="headertitle">
  86. <div class="title">display.cpp File Reference</div> </div>
  87. </div><!--header-->
  88. <div class="contents">
  89. <div class="textblock"><code>#include &lt;stdlib.h&gt;</code><br />
  90. <code>#include &lt;pthread.h&gt;</code><br />
  91. <code>#include &lt;time.h&gt;</code><br />
  92. <code>#include &lt;unistd.h&gt;</code><br />
  93. <code>#include &lt;string.h&gt;</code><br />
  94. <code>#include &quot;<a class="el" href="global_8h_source.html">global.h</a>&quot;</code><br />
  95. <code>#include &quot;<a class="el" href="display_8h_source.html">display.h</a>&quot;</code><br />
  96. <code>#include &quot;<a class="el" href="logger_8h_source.html">logger.h</a>&quot;</code><br />
  97. <code>#include &quot;<a class="el" href="database_8h_source.html">database.h</a>&quot;</code><br />
  98. <code>#include &quot;<a class="el" href="timer_8h_source.html">timer.h</a>&quot;</code><br />
  99. <code>#include &quot;<a class="el" href="lcd_8h_source.html">lcd.h</a>&quot;</code><br />
  100. <code>#include &quot;<a class="el" href="coffee_8h_source.html">coffee.h</a>&quot;</code><br />
  101. <code>#include &quot;<a class="el" href="hal_8h_source.html">hal.h</a>&quot;</code><br />
  102. </div><table class="memberdecls">
  103. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
  104. Functions</h2></td></tr>
  105. <tr class="memitem:aad3b4a291f0ad570bb1035a133ec46aa"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="display_8cpp.html#aad3b4a291f0ad570bb1035a133ec46aa">displayPrintTime</a> (int line)</td></tr>
  106. <tr class="memdesc:aad3b4a291f0ad570bb1035a133ec46aa"><td class="mdescLeft">&#160;</td><td class="mdescRight">Prints out the current time in a centered position. <a href="#aad3b4a291f0ad570bb1035a133ec46aa">More...</a><br /></td></tr>
  107. <tr class="separator:aad3b4a291f0ad570bb1035a133ec46aa"><td class="memSeparator" colspan="2">&#160;</td></tr>
  108. <tr class="memitem:ae552c34299838e4f57e3516553ed566f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="display_8cpp.html#ae552c34299838e4f57e3516553ed566f">displayPrintFlow</a> (int line)</td></tr>
  109. <tr class="memdesc:ae552c34299838e4f57e3516553ed566f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Prints out the total volume flow. <a href="#ae552c34299838e4f57e3516553ed566f">More...</a><br /></td></tr>
  110. <tr class="separator:ae552c34299838e4f57e3516553ed566f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  111. <tr class="memitem:a2e4f853ea431989d2adc2aeb7a8e46b5"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="display_8cpp.html#a2e4f853ea431989d2adc2aeb7a8e46b5">displayPrintLn</a> (int line, const char *str, bool centered)</td></tr>
  112. <tr class="memdesc:a2e4f853ea431989d2adc2aeb7a8e46b5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Prints a string to a specific line, optionally centered. <a href="#a2e4f853ea431989d2adc2aeb7a8e46b5">More...</a><br /></td></tr>
  113. <tr class="separator:a2e4f853ea431989d2adc2aeb7a8e46b5"><td class="memSeparator" colspan="2">&#160;</td></tr>
  114. <tr class="memitem:ab2db422e214d76776b8a375787d1384c"><td class="memItemLeft" align="right" valign="top">void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="display_8cpp.html#ab2db422e214d76776b8a375787d1384c">displayThread</a> (void *threadid)</td></tr>
  115. <tr class="memdesc:ab2db422e214d76776b8a375787d1384c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Main thread to handle display data. <a href="#ab2db422e214d76776b8a375787d1384c">More...</a><br /></td></tr>
  116. <tr class="separator:ab2db422e214d76776b8a375787d1384c"><td class="memSeparator" colspan="2">&#160;</td></tr>
  117. <tr class="memitem:ab5eb6b80aca0f751332c47c410d06a2a"><td class="memItemLeft" align="right" valign="top">void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="display_8cpp.html#ab5eb6b80aca0f751332c47c410d06a2a">displayTimerHandler</a> (void *threadid)</td></tr>
  118. <tr class="memdesc:ab5eb6b80aca0f751332c47c410d06a2a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Timer handler for display update. <a href="#ab5eb6b80aca0f751332c47c410d06a2a">More...</a><br /></td></tr>
  119. <tr class="separator:ab5eb6b80aca0f751332c47c410d06a2a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  120. <tr class="memitem:a8c548751802c5960b3092be28cc56d9f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="display_8cpp.html#a8c548751802c5960b3092be28cc56d9f">displayInit</a> (void)</td></tr>
  121. <tr class="memdesc:a8c548751802c5960b3092be28cc56d9f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes display. <a href="#a8c548751802c5960b3092be28cc56d9f">More...</a><br /></td></tr>
  122. <tr class="separator:a8c548751802c5960b3092be28cc56d9f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  123. <tr class="memitem:abfd367c63541be192cdc63d6e8b38a79"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="display_8cpp.html#abfd367c63541be192cdc63d6e8b38a79">displayTerminate</a> (void)</td></tr>
  124. <tr class="memdesc:abfd367c63541be192cdc63d6e8b38a79"><td class="mdescLeft">&#160;</td><td class="mdescRight">Handles cleanup before program termination. <a href="#abfd367c63541be192cdc63d6e8b38a79">More...</a><br /></td></tr>
  125. <tr class="separator:abfd367c63541be192cdc63d6e8b38a79"><td class="memSeparator" colspan="2">&#160;</td></tr>
  126. <tr class="memitem:a9b10d2d49414256ef745f7e910748fee"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="display_8cpp.html#a9b10d2d49414256ef745f7e910748fee">displaySetLang</a> (<a class="el" href="display_8h.html#a681b0c0e7b9408f4c70f8e76da34d080">display_lang_t</a> lang)</td></tr>
  127. <tr class="memdesc:a9b10d2d49414256ef745f7e910748fee"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the language of the display text. <a href="#a9b10d2d49414256ef745f7e910748fee">More...</a><br /></td></tr>
  128. <tr class="separator:a9b10d2d49414256ef745f7e910748fee"><td class="memSeparator" colspan="2">&#160;</td></tr>
  129. <tr class="memitem:ac750de2337343c08e5fd88d08316adb2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="display_8cpp.html#ac750de2337343c08e5fd88d08316adb2">displayRefresh</a> (void)</td></tr>
  130. <tr class="memdesc:ac750de2337343c08e5fd88d08316adb2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Refreshed the display content and outputs it. <a href="#ac750de2337343c08e5fd88d08316adb2">More...</a><br /></td></tr>
  131. <tr class="separator:ac750de2337343c08e5fd88d08316adb2"><td class="memSeparator" colspan="2">&#160;</td></tr>
  132. <tr class="memitem:ab2661cdbd686f7d3389a3d9c2cf98f47"><td class="memItemLeft" align="right" valign="top">const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="display_8cpp.html#ab2661cdbd686f7d3389a3d9c2cf98f47">displayGetString</a> (<a class="el" href="display_8h.html#a4984755f821d9f0c49acdcac62f4c907">display_strings_t</a> string)</td></tr>
  133. <tr class="memdesc:ab2661cdbd686f7d3389a3d9c2cf98f47"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the matching translation of a string. <a href="#ab2661cdbd686f7d3389a3d9c2cf98f47">More...</a><br /></td></tr>
  134. <tr class="separator:ab2661cdbd686f7d3389a3d9c2cf98f47"><td class="memSeparator" colspan="2">&#160;</td></tr>
  135. <tr class="memitem:adf85c9537e38ffe3f1ee356a4638880e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="display_8cpp.html#adf85c9537e38ffe3f1ee356a4638880e">displayPushState</a> (int <a class="el" href="coffee_8cpp.html#a89f234133d3efe315836311cbf21c64b">state</a>)</td></tr>
  136. <tr class="memdesc:adf85c9537e38ffe3f1ee356a4638880e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Updates the display state to the matching coffee state. <a href="#adf85c9537e38ffe3f1ee356a4638880e">More...</a><br /></td></tr>
  137. <tr class="separator:adf85c9537e38ffe3f1ee356a4638880e"><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="var-members"></a>
  140. Variables</h2></td></tr>
  141. <tr class="memitem:ae110c5cc57190b02aaa0d543a80cdc20"><td class="memItemLeft" align="right" valign="top"><a class="el" href="display_8h.html#a681b0c0e7b9408f4c70f8e76da34d080">display_lang_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="display_8cpp.html#ae110c5cc57190b02aaa0d543a80cdc20">displayLang</a></td></tr>
  142. <tr class="separator:ae110c5cc57190b02aaa0d543a80cdc20"><td class="memSeparator" colspan="2">&#160;</td></tr>
  143. <tr class="memitem:afebf5c16da7043af9cbd74ef9f489ea7"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classtimer.html">timer</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="display_8cpp.html#afebf5c16da7043af9cbd74ef9f489ea7">displayTimer</a> (<a class="el" href="display_8h.html#ab5eb6b80aca0f751332c47c410d06a2a">displayTimerHandler</a>)</td></tr>
  144. <tr class="separator:afebf5c16da7043af9cbd74ef9f489ea7"><td class="memSeparator" colspan="2">&#160;</td></tr>
  145. <tr class="memitem:a9d1129916cfa4cbd7489638ce470c3a4"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="display_8cpp.html#a9d1129916cfa4cbd7489638ce470c3a4">lcd</a> = 0</td></tr>
  146. <tr class="separator:a9d1129916cfa4cbd7489638ce470c3a4"><td class="memSeparator" colspan="2">&#160;</td></tr>
  147. <tr class="memitem:adf977b563dc485f1d1c4e601a9b31b68"><td class="memItemLeft" align="right" valign="top">volatile int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="display_8cpp.html#adf977b563dc485f1d1c4e601a9b31b68">timerScaler</a> = 0</td></tr>
  148. <tr class="separator:adf977b563dc485f1d1c4e601a9b31b68"><td class="memSeparator" colspan="2">&#160;</td></tr>
  149. <tr class="memitem:a01cd2b69770b3c4cd7adc6e27d48c28a"><td class="memItemLeft" align="right" valign="top">volatile int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="display_8cpp.html#a01cd2b69770b3c4cd7adc6e27d48c28a">elapsedCnt</a> = 0</td></tr>
  150. <tr class="separator:a01cd2b69770b3c4cd7adc6e27d48c28a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  151. <tr class="memitem:a8f3437c133bc4d1be650cbbc5128f1a8"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="display_8cpp.html#a8f3437c133bc4d1be650cbbc5128f1a8">coffeeState</a> = <a class="el" href="coffee_8h.html#a0cc0d45e13bc83065d45df9d3d1dc887">STATE_OFF</a></td></tr>
  152. <tr class="separator:a8f3437c133bc4d1be650cbbc5128f1a8"><td class="memSeparator" colspan="2">&#160;</td></tr>
  153. </table>
  154. <h2 class="groupheader">Function Documentation</h2>
  155. <a class="anchor" id="ab2661cdbd686f7d3389a3d9c2cf98f47"></a>
  156. <div class="memitem">
  157. <div class="memproto">
  158. <table class="memname">
  159. <tr>
  160. <td class="memname">const char* displayGetString </td>
  161. <td>(</td>
  162. <td class="paramtype"><a class="el" href="display_8h.html#a4984755f821d9f0c49acdcac62f4c907">display_strings_t</a>&#160;</td>
  163. <td class="paramname"><em>string</em></td><td>)</td>
  164. <td></td>
  165. </tr>
  166. </table>
  167. </div><div class="memdoc">
  168. <p>Returns the matching translation of a string. </p>
  169. <dl class="params"><dt>Parameters</dt><dd>
  170. <table class="params">
  171. <tr><td class="paramname">string</td><td>Requested string </td></tr>
  172. </table>
  173. </dd>
  174. </dl>
  175. <dl class="section return"><dt>Returns</dt><dd>Translated string </dd></dl>
  176. </div>
  177. </div>
  178. <a class="anchor" id="a8c548751802c5960b3092be28cc56d9f"></a>
  179. <div class="memitem">
  180. <div class="memproto">
  181. <table class="memname">
  182. <tr>
  183. <td class="memname">void displayInit </td>
  184. <td>(</td>
  185. <td class="paramtype">void&#160;</td>
  186. <td class="paramname"></td><td>)</td>
  187. <td></td>
  188. </tr>
  189. </table>
  190. </div><div class="memdoc">
  191. <p>Initializes display. </p>
  192. </div>
  193. </div>
  194. <a class="anchor" id="ae552c34299838e4f57e3516553ed566f"></a>
  195. <div class="memitem">
  196. <div class="memproto">
  197. <table class="memname">
  198. <tr>
  199. <td class="memname">void displayPrintFlow </td>
  200. <td>(</td>
  201. <td class="paramtype">int&#160;</td>
  202. <td class="paramname"><em>line</em></td><td>)</td>
  203. <td></td>
  204. </tr>
  205. </table>
  206. </div><div class="memdoc">
  207. <p>Prints out the total volume flow. </p>
  208. <dl class="params"><dt>Parameters</dt><dd>
  209. <table class="params">
  210. <tr><td class="paramname">line</td><td>Target line in display </td></tr>
  211. </table>
  212. </dd>
  213. </dl>
  214. </div>
  215. </div>
  216. <a class="anchor" id="a2e4f853ea431989d2adc2aeb7a8e46b5"></a>
  217. <div class="memitem">
  218. <div class="memproto">
  219. <table class="memname">
  220. <tr>
  221. <td class="memname">void displayPrintLn </td>
  222. <td>(</td>
  223. <td class="paramtype">int&#160;</td>
  224. <td class="paramname"><em>line</em>, </td>
  225. </tr>
  226. <tr>
  227. <td class="paramkey"></td>
  228. <td></td>
  229. <td class="paramtype">const char *&#160;</td>
  230. <td class="paramname"><em>str</em>, </td>
  231. </tr>
  232. <tr>
  233. <td class="paramkey"></td>
  234. <td></td>
  235. <td class="paramtype">bool&#160;</td>
  236. <td class="paramname"><em>centered</em>&#160;</td>
  237. </tr>
  238. <tr>
  239. <td></td>
  240. <td>)</td>
  241. <td></td><td></td>
  242. </tr>
  243. </table>
  244. </div><div class="memdoc">
  245. <p>Prints a string to a specific line, optionally centered. </p>
  246. <p>This function also fills out the remaining row of the display with spaces, to ensure there is no old data left. </p><dl class="params"><dt>Parameters</dt><dd>
  247. <table class="params">
  248. <tr><td class="paramname">line</td><td>Target line in display </td></tr>
  249. <tr><td class="paramname">*str</td><td>String to print </td></tr>
  250. <tr><td class="paramname">centered</td><td>Print centered or not </td></tr>
  251. </table>
  252. </dd>
  253. </dl>
  254. </div>
  255. </div>
  256. <a class="anchor" id="aad3b4a291f0ad570bb1035a133ec46aa"></a>
  257. <div class="memitem">
  258. <div class="memproto">
  259. <table class="memname">
  260. <tr>
  261. <td class="memname">void displayPrintTime </td>
  262. <td>(</td>
  263. <td class="paramtype">int&#160;</td>
  264. <td class="paramname"><em>line</em></td><td>)</td>
  265. <td></td>
  266. </tr>
  267. </table>
  268. </div><div class="memdoc">
  269. <p>Prints out the current time in a centered position. </p>
  270. <dl class="params"><dt>Parameters</dt><dd>
  271. <table class="params">
  272. <tr><td class="paramname">line</td><td>Target line in display </td></tr>
  273. </table>
  274. </dd>
  275. </dl>
  276. </div>
  277. </div>
  278. <a class="anchor" id="adf85c9537e38ffe3f1ee356a4638880e"></a>
  279. <div class="memitem">
  280. <div class="memproto">
  281. <table class="memname">
  282. <tr>
  283. <td class="memname">void displayPushState </td>
  284. <td>(</td>
  285. <td class="paramtype">int&#160;</td>
  286. <td class="paramname"><em>state</em></td><td>)</td>
  287. <td></td>
  288. </tr>
  289. </table>
  290. </div><div class="memdoc">
  291. <p>Updates the display state to the matching coffee state. </p>
  292. <dl class="params"><dt>Parameters</dt><dd>
  293. <table class="params">
  294. <tr><td class="paramname">state</td><td>New state </td></tr>
  295. </table>
  296. </dd>
  297. </dl>
  298. </div>
  299. </div>
  300. <a class="anchor" id="ac750de2337343c08e5fd88d08316adb2"></a>
  301. <div class="memitem">
  302. <div class="memproto">
  303. <table class="memname">
  304. <tr>
  305. <td class="memname">void displayRefresh </td>
  306. <td>(</td>
  307. <td class="paramtype">void&#160;</td>
  308. <td class="paramname"></td><td>)</td>
  309. <td></td>
  310. </tr>
  311. </table>
  312. </div><div class="memdoc">
  313. <p>Refreshed the display content and outputs it. </p>
  314. </div>
  315. </div>
  316. <a class="anchor" id="a9b10d2d49414256ef745f7e910748fee"></a>
  317. <div class="memitem">
  318. <div class="memproto">
  319. <table class="memname">
  320. <tr>
  321. <td class="memname">void displaySetLang </td>
  322. <td>(</td>
  323. <td class="paramtype"><a class="el" href="display_8h.html#a681b0c0e7b9408f4c70f8e76da34d080">display_lang_t</a>&#160;</td>
  324. <td class="paramname"><em>lang</em></td><td>)</td>
  325. <td></td>
  326. </tr>
  327. </table>
  328. </div><div class="memdoc">
  329. <p>Sets the language of the display text. </p>
  330. <dl class="params"><dt>Parameters</dt><dd>
  331. <table class="params">
  332. <tr><td class="paramname">lang</td><td>New language </td></tr>
  333. </table>
  334. </dd>
  335. </dl>
  336. </div>
  337. </div>
  338. <a class="anchor" id="abfd367c63541be192cdc63d6e8b38a79"></a>
  339. <div class="memitem">
  340. <div class="memproto">
  341. <table class="memname">
  342. <tr>
  343. <td class="memname">void displayTerminate </td>
  344. <td>(</td>
  345. <td class="paramtype">void&#160;</td>
  346. <td class="paramname"></td><td>)</td>
  347. <td></td>
  348. </tr>
  349. </table>
  350. </div><div class="memdoc">
  351. <p>Handles cleanup before program termination. </p>
  352. </div>
  353. </div>
  354. <a class="anchor" id="ab2db422e214d76776b8a375787d1384c"></a>
  355. <div class="memitem">
  356. <div class="memproto">
  357. <table class="memname">
  358. <tr>
  359. <td class="memname">void* displayThread </td>
  360. <td>(</td>
  361. <td class="paramtype">void *&#160;</td>
  362. <td class="paramname"><em>threadid</em></td><td>)</td>
  363. <td></td>
  364. </tr>
  365. </table>
  366. </div><div class="memdoc">
  367. <p>Main thread to handle display data. </p>
  368. <dl class="params"><dt>Parameters</dt><dd>
  369. <table class="params">
  370. <tr><td class="paramname">*threadid</td><td>Thread ID </td></tr>
  371. </table>
  372. </dd>
  373. </dl>
  374. </div>
  375. </div>
  376. <a class="anchor" id="ab5eb6b80aca0f751332c47c410d06a2a"></a>
  377. <div class="memitem">
  378. <div class="memproto">
  379. <table class="memname">
  380. <tr>
  381. <td class="memname">void* displayTimerHandler </td>
  382. <td>(</td>
  383. <td class="paramtype">void *&#160;</td>
  384. <td class="paramname"><em>threadid</em></td><td>)</td>
  385. <td></td>
  386. </tr>
  387. </table>
  388. </div><div class="memdoc">
  389. <p>Timer handler for display update. </p>
  390. <dl class="params"><dt>Parameters</dt><dd>
  391. <table class="params">
  392. <tr><td class="paramname">*threadid</td><td>Thread ID </td></tr>
  393. </table>
  394. </dd>
  395. </dl>
  396. </div>
  397. </div>
  398. <h2 class="groupheader">Variable Documentation</h2>
  399. <a class="anchor" id="a8f3437c133bc4d1be650cbbc5128f1a8"></a>
  400. <div class="memitem">
  401. <div class="memproto">
  402. <table class="memname">
  403. <tr>
  404. <td class="memname">int coffeeState = <a class="el" href="coffee_8h.html#a0cc0d45e13bc83065d45df9d3d1dc887">STATE_OFF</a></td>
  405. </tr>
  406. </table>
  407. </div><div class="memdoc">
  408. </div>
  409. </div>
  410. <a class="anchor" id="ae110c5cc57190b02aaa0d543a80cdc20"></a>
  411. <div class="memitem">
  412. <div class="memproto">
  413. <table class="memname">
  414. <tr>
  415. <td class="memname"><a class="el" href="display_8h.html#a681b0c0e7b9408f4c70f8e76da34d080">display_lang_t</a> displayLang</td>
  416. </tr>
  417. </table>
  418. </div><div class="memdoc">
  419. </div>
  420. </div>
  421. <a class="anchor" id="afebf5c16da7043af9cbd74ef9f489ea7"></a>
  422. <div class="memitem">
  423. <div class="memproto">
  424. <table class="memname">
  425. <tr>
  426. <td class="memname"><a class="el" href="classtimer.html">timer</a> displayTimer(<a class="el" href="display_8h.html#ab5eb6b80aca0f751332c47c410d06a2a">displayTimerHandler</a>)</td>
  427. </tr>
  428. </table>
  429. </div><div class="memdoc">
  430. </div>
  431. </div>
  432. <a class="anchor" id="a01cd2b69770b3c4cd7adc6e27d48c28a"></a>
  433. <div class="memitem">
  434. <div class="memproto">
  435. <table class="memname">
  436. <tr>
  437. <td class="memname">volatile int elapsedCnt = 0</td>
  438. </tr>
  439. </table>
  440. </div><div class="memdoc">
  441. </div>
  442. </div>
  443. <a class="anchor" id="a9d1129916cfa4cbd7489638ce470c3a4"></a>
  444. <div class="memitem">
  445. <div class="memproto">
  446. <table class="memname">
  447. <tr>
  448. <td class="memname">int lcd = 0</td>
  449. </tr>
  450. </table>
  451. </div><div class="memdoc">
  452. </div>
  453. </div>
  454. <a class="anchor" id="adf977b563dc485f1d1c4e601a9b31b68"></a>
  455. <div class="memitem">
  456. <div class="memproto">
  457. <table class="memname">
  458. <tr>
  459. <td class="memname">volatile int timerScaler = 0</td>
  460. </tr>
  461. </table>
  462. </div><div class="memdoc">
  463. </div>
  464. </div>
  465. </div><!-- contents -->
  466. <!-- start footer part -->
  467. <hr class="footer"/><address class="footer"><small>
  468. Generated by &#160;<a href="http://www.doxygen.org/index.html">
  469. <img class="footer" src="doxygen.png" alt="doxygen"/>
  470. </a> 1.8.10
  471. </small></address>
  472. </body>
  473. </html>