display_8h.html 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455
  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.h 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="#nested-classes">Data Structures</a> &#124;
  84. <a href="#define-members">Macros</a> &#124;
  85. <a href="#enum-members">Enumerations</a> &#124;
  86. <a href="#func-members">Functions</a> </div>
  87. <div class="headertitle">
  88. <div class="title">display.h File Reference</div> </div>
  89. </div><!--header-->
  90. <div class="contents">
  91. <div class="textblock"><code>#include &lt;string&gt;</code><br />
  92. </div>
  93. <p><a href="display_8h_source.html">Go to the source code of this file.</a></p>
  94. <table class="memberdecls">
  95. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
  96. Data Structures</h2></td></tr>
  97. <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structdisplay__string__t.html">display_string_t</a></td></tr>
  98. <tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
  99. </table><table class="memberdecls">
  100. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
  101. Macros</h2></td></tr>
  102. <tr class="memitem:aa0b13de112401f9608d402bfc5a14d0d"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="display_8h.html#aa0b13de112401f9608d402bfc5a14d0d">DEFAULT_LANG</a>&#160;&#160;&#160;<a class="el" href="display_8h.html#a681b0c0e7b9408f4c70f8e76da34d080ae89ac8a244131d461364a7638daf0a30">lang_de</a></td></tr>
  103. <tr class="memdesc:aa0b13de112401f9608d402bfc5a14d0d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Default display language. <a href="#aa0b13de112401f9608d402bfc5a14d0d">More...</a><br /></td></tr>
  104. <tr class="separator:aa0b13de112401f9608d402bfc5a14d0d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  105. <tr class="memitem:abc2b684fcc127e93aee54a3a45e25a7c"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="display_8h.html#abc2b684fcc127e93aee54a3a45e25a7c">REFRESH_RATE</a>&#160;&#160;&#160;10</td></tr>
  106. <tr class="memdesc:abc2b684fcc127e93aee54a3a45e25a7c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Display refresh rate in Hz. <a href="#abc2b684fcc127e93aee54a3a45e25a7c">More...</a><br /></td></tr>
  107. <tr class="separator:abc2b684fcc127e93aee54a3a45e25a7c"><td class="memSeparator" colspan="2">&#160;</td></tr>
  108. <tr class="memitem:abdc19d7f30976562c2d3efce365ef8f4"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="display_8h.html#abdc19d7f30976562c2d3efce365ef8f4">DISPLAY_ROWS</a>&#160;&#160;&#160;2</td></tr>
  109. <tr class="separator:abdc19d7f30976562c2d3efce365ef8f4"><td class="memSeparator" colspan="2">&#160;</td></tr>
  110. <tr class="memitem:ad01ecf7f4d29cece64f84d890e414570"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="display_8h.html#ad01ecf7f4d29cece64f84d890e414570">DISPLAY_COLS</a>&#160;&#160;&#160;16</td></tr>
  111. <tr class="separator:ad01ecf7f4d29cece64f84d890e414570"><td class="memSeparator" colspan="2">&#160;</td></tr>
  112. </table><table class="memberdecls">
  113. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
  114. Enumerations</h2></td></tr>
  115. <tr class="memitem:a681b0c0e7b9408f4c70f8e76da34d080"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="display_8h.html#a681b0c0e7b9408f4c70f8e76da34d080">display_lang_t</a> { <a class="el" href="display_8h.html#a681b0c0e7b9408f4c70f8e76da34d080ae89ac8a244131d461364a7638daf0a30">lang_de</a>,
  116. <a class="el" href="display_8h.html#a681b0c0e7b9408f4c70f8e76da34d080af59ab6af8bf5947a70c77afafccac15b">lang_en</a>,
  117. <a class="el" href="display_8h.html#a681b0c0e7b9408f4c70f8e76da34d080a8222fe4f6d1104084bbf5a691f4ce644">lang_last</a>
  118. }<tr class="separator:a681b0c0e7b9408f4c70f8e76da34d080"><td class="memSeparator" colspan="2">&#160;</td></tr>
  119. </td></tr>
  120. <tr class="memitem:a4984755f821d9f0c49acdcac62f4c907"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="display_8h.html#a4984755f821d9f0c49acdcac62f4c907">display_strings_t</a> { <br />
  121. &#160;&#160;<a class="el" href="display_8h.html#a4984755f821d9f0c49acdcac62f4c907a9eb4c3532bbada27013a4cff3dc8a624">str_heating</a>,
  122. <a class="el" href="display_8h.html#a4984755f821d9f0c49acdcac62f4c907a8aaa4383254e4327e846e45befac54d0">str_heatingready</a>,
  123. <a class="el" href="display_8h.html#a4984755f821d9f0c49acdcac62f4c907af200a74535586cc849fc6f5f38c85171">str_ready</a>,
  124. <a class="el" href="display_8h.html#a4984755f821d9f0c49acdcac62f4c907a8e3b0fbb0f42de5df8434e44e0b85272">str_brewing</a>,
  125. <br />
  126. &#160;&#160;<a class="el" href="display_8h.html#a4984755f821d9f0c49acdcac62f4c907a2bb69120919321c90fe0862abc8a247c">str_cleaning</a>,
  127. <a class="el" href="display_8h.html#a4984755f821d9f0c49acdcac62f4c907aeaed0d27362049f28692626f30566890">str_error</a>,
  128. <a class="el" href="display_8h.html#a4984755f821d9f0c49acdcac62f4c907aadf50a104ff26cf8b575c0b68e52a572">str_flow</a>,
  129. <a class="el" href="display_8h.html#a4984755f821d9f0c49acdcac62f4c907ab88ed9e2db4f34884981000ac617defb">str_bye</a>,
  130. <br />
  131. &#160;&#160;<a class="el" href="display_8h.html#a4984755f821d9f0c49acdcac62f4c907aa22549c4ff533e248b5fad404f80c6d9">str_last</a>
  132. <br />
  133. }<tr class="separator:a4984755f821d9f0c49acdcac62f4c907"><td class="memSeparator" colspan="2">&#160;</td></tr>
  134. </td></tr>
  135. </table><table class="memberdecls">
  136. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
  137. Functions</h2></td></tr>
  138. <tr class="memitem:ab2db422e214d76776b8a375787d1384c"><td class="memItemLeft" align="right" valign="top">void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="display_8h.html#ab2db422e214d76776b8a375787d1384c">displayThread</a> (void *threadid)</td></tr>
  139. <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>
  140. <tr class="separator:ab2db422e214d76776b8a375787d1384c"><td class="memSeparator" colspan="2">&#160;</td></tr>
  141. <tr class="memitem:ab5eb6b80aca0f751332c47c410d06a2a"><td class="memItemLeft" align="right" valign="top">void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="display_8h.html#ab5eb6b80aca0f751332c47c410d06a2a">displayTimerHandler</a> (void *threadid)</td></tr>
  142. <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>
  143. <tr class="separator:ab5eb6b80aca0f751332c47c410d06a2a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  144. <tr class="memitem:a8c548751802c5960b3092be28cc56d9f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="display_8h.html#a8c548751802c5960b3092be28cc56d9f">displayInit</a> (void)</td></tr>
  145. <tr class="memdesc:a8c548751802c5960b3092be28cc56d9f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes display. <a href="#a8c548751802c5960b3092be28cc56d9f">More...</a><br /></td></tr>
  146. <tr class="separator:a8c548751802c5960b3092be28cc56d9f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  147. <tr class="memitem:abfd367c63541be192cdc63d6e8b38a79"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="display_8h.html#abfd367c63541be192cdc63d6e8b38a79">displayTerminate</a> (void)</td></tr>
  148. <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>
  149. <tr class="separator:abfd367c63541be192cdc63d6e8b38a79"><td class="memSeparator" colspan="2">&#160;</td></tr>
  150. <tr class="memitem:a9b10d2d49414256ef745f7e910748fee"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="display_8h.html#a9b10d2d49414256ef745f7e910748fee">displaySetLang</a> (<a class="el" href="display_8h.html#a681b0c0e7b9408f4c70f8e76da34d080">display_lang_t</a> lang)</td></tr>
  151. <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>
  152. <tr class="separator:a9b10d2d49414256ef745f7e910748fee"><td class="memSeparator" colspan="2">&#160;</td></tr>
  153. <tr class="memitem:adf85c9537e38ffe3f1ee356a4638880e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="display_8h.html#adf85c9537e38ffe3f1ee356a4638880e">displayPushState</a> (int <a class="el" href="coffee_8cpp.html#a89f234133d3efe315836311cbf21c64b">state</a>)</td></tr>
  154. <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>
  155. <tr class="separator:adf85c9537e38ffe3f1ee356a4638880e"><td class="memSeparator" colspan="2">&#160;</td></tr>
  156. <tr class="memitem:ac750de2337343c08e5fd88d08316adb2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="display_8h.html#ac750de2337343c08e5fd88d08316adb2">displayRefresh</a> (void)</td></tr>
  157. <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>
  158. <tr class="separator:ac750de2337343c08e5fd88d08316adb2"><td class="memSeparator" colspan="2">&#160;</td></tr>
  159. <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_8h.html#ab2661cdbd686f7d3389a3d9c2cf98f47">displayGetString</a> (<a class="el" href="display_8h.html#a4984755f821d9f0c49acdcac62f4c907">display_strings_t</a> string)</td></tr>
  160. <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>
  161. <tr class="separator:ab2661cdbd686f7d3389a3d9c2cf98f47"><td class="memSeparator" colspan="2">&#160;</td></tr>
  162. </table>
  163. <h2 class="groupheader">Macro Definition Documentation</h2>
  164. <a class="anchor" id="aa0b13de112401f9608d402bfc5a14d0d"></a>
  165. <div class="memitem">
  166. <div class="memproto">
  167. <table class="memname">
  168. <tr>
  169. <td class="memname">#define DEFAULT_LANG&#160;&#160;&#160;<a class="el" href="display_8h.html#a681b0c0e7b9408f4c70f8e76da34d080ae89ac8a244131d461364a7638daf0a30">lang_de</a></td>
  170. </tr>
  171. </table>
  172. </div><div class="memdoc">
  173. <p>Default display language. </p>
  174. </div>
  175. </div>
  176. <a class="anchor" id="ad01ecf7f4d29cece64f84d890e414570"></a>
  177. <div class="memitem">
  178. <div class="memproto">
  179. <table class="memname">
  180. <tr>
  181. <td class="memname">#define DISPLAY_COLS&#160;&#160;&#160;16</td>
  182. </tr>
  183. </table>
  184. </div><div class="memdoc">
  185. </div>
  186. </div>
  187. <a class="anchor" id="abdc19d7f30976562c2d3efce365ef8f4"></a>
  188. <div class="memitem">
  189. <div class="memproto">
  190. <table class="memname">
  191. <tr>
  192. <td class="memname">#define DISPLAY_ROWS&#160;&#160;&#160;2</td>
  193. </tr>
  194. </table>
  195. </div><div class="memdoc">
  196. </div>
  197. </div>
  198. <a class="anchor" id="abc2b684fcc127e93aee54a3a45e25a7c"></a>
  199. <div class="memitem">
  200. <div class="memproto">
  201. <table class="memname">
  202. <tr>
  203. <td class="memname">#define REFRESH_RATE&#160;&#160;&#160;10</td>
  204. </tr>
  205. </table>
  206. </div><div class="memdoc">
  207. <p>Display refresh rate in Hz. </p>
  208. </div>
  209. </div>
  210. <h2 class="groupheader">Enumeration Type Documentation</h2>
  211. <a class="anchor" id="a681b0c0e7b9408f4c70f8e76da34d080"></a>
  212. <div class="memitem">
  213. <div class="memproto">
  214. <table class="memname">
  215. <tr>
  216. <td class="memname">enum <a class="el" href="display_8h.html#a681b0c0e7b9408f4c70f8e76da34d080">display_lang_t</a></td>
  217. </tr>
  218. </table>
  219. </div><div class="memdoc">
  220. <table class="fieldtable">
  221. <tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a class="anchor" id="a681b0c0e7b9408f4c70f8e76da34d080ae89ac8a244131d461364a7638daf0a30"></a>lang_de&#160;</td><td class="fielddoc">
  222. </td></tr>
  223. <tr><td class="fieldname"><a class="anchor" id="a681b0c0e7b9408f4c70f8e76da34d080af59ab6af8bf5947a70c77afafccac15b"></a>lang_en&#160;</td><td class="fielddoc">
  224. </td></tr>
  225. <tr><td class="fieldname"><a class="anchor" id="a681b0c0e7b9408f4c70f8e76da34d080a8222fe4f6d1104084bbf5a691f4ce644"></a>lang_last&#160;</td><td class="fielddoc">
  226. </td></tr>
  227. </table>
  228. </div>
  229. </div>
  230. <a class="anchor" id="a4984755f821d9f0c49acdcac62f4c907"></a>
  231. <div class="memitem">
  232. <div class="memproto">
  233. <table class="memname">
  234. <tr>
  235. <td class="memname">enum <a class="el" href="display_8h.html#a4984755f821d9f0c49acdcac62f4c907">display_strings_t</a></td>
  236. </tr>
  237. </table>
  238. </div><div class="memdoc">
  239. <table class="fieldtable">
  240. <tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a class="anchor" id="a4984755f821d9f0c49acdcac62f4c907a9eb4c3532bbada27013a4cff3dc8a624"></a>str_heating&#160;</td><td class="fielddoc">
  241. </td></tr>
  242. <tr><td class="fieldname"><a class="anchor" id="a4984755f821d9f0c49acdcac62f4c907a8aaa4383254e4327e846e45befac54d0"></a>str_heatingready&#160;</td><td class="fielddoc">
  243. </td></tr>
  244. <tr><td class="fieldname"><a class="anchor" id="a4984755f821d9f0c49acdcac62f4c907af200a74535586cc849fc6f5f38c85171"></a>str_ready&#160;</td><td class="fielddoc">
  245. </td></tr>
  246. <tr><td class="fieldname"><a class="anchor" id="a4984755f821d9f0c49acdcac62f4c907a8e3b0fbb0f42de5df8434e44e0b85272"></a>str_brewing&#160;</td><td class="fielddoc">
  247. </td></tr>
  248. <tr><td class="fieldname"><a class="anchor" id="a4984755f821d9f0c49acdcac62f4c907a2bb69120919321c90fe0862abc8a247c"></a>str_cleaning&#160;</td><td class="fielddoc">
  249. </td></tr>
  250. <tr><td class="fieldname"><a class="anchor" id="a4984755f821d9f0c49acdcac62f4c907aeaed0d27362049f28692626f30566890"></a>str_error&#160;</td><td class="fielddoc">
  251. </td></tr>
  252. <tr><td class="fieldname"><a class="anchor" id="a4984755f821d9f0c49acdcac62f4c907aadf50a104ff26cf8b575c0b68e52a572"></a>str_flow&#160;</td><td class="fielddoc">
  253. </td></tr>
  254. <tr><td class="fieldname"><a class="anchor" id="a4984755f821d9f0c49acdcac62f4c907ab88ed9e2db4f34884981000ac617defb"></a>str_bye&#160;</td><td class="fielddoc">
  255. </td></tr>
  256. <tr><td class="fieldname"><a class="anchor" id="a4984755f821d9f0c49acdcac62f4c907aa22549c4ff533e248b5fad404f80c6d9"></a>str_last&#160;</td><td class="fielddoc">
  257. </td></tr>
  258. </table>
  259. </div>
  260. </div>
  261. <h2 class="groupheader">Function Documentation</h2>
  262. <a class="anchor" id="ab2661cdbd686f7d3389a3d9c2cf98f47"></a>
  263. <div class="memitem">
  264. <div class="memproto">
  265. <table class="memname">
  266. <tr>
  267. <td class="memname">const char* displayGetString </td>
  268. <td>(</td>
  269. <td class="paramtype"><a class="el" href="display_8h.html#a4984755f821d9f0c49acdcac62f4c907">display_strings_t</a>&#160;</td>
  270. <td class="paramname"><em>string</em></td><td>)</td>
  271. <td></td>
  272. </tr>
  273. </table>
  274. </div><div class="memdoc">
  275. <p>Returns the matching translation of a string. </p>
  276. <dl class="params"><dt>Parameters</dt><dd>
  277. <table class="params">
  278. <tr><td class="paramname">string</td><td>Requested string </td></tr>
  279. </table>
  280. </dd>
  281. </dl>
  282. <dl class="section return"><dt>Returns</dt><dd>Translated string </dd></dl>
  283. </div>
  284. </div>
  285. <a class="anchor" id="a8c548751802c5960b3092be28cc56d9f"></a>
  286. <div class="memitem">
  287. <div class="memproto">
  288. <table class="memname">
  289. <tr>
  290. <td class="memname">void displayInit </td>
  291. <td>(</td>
  292. <td class="paramtype">void&#160;</td>
  293. <td class="paramname"></td><td>)</td>
  294. <td></td>
  295. </tr>
  296. </table>
  297. </div><div class="memdoc">
  298. <p>Initializes display. </p>
  299. </div>
  300. </div>
  301. <a class="anchor" id="adf85c9537e38ffe3f1ee356a4638880e"></a>
  302. <div class="memitem">
  303. <div class="memproto">
  304. <table class="memname">
  305. <tr>
  306. <td class="memname">void displayPushState </td>
  307. <td>(</td>
  308. <td class="paramtype">int&#160;</td>
  309. <td class="paramname"><em>state</em></td><td>)</td>
  310. <td></td>
  311. </tr>
  312. </table>
  313. </div><div class="memdoc">
  314. <p>Updates the display state to the matching coffee state. </p>
  315. <dl class="params"><dt>Parameters</dt><dd>
  316. <table class="params">
  317. <tr><td class="paramname">state</td><td>New state </td></tr>
  318. </table>
  319. </dd>
  320. </dl>
  321. </div>
  322. </div>
  323. <a class="anchor" id="ac750de2337343c08e5fd88d08316adb2"></a>
  324. <div class="memitem">
  325. <div class="memproto">
  326. <table class="memname">
  327. <tr>
  328. <td class="memname">void displayRefresh </td>
  329. <td>(</td>
  330. <td class="paramtype">void&#160;</td>
  331. <td class="paramname"></td><td>)</td>
  332. <td></td>
  333. </tr>
  334. </table>
  335. </div><div class="memdoc">
  336. <p>Refreshed the display content and outputs it. </p>
  337. </div>
  338. </div>
  339. <a class="anchor" id="a9b10d2d49414256ef745f7e910748fee"></a>
  340. <div class="memitem">
  341. <div class="memproto">
  342. <table class="memname">
  343. <tr>
  344. <td class="memname">void displaySetLang </td>
  345. <td>(</td>
  346. <td class="paramtype"><a class="el" href="display_8h.html#a681b0c0e7b9408f4c70f8e76da34d080">display_lang_t</a>&#160;</td>
  347. <td class="paramname"><em>lang</em></td><td>)</td>
  348. <td></td>
  349. </tr>
  350. </table>
  351. </div><div class="memdoc">
  352. <p>Sets the language of the display text. </p>
  353. <dl class="params"><dt>Parameters</dt><dd>
  354. <table class="params">
  355. <tr><td class="paramname">lang</td><td>New language </td></tr>
  356. </table>
  357. </dd>
  358. </dl>
  359. </div>
  360. </div>
  361. <a class="anchor" id="abfd367c63541be192cdc63d6e8b38a79"></a>
  362. <div class="memitem">
  363. <div class="memproto">
  364. <table class="memname">
  365. <tr>
  366. <td class="memname">void displayTerminate </td>
  367. <td>(</td>
  368. <td class="paramtype">void&#160;</td>
  369. <td class="paramname"></td><td>)</td>
  370. <td></td>
  371. </tr>
  372. </table>
  373. </div><div class="memdoc">
  374. <p>Handles cleanup before program termination. </p>
  375. </div>
  376. </div>
  377. <a class="anchor" id="ab2db422e214d76776b8a375787d1384c"></a>
  378. <div class="memitem">
  379. <div class="memproto">
  380. <table class="memname">
  381. <tr>
  382. <td class="memname">void* displayThread </td>
  383. <td>(</td>
  384. <td class="paramtype">void *&#160;</td>
  385. <td class="paramname"><em>threadid</em></td><td>)</td>
  386. <td></td>
  387. </tr>
  388. </table>
  389. </div><div class="memdoc">
  390. <p>Main thread to handle display data. </p>
  391. <dl class="params"><dt>Parameters</dt><dd>
  392. <table class="params">
  393. <tr><td class="paramname">*threadid</td><td>Thread ID </td></tr>
  394. </table>
  395. </dd>
  396. </dl>
  397. </div>
  398. </div>
  399. <a class="anchor" id="ab5eb6b80aca0f751332c47c410d06a2a"></a>
  400. <div class="memitem">
  401. <div class="memproto">
  402. <table class="memname">
  403. <tr>
  404. <td class="memname">void* displayTimerHandler </td>
  405. <td>(</td>
  406. <td class="paramtype">void *&#160;</td>
  407. <td class="paramname"><em>threadid</em></td><td>)</td>
  408. <td></td>
  409. </tr>
  410. </table>
  411. </div><div class="memdoc">
  412. <p>Timer handler for display update. </p>
  413. <dl class="params"><dt>Parameters</dt><dd>
  414. <table class="params">
  415. <tr><td class="paramname">*threadid</td><td>Thread ID </td></tr>
  416. </table>
  417. </dd>
  418. </dl>
  419. </div>
  420. </div>
  421. </div><!-- contents -->
  422. <!-- start footer part -->
  423. <hr class="footer"/><address class="footer"><small>
  424. Generated by &#160;<a href="http://www.doxygen.org/index.html">
  425. <img class="footer" src="doxygen.png" alt="doxygen"/>
  426. </a> 1.8.10
  427. </small></address>
  428. </body>
  429. </html>