coffee_8cpp.html 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483
  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: coffee.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">coffee.cpp File Reference</div> </div>
  87. </div><!--header-->
  88. <div class="contents">
  89. <div class="textblock"><code>#include &lt;stdio.h&gt;</code><br />
  90. <code>#include &lt;stdlib.h&gt;</code><br />
  91. <code>#include &lt;string.h&gt;</code><br />
  92. <code>#include &lt;errno.h&gt;</code><br />
  93. <code>#include &lt;stdint.h&gt;</code><br />
  94. <code>#include &lt;wiringPi.h&gt;</code><br />
  95. <code>#include &lt;pthread.h&gt;</code><br />
  96. <code>#include &lt;unistd.h&gt;</code><br />
  97. <code>#include &lt;iostream&gt;</code><br />
  98. <code>#include &lt;csignal&gt;</code><br />
  99. <code>#include &lt;time.h&gt;</code><br />
  100. <code>#include &lt;ctime&gt;</code><br />
  101. <code>#include &quot;<a class="el" href="coffee_8h_source.html">coffee.h</a>&quot;</code><br />
  102. <code>#include &quot;<a class="el" href="hal_8h_source.html">hal.h</a>&quot;</code><br />
  103. <code>#include &quot;<a class="el" href="logger_8h_source.html">logger.h</a>&quot;</code><br />
  104. <code>#include &quot;<a class="el" href="timer_8h_source.html">timer.h</a>&quot;</code><br />
  105. <code>#include &quot;<a class="el" href="database_8h_source.html">database.h</a>&quot;</code><br />
  106. <code>#include &quot;<a class="el" href="display_8h_source.html">display.h</a>&quot;</code><br />
  107. </div><table class="memberdecls">
  108. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
  109. Functions</h2></td></tr>
  110. <tr class="memitem:afed8c565650f5808745b6c6c7d45462c"><td class="memItemLeft" align="right" valign="top">void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="coffee_8cpp.html#afed8c565650f5808745b6c6c7d45462c">coffeeThread</a> (void *threadid)</td></tr>
  111. <tr class="memdesc:afed8c565650f5808745b6c6c7d45462c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Thread for the finite state machine It represents the current state of the machine and handles signals coming from the pressure control, buttons, the brew switch and the proximity sensor. <a href="#afed8c565650f5808745b6c6c7d45462c">More...</a><br /></td></tr>
  112. <tr class="separator:afed8c565650f5808745b6c6c7d45462c"><td class="memSeparator" colspan="2">&#160;</td></tr>
  113. <tr class="memitem:a44f0ebaec249d2ce6316c1bddff54d79"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="coffee_8cpp.html#a44f0ebaec249d2ce6316c1bddff54d79">coffeeHandler</a> (int signum, siginfo_t *siginfo, void *context)</td></tr>
  114. <tr class="memdesc:a44f0ebaec249d2ce6316c1bddff54d79"><td class="mdescLeft">&#160;</td><td class="mdescRight">Handler for the Signal send to this thread It saves the type of signal received and tracks the time between a push and release event of up to 4 signals The time is stored in the HalEvent variable when a release event is received. <a href="#a44f0ebaec249d2ce6316c1bddff54d79">More...</a><br /></td></tr>
  115. <tr class="separator:a44f0ebaec249d2ce6316c1bddff54d79"><td class="memSeparator" colspan="2">&#160;</td></tr>
  116. <tr class="memitem:a3290268b8fcbba9a6b642b68860a8503"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="coffee_8cpp.html#a3290268b8fcbba9a6b642b68860a8503">getSigValue</a> (void)</td></tr>
  117. <tr class="memdesc:a3290268b8fcbba9a6b642b68860a8503"><td class="mdescLeft">&#160;</td><td class="mdescRight">returns the Signal value from the last received Signal and clears the variable <a href="#a3290268b8fcbba9a6b642b68860a8503">More...</a><br /></td></tr>
  118. <tr class="separator:a3290268b8fcbba9a6b642b68860a8503"><td class="memSeparator" colspan="2">&#160;</td></tr>
  119. <tr class="memitem:a63f25020d1567a2d5e03a9a59e75a0fc"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="coffee_8cpp.html#a63f25020d1567a2d5e03a9a59e75a0fc">SigValueEmpty</a> (void)</td></tr>
  120. <tr class="separator:a63f25020d1567a2d5e03a9a59e75a0fc"><td class="memSeparator" colspan="2">&#160;</td></tr>
  121. <tr class="memitem:ae4d9681385a3f678dee40458cf55dca0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="coffee_8cpp.html#ae4d9681385a3f678dee40458cf55dca0">changeState</a> (int newState)</td></tr>
  122. <tr class="memdesc:ae4d9681385a3f678dee40458cf55dca0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Changes the state of the machine to newState prints the change to the logger. <a href="#ae4d9681385a3f678dee40458cf55dca0">More...</a><br /></td></tr>
  123. <tr class="separator:ae4d9681385a3f678dee40458cf55dca0"><td class="memSeparator" colspan="2">&#160;</td></tr>
  124. <tr class="memitem:afc0b4325b7cabe49f623d5e44aaa37d7"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="coffee_8cpp.html#afc0b4325b7cabe49f623d5e44aaa37d7">getState</a> (void)</td></tr>
  125. <tr class="memdesc:afc0b4325b7cabe49f623d5e44aaa37d7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the current state of the FSM. <a href="#afc0b4325b7cabe49f623d5e44aaa37d7">More...</a><br /></td></tr>
  126. <tr class="separator:afc0b4325b7cabe49f623d5e44aaa37d7"><td class="memSeparator" colspan="2">&#160;</td></tr>
  127. <tr class="memitem:a66d75a676639d0f8e56c0efe76547482"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="coffee_8cpp.html#a66d75a676639d0f8e56c0efe76547482">brewTimeHandler</a> (void)</td></tr>
  128. <tr class="memdesc:a66d75a676639d0f8e56c0efe76547482"><td class="mdescLeft">&#160;</td><td class="mdescRight">Counter for the brew time refresh every 200ms. <a href="#a66d75a676639d0f8e56c0efe76547482">More...</a><br /></td></tr>
  129. <tr class="separator:a66d75a676639d0f8e56c0efe76547482"><td class="memSeparator" colspan="2">&#160;</td></tr>
  130. <tr class="memitem:a5c611f1d81caf2f51c8b77b307028e4d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="coffee_8cpp.html#a5c611f1d81caf2f51c8b77b307028e4d">coffeeTerminate</a> (void)</td></tr>
  131. <tr class="memdesc:a5c611f1d81caf2f51c8b77b307028e4d"><td class="mdescLeft">&#160;</td><td class="mdescRight">handles program termination <a href="#a5c611f1d81caf2f51c8b77b307028e4d">More...</a><br /></td></tr>
  132. <tr class="separator:a5c611f1d81caf2f51c8b77b307028e4d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  133. <tr class="memitem:a343324d9863aa6eb3d7e2a183aec4a09"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="coffee_8cpp.html#a343324d9863aa6eb3d7e2a183aec4a09">coffeeBrew</a> (void)</td></tr>
  134. <tr class="memdesc:a343324d9863aa6eb3d7e2a183aec4a09"><td class="mdescLeft">&#160;</td><td class="mdescRight">Brewing process. <a href="#a343324d9863aa6eb3d7e2a183aec4a09">More...</a><br /></td></tr>
  135. <tr class="separator:a343324d9863aa6eb3d7e2a183aec4a09"><td class="memSeparator" colspan="2">&#160;</td></tr>
  136. <tr class="memitem:a7c29bb32c4f3971f78dd515e568042c3"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="coffee_8cpp.html#a7c29bb32c4f3971f78dd515e568042c3">coffeeIncreaseBrewCounter</a> (void)</td></tr>
  137. <tr class="separator:a7c29bb32c4f3971f78dd515e568042c3"><td class="memSeparator" colspan="2">&#160;</td></tr>
  138. <tr class="memitem:a11b81e21f5769fc6b0e55ecbac8d3976"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="coffee_8cpp.html#a11b81e21f5769fc6b0e55ecbac8d3976">coffeeIncreaseHeatingTime</a> (uint64_t <a class="el" href="coffee_8cpp.html#ac88c1bf95effb2aeddc71b1c2cf9034b">heatingTime</a>)</td></tr>
  139. <tr class="separator:a11b81e21f5769fc6b0e55ecbac8d3976"><td class="memSeparator" colspan="2">&#160;</td></tr>
  140. </table><table class="memberdecls">
  141. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
  142. Variables</h2></td></tr>
  143. <tr class="memitem:a89f234133d3efe315836311cbf21c64b"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="coffee_8cpp.html#a89f234133d3efe315836311cbf21c64b">state</a></td></tr>
  144. <tr class="separator:a89f234133d3efe315836311cbf21c64b"><td class="memSeparator" colspan="2">&#160;</td></tr>
  145. <tr class="memitem:a959eceab8fe67a33076aa42e877441a5"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="coffee_8cpp.html#a959eceab8fe67a33076aa42e877441a5">sigValue</a></td></tr>
  146. <tr class="separator:a959eceab8fe67a33076aa42e877441a5"><td class="memSeparator" colspan="2">&#160;</td></tr>
  147. <tr class="memitem:a3756d547bc4c41a306650f4f4bbb930c"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="coffee_8cpp.html#a3756d547bc4c41a306650f4f4bbb930c">brewTime</a></td></tr>
  148. <tr class="separator:a3756d547bc4c41a306650f4f4bbb930c"><td class="memSeparator" colspan="2">&#160;</td></tr>
  149. <tr class="memitem:a25ddb2af4585729d37dab1e1b5bb0b06"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classtimer.html">timer</a> brewTimer &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="coffee_8cpp.html#a25ddb2af4585729d37dab1e1b5bb0b06">brewTimeHandler</a></td></tr>
  150. <tr class="separator:a25ddb2af4585729d37dab1e1b5bb0b06"><td class="memSeparator" colspan="2">&#160;</td></tr>
  151. <tr class="memitem:a1426cd37aa49a96e7bcf12d26cde1a0d"><td class="memItemLeft" align="right" valign="top">clock_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="coffee_8cpp.html#a1426cd37aa49a96e7bcf12d26cde1a0d">beginHeating</a></td></tr>
  152. <tr class="separator:a1426cd37aa49a96e7bcf12d26cde1a0d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  153. <tr class="memitem:a1aaa11435974ab87937d68b01ee71074"><td class="memItemLeft" align="right" valign="top">clock_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="coffee_8cpp.html#a1aaa11435974ab87937d68b01ee71074">endHeating</a></td></tr>
  154. <tr class="separator:a1aaa11435974ab87937d68b01ee71074"><td class="memSeparator" colspan="2">&#160;</td></tr>
  155. <tr class="memitem:ac88c1bf95effb2aeddc71b1c2cf9034b"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="coffee_8cpp.html#ac88c1bf95effb2aeddc71b1c2cf9034b">heatingTime</a></td></tr>
  156. <tr class="separator:ac88c1bf95effb2aeddc71b1c2cf9034b"><td class="memSeparator" colspan="2">&#160;</td></tr>
  157. </table>
  158. <h2 class="groupheader">Function Documentation</h2>
  159. <a class="anchor" id="a66d75a676639d0f8e56c0efe76547482"></a>
  160. <div class="memitem">
  161. <div class="memproto">
  162. <table class="memname">
  163. <tr>
  164. <td class="memname">void brewTimeHandler </td>
  165. <td>(</td>
  166. <td class="paramtype">void&#160;</td>
  167. <td class="paramname"></td><td>)</td>
  168. <td></td>
  169. </tr>
  170. </table>
  171. </div><div class="memdoc">
  172. <p>Counter for the brew time refresh every 200ms. </p>
  173. </div>
  174. </div>
  175. <a class="anchor" id="ae4d9681385a3f678dee40458cf55dca0"></a>
  176. <div class="memitem">
  177. <div class="memproto">
  178. <table class="memname">
  179. <tr>
  180. <td class="memname">void changeState </td>
  181. <td>(</td>
  182. <td class="paramtype">int&#160;</td>
  183. <td class="paramname"><em>newState</em></td><td>)</td>
  184. <td></td>
  185. </tr>
  186. </table>
  187. </div><div class="memdoc">
  188. <p>Changes the state of the machine to newState prints the change to the logger. </p>
  189. <dl class="params"><dt>Parameters</dt><dd>
  190. <table class="params">
  191. <tr><td class="paramname">newState</td><td></td></tr>
  192. </table>
  193. </dd>
  194. </dl>
  195. </div>
  196. </div>
  197. <a class="anchor" id="a343324d9863aa6eb3d7e2a183aec4a09"></a>
  198. <div class="memitem">
  199. <div class="memproto">
  200. <table class="memname">
  201. <tr>
  202. <td class="memname">void coffeeBrew </td>
  203. <td>(</td>
  204. <td class="paramtype">void&#160;</td>
  205. <td class="paramname"></td><td>)</td>
  206. <td></td>
  207. </tr>
  208. </table>
  209. </div><div class="memdoc">
  210. <p>Brewing process. </p>
  211. </div>
  212. </div>
  213. <a class="anchor" id="a44f0ebaec249d2ce6316c1bddff54d79"></a>
  214. <div class="memitem">
  215. <div class="memproto">
  216. <table class="memname">
  217. <tr>
  218. <td class="memname">void coffeeHandler </td>
  219. <td>(</td>
  220. <td class="paramtype">int&#160;</td>
  221. <td class="paramname"><em>signum</em>, </td>
  222. </tr>
  223. <tr>
  224. <td class="paramkey"></td>
  225. <td></td>
  226. <td class="paramtype">siginfo_t *&#160;</td>
  227. <td class="paramname"><em>siginfo</em>, </td>
  228. </tr>
  229. <tr>
  230. <td class="paramkey"></td>
  231. <td></td>
  232. <td class="paramtype">void *&#160;</td>
  233. <td class="paramname"><em>context</em>&#160;</td>
  234. </tr>
  235. <tr>
  236. <td></td>
  237. <td>)</td>
  238. <td></td><td></td>
  239. </tr>
  240. </table>
  241. </div><div class="memdoc">
  242. <p>Handler for the Signal send to this thread It saves the type of signal received and tracks the time between a push and release event of up to 4 signals The time is stored in the HalEvent variable when a release event is received. </p>
  243. <dl class="params"><dt>Parameters</dt><dd>
  244. <table class="params">
  245. <tr><td class="paramname">signum</td><td></td></tr>
  246. <tr><td class="paramname">siginfo</td><td></td></tr>
  247. <tr><td class="paramname">context</td><td></td></tr>
  248. </table>
  249. </dd>
  250. </dl>
  251. </div>
  252. </div>
  253. <a class="anchor" id="a7c29bb32c4f3971f78dd515e568042c3"></a>
  254. <div class="memitem">
  255. <div class="memproto">
  256. <table class="memname">
  257. <tr>
  258. <td class="memname">void coffeeIncreaseBrewCounter </td>
  259. <td>(</td>
  260. <td class="paramtype">void&#160;</td>
  261. <td class="paramname"></td><td>)</td>
  262. <td></td>
  263. </tr>
  264. </table>
  265. </div><div class="memdoc">
  266. </div>
  267. </div>
  268. <a class="anchor" id="a11b81e21f5769fc6b0e55ecbac8d3976"></a>
  269. <div class="memitem">
  270. <div class="memproto">
  271. <table class="memname">
  272. <tr>
  273. <td class="memname">void coffeeIncreaseHeatingTime </td>
  274. <td>(</td>
  275. <td class="paramtype">uint64_t&#160;</td>
  276. <td class="paramname"><em>heatingTime</em></td><td>)</td>
  277. <td></td>
  278. </tr>
  279. </table>
  280. </div><div class="memdoc">
  281. </div>
  282. </div>
  283. <a class="anchor" id="a5c611f1d81caf2f51c8b77b307028e4d"></a>
  284. <div class="memitem">
  285. <div class="memproto">
  286. <table class="memname">
  287. <tr>
  288. <td class="memname">void coffeeTerminate </td>
  289. <td>(</td>
  290. <td class="paramtype">void&#160;</td>
  291. <td class="paramname"></td><td>)</td>
  292. <td></td>
  293. </tr>
  294. </table>
  295. </div><div class="memdoc">
  296. <p>handles program termination </p>
  297. </div>
  298. </div>
  299. <a class="anchor" id="afed8c565650f5808745b6c6c7d45462c"></a>
  300. <div class="memitem">
  301. <div class="memproto">
  302. <table class="memname">
  303. <tr>
  304. <td class="memname">void* coffeeThread </td>
  305. <td>(</td>
  306. <td class="paramtype">void *&#160;</td>
  307. <td class="paramname"><em>threadid</em></td><td>)</td>
  308. <td></td>
  309. </tr>
  310. </table>
  311. </div><div class="memdoc">
  312. <p>Thread for the finite state machine It represents the current state of the machine and handles signals coming from the pressure control, buttons, the brew switch and the proximity sensor. </p>
  313. <dl class="params"><dt>Parameters</dt><dd>
  314. <table class="params">
  315. <tr><td class="paramname">threadid</td><td>the ID of the thread </td></tr>
  316. </table>
  317. </dd>
  318. </dl>
  319. </div>
  320. </div>
  321. <a class="anchor" id="a3290268b8fcbba9a6b642b68860a8503"></a>
  322. <div class="memitem">
  323. <div class="memproto">
  324. <table class="memname">
  325. <tr>
  326. <td class="memname">int getSigValue </td>
  327. <td>(</td>
  328. <td class="paramtype">void&#160;</td>
  329. <td class="paramname"></td><td>)</td>
  330. <td></td>
  331. </tr>
  332. </table>
  333. </div><div class="memdoc">
  334. <p>returns the Signal value from the last received Signal and clears the variable </p>
  335. <dl class="section return"><dt>Returns</dt><dd>value sent with the last signal </dd></dl>
  336. </div>
  337. </div>
  338. <a class="anchor" id="afc0b4325b7cabe49f623d5e44aaa37d7"></a>
  339. <div class="memitem">
  340. <div class="memproto">
  341. <table class="memname">
  342. <tr>
  343. <td class="memname">int getState </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>Returns the current state of the FSM. </p>
  352. </div>
  353. </div>
  354. <a class="anchor" id="a63f25020d1567a2d5e03a9a59e75a0fc"></a>
  355. <div class="memitem">
  356. <div class="memproto">
  357. <table class="memname">
  358. <tr>
  359. <td class="memname">bool SigValueEmpty </td>
  360. <td>(</td>
  361. <td class="paramtype">void&#160;</td>
  362. <td class="paramname"></td><td>)</td>
  363. <td></td>
  364. </tr>
  365. </table>
  366. </div><div class="memdoc">
  367. </div>
  368. </div>
  369. <h2 class="groupheader">Variable Documentation</h2>
  370. <a class="anchor" id="a1426cd37aa49a96e7bcf12d26cde1a0d"></a>
  371. <div class="memitem">
  372. <div class="memproto">
  373. <table class="memname">
  374. <tr>
  375. <td class="memname">clock_t beginHeating</td>
  376. </tr>
  377. </table>
  378. </div><div class="memdoc">
  379. </div>
  380. </div>
  381. <a class="anchor" id="a3756d547bc4c41a306650f4f4bbb930c"></a>
  382. <div class="memitem">
  383. <div class="memproto">
  384. <table class="memname">
  385. <tr>
  386. <td class="memname">int brewTime</td>
  387. </tr>
  388. </table>
  389. </div><div class="memdoc">
  390. </div>
  391. </div>
  392. <a class="anchor" id="a25ddb2af4585729d37dab1e1b5bb0b06"></a>
  393. <div class="memitem">
  394. <div class="memproto">
  395. <table class="memname">
  396. <tr>
  397. <td class="memname"><a class="el" href="classtimer.html">timer</a> brewTimer&amp; brewTimeHandler</td>
  398. </tr>
  399. </table>
  400. </div><div class="memdoc">
  401. </div>
  402. </div>
  403. <a class="anchor" id="a1aaa11435974ab87937d68b01ee71074"></a>
  404. <div class="memitem">
  405. <div class="memproto">
  406. <table class="memname">
  407. <tr>
  408. <td class="memname">clock_t endHeating</td>
  409. </tr>
  410. </table>
  411. </div><div class="memdoc">
  412. </div>
  413. </div>
  414. <a class="anchor" id="ac88c1bf95effb2aeddc71b1c2cf9034b"></a>
  415. <div class="memitem">
  416. <div class="memproto">
  417. <table class="memname">
  418. <tr>
  419. <td class="memname">double heatingTime</td>
  420. </tr>
  421. </table>
  422. </div><div class="memdoc">
  423. </div>
  424. </div>
  425. <a class="anchor" id="a959eceab8fe67a33076aa42e877441a5"></a>
  426. <div class="memitem">
  427. <div class="memproto">
  428. <table class="memname">
  429. <tr>
  430. <td class="memname">int sigValue</td>
  431. </tr>
  432. </table>
  433. </div><div class="memdoc">
  434. </div>
  435. </div>
  436. <a class="anchor" id="a89f234133d3efe315836311cbf21c64b"></a>
  437. <div class="memitem">
  438. <div class="memproto">
  439. <table class="memname">
  440. <tr>
  441. <td class="memname">int state</td>
  442. </tr>
  443. </table>
  444. </div><div class="memdoc">
  445. </div>
  446. </div>
  447. </div><!-- contents -->
  448. <!-- start footer part -->
  449. <hr class="footer"/><address class="footer"><small>
  450. Generated by &#160;<a href="http://www.doxygen.org/index.html">
  451. <img class="footer" src="doxygen.png" alt="doxygen"/>
  452. </a> 1.8.10
  453. </small></address>
  454. </body>
  455. </html>