hal_8h.html 38 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791
  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: hal.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="#define-members">Macros</a> &#124;
  84. <a href="#enum-members">Enumerations</a> &#124;
  85. <a href="#func-members">Functions</a> </div>
  86. <div class="headertitle">
  87. <div class="title">hal.h File Reference</div> </div>
  88. </div><!--header-->
  89. <div class="contents">
  90. <p><a href="hal_8h_source.html">Go to the source code of this file.</a></p>
  91. <table class="memberdecls">
  92. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
  93. Macros</h2></td></tr>
  94. <tr class="memitem:a9b57e326c17e793a2c70b909256734ab"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hal_8h.html#a9b57e326c17e793a2c70b909256734ab">RELAIS_HEAT</a>&#160;&#160;&#160;29</td></tr>
  95. <tr class="separator:a9b57e326c17e793a2c70b909256734ab"><td class="memSeparator" colspan="2">&#160;</td></tr>
  96. <tr class="memitem:a9723c5da9e57e2b3a1c3ec7b635cee53"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hal_8h.html#a9723c5da9e57e2b3a1c3ec7b635cee53">RELAIS_PUMP</a>&#160;&#160;&#160;25</td></tr>
  97. <tr class="separator:a9723c5da9e57e2b3a1c3ec7b635cee53"><td class="memSeparator" colspan="2">&#160;</td></tr>
  98. <tr class="memitem:a56489df9a2d1844419f2b0c104516657"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hal_8h.html#a56489df9a2d1844419f2b0c104516657">RELAIS_POWER</a>&#160;&#160;&#160;28</td></tr>
  99. <tr class="separator:a56489df9a2d1844419f2b0c104516657"><td class="memSeparator" colspan="2">&#160;</td></tr>
  100. <tr class="memitem:a95d660a5e62442d33d7cc9d93ffb57b9"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hal_8h.html#a95d660a5e62442d33d7cc9d93ffb57b9">PIN_PRESSURE_CTRL</a>&#160;&#160;&#160;7</td></tr>
  101. <tr class="separator:a95d660a5e62442d33d7cc9d93ffb57b9"><td class="memSeparator" colspan="2">&#160;</td></tr>
  102. <tr class="memitem:a4b6bff93c300c970e912b45284fa1d7d"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hal_8h.html#a4b6bff93c300c970e912b45284fa1d7d">PIN_PROXIMITY_SENSOR</a>&#160;&#160;&#160;6</td></tr>
  103. <tr class="separator:a4b6bff93c300c970e912b45284fa1d7d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  104. <tr class="memitem:acab09879ef6267b9482f7627c82346bc"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hal_8h.html#acab09879ef6267b9482f7627c82346bc">PIN_INT0</a>&#160;&#160;&#160;2</td></tr>
  105. <tr class="separator:acab09879ef6267b9482f7627c82346bc"><td class="memSeparator" colspan="2">&#160;</td></tr>
  106. <tr class="memitem:a987362f14d4ff58584140f09c24a4308"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hal_8h.html#a987362f14d4ff58584140f09c24a4308">PIN_INT1</a>&#160;&#160;&#160;0</td></tr>
  107. <tr class="separator:a987362f14d4ff58584140f09c24a4308"><td class="memSeparator" colspan="2">&#160;</td></tr>
  108. <tr class="memitem:a1b7f077d2a81a295f0f9b0fbf09356ba"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hal_8h.html#a1b7f077d2a81a295f0f9b0fbf09356ba">PIN_FLOW</a>&#160;&#160;&#160;3</td></tr>
  109. <tr class="separator:a1b7f077d2a81a295f0f9b0fbf09356ba"><td class="memSeparator" colspan="2">&#160;</td></tr>
  110. <tr class="memitem:a957d80982673bb087a5d29380720f59d"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hal_8h.html#a957d80982673bb087a5d29380720f59d">FLOW_ML_PULSE</a>&#160;&#160;&#160;(1000.0/990)</td></tr>
  111. <tr class="separator:a957d80982673bb087a5d29380720f59d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  112. <tr class="memitem:a39a999d4c82a1021ee63072abe804946"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hal_8h.html#a39a999d4c82a1021ee63072abe804946">TIME_BUTTONLONGPRESS</a>&#160;&#160;&#160;3</td></tr>
  113. <tr class="separator:a39a999d4c82a1021ee63072abe804946"><td class="memSeparator" colspan="2">&#160;</td></tr>
  114. </table><table class="memberdecls">
  115. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
  116. Enumerations</h2></td></tr>
  117. <tr class="memitem:aa51a8c9f6b926aa9e9c5dd38249d3f68"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hal_8h.html#aa51a8c9f6b926aa9e9c5dd38249d3f68">HalSig</a> { <br />
  118. &#160;&#160;<a class="el" href="hal_8h.html#aa51a8c9f6b926aa9e9c5dd38249d3f68a4f6585385aaee8e6a336fb31e8713751">SigInt0Psh</a> = 1,
  119. <a class="el" href="hal_8h.html#aa51a8c9f6b926aa9e9c5dd38249d3f68ae70d75d9c016f72d315ce0f375425ae3">SigInt0Rls</a> = 2,
  120. <a class="el" href="hal_8h.html#aa51a8c9f6b926aa9e9c5dd38249d3f68ae12ff99a3219da47e0c3c2ebb690906e">SigInt0RlsLong</a> = 3,
  121. <a class="el" href="hal_8h.html#aa51a8c9f6b926aa9e9c5dd38249d3f68a5fd8970919f375d9f3baaaa053865ce2">SigInt1Psh</a> = 4,
  122. <br />
  123. &#160;&#160;<a class="el" href="hal_8h.html#aa51a8c9f6b926aa9e9c5dd38249d3f68aa85940fc659570c5b7ec2d8e0ed3eeae">SigInt1Rls</a> = 5,
  124. <a class="el" href="hal_8h.html#aa51a8c9f6b926aa9e9c5dd38249d3f68a1a7c6bd95f0ccdf91bc363cc8a638b73">SigInt1RlsLong</a> = 6,
  125. <a class="el" href="hal_8h.html#aa51a8c9f6b926aa9e9c5dd38249d3f68abdd48e173224114754f253d764540ec9">SigPressCls</a> = 7,
  126. <a class="el" href="hal_8h.html#aa51a8c9f6b926aa9e9c5dd38249d3f68a683f7a77d5c63e835b2a72ab1c540fe4">SigPressOpn</a> = 8,
  127. <br />
  128. &#160;&#160;<a class="el" href="hal_8h.html#aa51a8c9f6b926aa9e9c5dd38249d3f68a7f18f13ecf372adaf681e706ad051fd3">SigProxOpn</a> = 9,
  129. <a class="el" href="hal_8h.html#aa51a8c9f6b926aa9e9c5dd38249d3f68ac53b2d92b9e3b1652f173e29db5b523d">SigProxCvrd</a> = 10,
  130. <a class="el" href="hal_8h.html#aa51a8c9f6b926aa9e9c5dd38249d3f68a4f8316fcd4daf8fdee99ad3414c00857">SigBrewOn</a> = 11,
  131. <a class="el" href="hal_8h.html#aa51a8c9f6b926aa9e9c5dd38249d3f68a6d3fe49429343ea09a007c2236db9382">SigBrewOff</a> = 12
  132. <br />
  133. }<tr class="separator:aa51a8c9f6b926aa9e9c5dd38249d3f68"><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:afd89c1650df524d95aef39b8bc38170d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hal_8h.html#afd89c1650df524d95aef39b8bc38170d">halInit</a> (void)</td></tr>
  139. <tr class="memdesc:afd89c1650df524d95aef39b8bc38170d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes HAL. <a href="#afd89c1650df524d95aef39b8bc38170d">More...</a><br /></td></tr>
  140. <tr class="separator:afd89c1650df524d95aef39b8bc38170d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  141. <tr class="memitem:a33e09a3806bdcd5c711e557178335763"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hal_8h.html#a33e09a3806bdcd5c711e557178335763">halRelaisOn</a> (int relais)</td></tr>
  142. <tr class="memdesc:a33e09a3806bdcd5c711e557178335763"><td class="mdescLeft">&#160;</td><td class="mdescRight">Switches relais on. <a href="#a33e09a3806bdcd5c711e557178335763">More...</a><br /></td></tr>
  143. <tr class="separator:a33e09a3806bdcd5c711e557178335763"><td class="memSeparator" colspan="2">&#160;</td></tr>
  144. <tr class="memitem:a25c63f62c18555fc1b9b50bcd29f1c7d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hal_8h.html#a25c63f62c18555fc1b9b50bcd29f1c7d">halRelaisOff</a> (int relais)</td></tr>
  145. <tr class="memdesc:a25c63f62c18555fc1b9b50bcd29f1c7d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Switches relais off. <a href="#a25c63f62c18555fc1b9b50bcd29f1c7d">More...</a><br /></td></tr>
  146. <tr class="separator:a25c63f62c18555fc1b9b50bcd29f1c7d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  147. <tr class="memitem:a9b67b274703f0c42834f4b447d5c04a2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hal_8h.html#a9b67b274703f0c42834f4b447d5c04a2">halRelaisSet</a> (int relais, int <a class="el" href="coffee_8cpp.html#a89f234133d3efe315836311cbf21c64b">state</a>)</td></tr>
  148. <tr class="memdesc:a9b67b274703f0c42834f4b447d5c04a2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Switches relais to state. <a href="#a9b67b274703f0c42834f4b447d5c04a2">More...</a><br /></td></tr>
  149. <tr class="separator:a9b67b274703f0c42834f4b447d5c04a2"><td class="memSeparator" colspan="2">&#160;</td></tr>
  150. <tr class="memitem:a1d22d01f1a6a6789f2816e27bbcb0504"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hal_8h.html#a1d22d01f1a6a6789f2816e27bbcb0504">halGetRelaisState</a> (int relais)</td></tr>
  151. <tr class="memdesc:a1d22d01f1a6a6789f2816e27bbcb0504"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the state of the relais relais Returns HIGH when Relais is ON. <a href="#a1d22d01f1a6a6789f2816e27bbcb0504">More...</a><br /></td></tr>
  152. <tr class="separator:a1d22d01f1a6a6789f2816e27bbcb0504"><td class="memSeparator" colspan="2">&#160;</td></tr>
  153. <tr class="memitem:a597258a80a0bb18db649d01b0893c99f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hal_8h.html#a597258a80a0bb18db649d01b0893c99f">halInt0</a> (void)</td></tr>
  154. <tr class="memdesc:a597258a80a0bb18db649d01b0893c99f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Interrupt routine for Int0 (Top button) <a href="#a597258a80a0bb18db649d01b0893c99f">More...</a><br /></td></tr>
  155. <tr class="separator:a597258a80a0bb18db649d01b0893c99f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  156. <tr class="memitem:a603aaa9c0c3cfef8b185df5c7f4921c3"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hal_8h.html#a603aaa9c0c3cfef8b185df5c7f4921c3">halInt1</a> (void)</td></tr>
  157. <tr class="memdesc:a603aaa9c0c3cfef8b185df5c7f4921c3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Interrupt routine for Int1 (Bottom button) <a href="#a603aaa9c0c3cfef8b185df5c7f4921c3">More...</a><br /></td></tr>
  158. <tr class="separator:a603aaa9c0c3cfef8b185df5c7f4921c3"><td class="memSeparator" colspan="2">&#160;</td></tr>
  159. <tr class="memitem:ace9ace8c7e0012157569f446d4cb8c52"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hal_8h.html#ace9ace8c7e0012157569f446d4cb8c52">halIntFlow</a> (void)</td></tr>
  160. <tr class="memdesc:ace9ace8c7e0012157569f446d4cb8c52"><td class="mdescLeft">&#160;</td><td class="mdescRight">Interrupt routine for the flow sensor It counts the edgdes and stores the value in flowcnt. <a href="#ace9ace8c7e0012157569f446d4cb8c52">More...</a><br /></td></tr>
  161. <tr class="separator:ace9ace8c7e0012157569f446d4cb8c52"><td class="memSeparator" colspan="2">&#160;</td></tr>
  162. <tr class="memitem:a73067106de2bbcf98bcc3a06cbf3b000"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hal_8h.html#a73067106de2bbcf98bcc3a06cbf3b000">halIntPressure</a> (void)</td></tr>
  163. <tr class="memdesc:a73067106de2bbcf98bcc3a06cbf3b000"><td class="mdescLeft">&#160;</td><td class="mdescRight">Interrupt routine for the pressure control. <a href="#a73067106de2bbcf98bcc3a06cbf3b000">More...</a><br /></td></tr>
  164. <tr class="separator:a73067106de2bbcf98bcc3a06cbf3b000"><td class="memSeparator" colspan="2">&#160;</td></tr>
  165. <tr class="memitem:a0622583e0c8453a6d6963964ad7e7122"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hal_8h.html#a0622583e0c8453a6d6963964ad7e7122">halIntProximity</a> (void)</td></tr>
  166. <tr class="memdesc:a0622583e0c8453a6d6963964ad7e7122"><td class="mdescLeft">&#160;</td><td class="mdescRight">Method to handle toggle of the proximity sensor. <a href="#a0622583e0c8453a6d6963964ad7e7122">More...</a><br /></td></tr>
  167. <tr class="separator:a0622583e0c8453a6d6963964ad7e7122"><td class="memSeparator" colspan="2">&#160;</td></tr>
  168. <tr class="memitem:a1a0d534518ff19bf5b023dfe64d141db"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hal_8h.html#a1a0d534518ff19bf5b023dfe64d141db">halGetFlow</a> (void)</td></tr>
  169. <tr class="memdesc:a1a0d534518ff19bf5b023dfe64d141db"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns total flow trough sensor in ml. <a href="#a1a0d534518ff19bf5b023dfe64d141db">More...</a><br /></td></tr>
  170. <tr class="separator:a1a0d534518ff19bf5b023dfe64d141db"><td class="memSeparator" colspan="2">&#160;</td></tr>
  171. <tr class="memitem:a99d0fb6a80635b679cf4cd1fa90b483d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hal_8h.html#a99d0fb6a80635b679cf4cd1fa90b483d">halResetFlow</a> (void)</td></tr>
  172. <tr class="memdesc:a99d0fb6a80635b679cf4cd1fa90b483d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Resets the Flow counter. <a href="#a99d0fb6a80635b679cf4cd1fa90b483d">More...</a><br /></td></tr>
  173. <tr class="separator:a99d0fb6a80635b679cf4cd1fa90b483d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  174. <tr class="memitem:a01f43f0666520e8d8af65e94fd82a5eb"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hal_8h.html#a01f43f0666520e8d8af65e94fd82a5eb">halIsHeating</a> (void)</td></tr>
  175. <tr class="memdesc:a01f43f0666520e8d8af65e94fd82a5eb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reads the status of the Pressure Control. <a href="#a01f43f0666520e8d8af65e94fd82a5eb">More...</a><br /></td></tr>
  176. <tr class="separator:a01f43f0666520e8d8af65e94fd82a5eb"><td class="memSeparator" colspan="2">&#160;</td></tr>
  177. <tr class="memitem:a52c001b5136b02e19bd00282a137631d"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hal_8h.html#a52c001b5136b02e19bd00282a137631d">halProxSensorCovered</a> (void)</td></tr>
  178. <tr class="memdesc:a52c001b5136b02e19bd00282a137631d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns status of the proximity switch. <a href="#a52c001b5136b02e19bd00282a137631d">More...</a><br /></td></tr>
  179. <tr class="separator:a52c001b5136b02e19bd00282a137631d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  180. <tr class="memitem:af5609d1b9c9b6bde787cdca47b3b0a4f"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hal_8h.html#af5609d1b9c9b6bde787cdca47b3b0a4f">halGetInt0</a> (void)</td></tr>
  181. <tr class="memdesc:af5609d1b9c9b6bde787cdca47b3b0a4f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the value of the top button Int0 (low active) <a href="#af5609d1b9c9b6bde787cdca47b3b0a4f">More...</a><br /></td></tr>
  182. <tr class="separator:af5609d1b9c9b6bde787cdca47b3b0a4f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  183. <tr class="memitem:afe1e8d0d1237d0f128d50a5b146002a2"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hal_8h.html#afe1e8d0d1237d0f128d50a5b146002a2">halGetInt1</a> (void)</td></tr>
  184. <tr class="memdesc:afe1e8d0d1237d0f128d50a5b146002a2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the value of the bottom button Int1 (low active) <a href="#afe1e8d0d1237d0f128d50a5b146002a2">More...</a><br /></td></tr>
  185. <tr class="separator:afe1e8d0d1237d0f128d50a5b146002a2"><td class="memSeparator" colspan="2">&#160;</td></tr>
  186. <tr class="memitem:a4fa1c41f2dd3c24e13feaa6be70ad426"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hal_8h.html#a4fa1c41f2dd3c24e13feaa6be70ad426">halSendSignal</a> (int value)</td></tr>
  187. <tr class="memdesc:a4fa1c41f2dd3c24e13feaa6be70ad426"><td class="mdescLeft">&#160;</td><td class="mdescRight">send Signal to coffee thread <a href="#a4fa1c41f2dd3c24e13feaa6be70ad426">More...</a><br /></td></tr>
  188. <tr class="separator:a4fa1c41f2dd3c24e13feaa6be70ad426"><td class="memSeparator" colspan="2">&#160;</td></tr>
  189. <tr class="memitem:a80e05d7e336073450da3168992d58754"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hal_8h.html#a80e05d7e336073450da3168992d58754">halMachineOn</a> (void)</td></tr>
  190. <tr class="memdesc:a80e05d7e336073450da3168992d58754"><td class="mdescLeft">&#160;</td><td class="mdescRight">Turn machine on. <a href="#a80e05d7e336073450da3168992d58754">More...</a><br /></td></tr>
  191. <tr class="separator:a80e05d7e336073450da3168992d58754"><td class="memSeparator" colspan="2">&#160;</td></tr>
  192. <tr class="memitem:a8cefe61db8caf1cbdbc35f680744a3eb"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hal_8h.html#a8cefe61db8caf1cbdbc35f680744a3eb">halMachineOff</a> (void)</td></tr>
  193. <tr class="memdesc:a8cefe61db8caf1cbdbc35f680744a3eb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Turn machine off. <a href="#a8cefe61db8caf1cbdbc35f680744a3eb">More...</a><br /></td></tr>
  194. <tr class="separator:a8cefe61db8caf1cbdbc35f680744a3eb"><td class="memSeparator" colspan="2">&#160;</td></tr>
  195. <tr class="memitem:aa52d1bfb2ca68e499ad83d9b0d1ba275"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hal_8h.html#aa52d1bfb2ca68e499ad83d9b0d1ba275">halInt0TimerHandler</a> (void)</td></tr>
  196. <tr class="separator:aa52d1bfb2ca68e499ad83d9b0d1ba275"><td class="memSeparator" colspan="2">&#160;</td></tr>
  197. <tr class="memitem:ad56f6e1b04c236040717eadfd806c244"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hal_8h.html#ad56f6e1b04c236040717eadfd806c244">halInt1TimerHandler</a> (void)</td></tr>
  198. <tr class="separator:ad56f6e1b04c236040717eadfd806c244"><td class="memSeparator" colspan="2">&#160;</td></tr>
  199. </table>
  200. <h2 class="groupheader">Macro Definition Documentation</h2>
  201. <a class="anchor" id="a957d80982673bb087a5d29380720f59d"></a>
  202. <div class="memitem">
  203. <div class="memproto">
  204. <table class="memname">
  205. <tr>
  206. <td class="memname">#define FLOW_ML_PULSE&#160;&#160;&#160;(1000.0/990)</td>
  207. </tr>
  208. </table>
  209. </div><div class="memdoc">
  210. </div>
  211. </div>
  212. <a class="anchor" id="a1b7f077d2a81a295f0f9b0fbf09356ba"></a>
  213. <div class="memitem">
  214. <div class="memproto">
  215. <table class="memname">
  216. <tr>
  217. <td class="memname">#define PIN_FLOW&#160;&#160;&#160;3</td>
  218. </tr>
  219. </table>
  220. </div><div class="memdoc">
  221. </div>
  222. </div>
  223. <a class="anchor" id="acab09879ef6267b9482f7627c82346bc"></a>
  224. <div class="memitem">
  225. <div class="memproto">
  226. <table class="memname">
  227. <tr>
  228. <td class="memname">#define PIN_INT0&#160;&#160;&#160;2</td>
  229. </tr>
  230. </table>
  231. </div><div class="memdoc">
  232. </div>
  233. </div>
  234. <a class="anchor" id="a987362f14d4ff58584140f09c24a4308"></a>
  235. <div class="memitem">
  236. <div class="memproto">
  237. <table class="memname">
  238. <tr>
  239. <td class="memname">#define PIN_INT1&#160;&#160;&#160;0</td>
  240. </tr>
  241. </table>
  242. </div><div class="memdoc">
  243. </div>
  244. </div>
  245. <a class="anchor" id="a95d660a5e62442d33d7cc9d93ffb57b9"></a>
  246. <div class="memitem">
  247. <div class="memproto">
  248. <table class="memname">
  249. <tr>
  250. <td class="memname">#define PIN_PRESSURE_CTRL&#160;&#160;&#160;7</td>
  251. </tr>
  252. </table>
  253. </div><div class="memdoc">
  254. </div>
  255. </div>
  256. <a class="anchor" id="a4b6bff93c300c970e912b45284fa1d7d"></a>
  257. <div class="memitem">
  258. <div class="memproto">
  259. <table class="memname">
  260. <tr>
  261. <td class="memname">#define PIN_PROXIMITY_SENSOR&#160;&#160;&#160;6</td>
  262. </tr>
  263. </table>
  264. </div><div class="memdoc">
  265. </div>
  266. </div>
  267. <a class="anchor" id="a9b57e326c17e793a2c70b909256734ab"></a>
  268. <div class="memitem">
  269. <div class="memproto">
  270. <table class="memname">
  271. <tr>
  272. <td class="memname">#define RELAIS_HEAT&#160;&#160;&#160;29</td>
  273. </tr>
  274. </table>
  275. </div><div class="memdoc">
  276. </div>
  277. </div>
  278. <a class="anchor" id="a56489df9a2d1844419f2b0c104516657"></a>
  279. <div class="memitem">
  280. <div class="memproto">
  281. <table class="memname">
  282. <tr>
  283. <td class="memname">#define RELAIS_POWER&#160;&#160;&#160;28</td>
  284. </tr>
  285. </table>
  286. </div><div class="memdoc">
  287. </div>
  288. </div>
  289. <a class="anchor" id="a9723c5da9e57e2b3a1c3ec7b635cee53"></a>
  290. <div class="memitem">
  291. <div class="memproto">
  292. <table class="memname">
  293. <tr>
  294. <td class="memname">#define RELAIS_PUMP&#160;&#160;&#160;25</td>
  295. </tr>
  296. </table>
  297. </div><div class="memdoc">
  298. </div>
  299. </div>
  300. <a class="anchor" id="a39a999d4c82a1021ee63072abe804946"></a>
  301. <div class="memitem">
  302. <div class="memproto">
  303. <table class="memname">
  304. <tr>
  305. <td class="memname">#define TIME_BUTTONLONGPRESS&#160;&#160;&#160;3</td>
  306. </tr>
  307. </table>
  308. </div><div class="memdoc">
  309. </div>
  310. </div>
  311. <h2 class="groupheader">Enumeration Type Documentation</h2>
  312. <a class="anchor" id="aa51a8c9f6b926aa9e9c5dd38249d3f68"></a>
  313. <div class="memitem">
  314. <div class="memproto">
  315. <table class="memname">
  316. <tr>
  317. <td class="memname">enum <a class="el" href="hal_8h.html#aa51a8c9f6b926aa9e9c5dd38249d3f68">HalSig</a></td>
  318. </tr>
  319. </table>
  320. </div><div class="memdoc">
  321. <table class="fieldtable">
  322. <tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a class="anchor" id="aa51a8c9f6b926aa9e9c5dd38249d3f68a4f6585385aaee8e6a336fb31e8713751"></a>SigInt0Psh&#160;</td><td class="fielddoc">
  323. </td></tr>
  324. <tr><td class="fieldname"><a class="anchor" id="aa51a8c9f6b926aa9e9c5dd38249d3f68ae70d75d9c016f72d315ce0f375425ae3"></a>SigInt0Rls&#160;</td><td class="fielddoc">
  325. </td></tr>
  326. <tr><td class="fieldname"><a class="anchor" id="aa51a8c9f6b926aa9e9c5dd38249d3f68ae12ff99a3219da47e0c3c2ebb690906e"></a>SigInt0RlsLong&#160;</td><td class="fielddoc">
  327. </td></tr>
  328. <tr><td class="fieldname"><a class="anchor" id="aa51a8c9f6b926aa9e9c5dd38249d3f68a5fd8970919f375d9f3baaaa053865ce2"></a>SigInt1Psh&#160;</td><td class="fielddoc">
  329. </td></tr>
  330. <tr><td class="fieldname"><a class="anchor" id="aa51a8c9f6b926aa9e9c5dd38249d3f68aa85940fc659570c5b7ec2d8e0ed3eeae"></a>SigInt1Rls&#160;</td><td class="fielddoc">
  331. </td></tr>
  332. <tr><td class="fieldname"><a class="anchor" id="aa51a8c9f6b926aa9e9c5dd38249d3f68a1a7c6bd95f0ccdf91bc363cc8a638b73"></a>SigInt1RlsLong&#160;</td><td class="fielddoc">
  333. </td></tr>
  334. <tr><td class="fieldname"><a class="anchor" id="aa51a8c9f6b926aa9e9c5dd38249d3f68abdd48e173224114754f253d764540ec9"></a>SigPressCls&#160;</td><td class="fielddoc">
  335. </td></tr>
  336. <tr><td class="fieldname"><a class="anchor" id="aa51a8c9f6b926aa9e9c5dd38249d3f68a683f7a77d5c63e835b2a72ab1c540fe4"></a>SigPressOpn&#160;</td><td class="fielddoc">
  337. </td></tr>
  338. <tr><td class="fieldname"><a class="anchor" id="aa51a8c9f6b926aa9e9c5dd38249d3f68a7f18f13ecf372adaf681e706ad051fd3"></a>SigProxOpn&#160;</td><td class="fielddoc">
  339. </td></tr>
  340. <tr><td class="fieldname"><a class="anchor" id="aa51a8c9f6b926aa9e9c5dd38249d3f68ac53b2d92b9e3b1652f173e29db5b523d"></a>SigProxCvrd&#160;</td><td class="fielddoc">
  341. </td></tr>
  342. <tr><td class="fieldname"><a class="anchor" id="aa51a8c9f6b926aa9e9c5dd38249d3f68a4f8316fcd4daf8fdee99ad3414c00857"></a>SigBrewOn&#160;</td><td class="fielddoc">
  343. </td></tr>
  344. <tr><td class="fieldname"><a class="anchor" id="aa51a8c9f6b926aa9e9c5dd38249d3f68a6d3fe49429343ea09a007c2236db9382"></a>SigBrewOff&#160;</td><td class="fielddoc">
  345. </td></tr>
  346. </table>
  347. </div>
  348. </div>
  349. <h2 class="groupheader">Function Documentation</h2>
  350. <a class="anchor" id="a1a0d534518ff19bf5b023dfe64d141db"></a>
  351. <div class="memitem">
  352. <div class="memproto">
  353. <table class="memname">
  354. <tr>
  355. <td class="memname">float halGetFlow </td>
  356. <td>(</td>
  357. <td class="paramtype">void&#160;</td>
  358. <td class="paramname"></td><td>)</td>
  359. <td></td>
  360. </tr>
  361. </table>
  362. </div><div class="memdoc">
  363. <p>Returns total flow trough sensor in ml. </p>
  364. </div>
  365. </div>
  366. <a class="anchor" id="af5609d1b9c9b6bde787cdca47b3b0a4f"></a>
  367. <div class="memitem">
  368. <div class="memproto">
  369. <table class="memname">
  370. <tr>
  371. <td class="memname">int halGetInt0 </td>
  372. <td>(</td>
  373. <td class="paramtype">void&#160;</td>
  374. <td class="paramname"></td><td>)</td>
  375. <td></td>
  376. </tr>
  377. </table>
  378. </div><div class="memdoc">
  379. <p>Returns the value of the top button Int0 (low active) </p>
  380. <dl class="section return"><dt>Returns</dt><dd>LOW or HIGH </dd></dl>
  381. </div>
  382. </div>
  383. <a class="anchor" id="afe1e8d0d1237d0f128d50a5b146002a2"></a>
  384. <div class="memitem">
  385. <div class="memproto">
  386. <table class="memname">
  387. <tr>
  388. <td class="memname">int halGetInt1 </td>
  389. <td>(</td>
  390. <td class="paramtype">void&#160;</td>
  391. <td class="paramname"></td><td>)</td>
  392. <td></td>
  393. </tr>
  394. </table>
  395. </div><div class="memdoc">
  396. <p>Returns the value of the bottom button Int1 (low active) </p>
  397. <dl class="section return"><dt>Returns</dt><dd>LOW or HIGH </dd></dl>
  398. </div>
  399. </div>
  400. <a class="anchor" id="a1d22d01f1a6a6789f2816e27bbcb0504"></a>
  401. <div class="memitem">
  402. <div class="memproto">
  403. <table class="memname">
  404. <tr>
  405. <td class="memname">int halGetRelaisState </td>
  406. <td>(</td>
  407. <td class="paramtype">int&#160;</td>
  408. <td class="paramname"><em>relais</em></td><td>)</td>
  409. <td></td>
  410. </tr>
  411. </table>
  412. </div><div class="memdoc">
  413. <p>Returns the state of the relais relais Returns HIGH when Relais is ON. </p>
  414. <dl class="params"><dt>Parameters</dt><dd>
  415. <table class="params">
  416. <tr><td class="paramname">relais</td><td>Relais ID </td></tr>
  417. </table>
  418. </dd>
  419. </dl>
  420. </div>
  421. </div>
  422. <a class="anchor" id="afd89c1650df524d95aef39b8bc38170d"></a>
  423. <div class="memitem">
  424. <div class="memproto">
  425. <table class="memname">
  426. <tr>
  427. <td class="memname">void halInit </td>
  428. <td>(</td>
  429. <td class="paramtype">void&#160;</td>
  430. <td class="paramname"></td><td>)</td>
  431. <td></td>
  432. </tr>
  433. </table>
  434. </div><div class="memdoc">
  435. <p>Initializes HAL. </p>
  436. </div>
  437. </div>
  438. <a class="anchor" id="a597258a80a0bb18db649d01b0893c99f"></a>
  439. <div class="memitem">
  440. <div class="memproto">
  441. <table class="memname">
  442. <tr>
  443. <td class="memname">void halInt0 </td>
  444. <td>(</td>
  445. <td class="paramtype">void&#160;</td>
  446. <td class="paramname"></td><td>)</td>
  447. <td></td>
  448. </tr>
  449. </table>
  450. </div><div class="memdoc">
  451. <p>Interrupt routine for Int0 (Top button) </p>
  452. </div>
  453. </div>
  454. <a class="anchor" id="aa52d1bfb2ca68e499ad83d9b0d1ba275"></a>
  455. <div class="memitem">
  456. <div class="memproto">
  457. <table class="memname">
  458. <tr>
  459. <td class="memname">void halInt0TimerHandler </td>
  460. <td>(</td>
  461. <td class="paramtype">void&#160;</td>
  462. <td class="paramname"></td><td>)</td>
  463. <td></td>
  464. </tr>
  465. </table>
  466. </div><div class="memdoc">
  467. </div>
  468. </div>
  469. <a class="anchor" id="a603aaa9c0c3cfef8b185df5c7f4921c3"></a>
  470. <div class="memitem">
  471. <div class="memproto">
  472. <table class="memname">
  473. <tr>
  474. <td class="memname">void halInt1 </td>
  475. <td>(</td>
  476. <td class="paramtype">void&#160;</td>
  477. <td class="paramname"></td><td>)</td>
  478. <td></td>
  479. </tr>
  480. </table>
  481. </div><div class="memdoc">
  482. <p>Interrupt routine for Int1 (Bottom button) </p>
  483. </div>
  484. </div>
  485. <a class="anchor" id="ad56f6e1b04c236040717eadfd806c244"></a>
  486. <div class="memitem">
  487. <div class="memproto">
  488. <table class="memname">
  489. <tr>
  490. <td class="memname">void halInt1TimerHandler </td>
  491. <td>(</td>
  492. <td class="paramtype">void&#160;</td>
  493. <td class="paramname"></td><td>)</td>
  494. <td></td>
  495. </tr>
  496. </table>
  497. </div><div class="memdoc">
  498. </div>
  499. </div>
  500. <a class="anchor" id="ace9ace8c7e0012157569f446d4cb8c52"></a>
  501. <div class="memitem">
  502. <div class="memproto">
  503. <table class="memname">
  504. <tr>
  505. <td class="memname">void halIntFlow </td>
  506. <td>(</td>
  507. <td class="paramtype">void&#160;</td>
  508. <td class="paramname"></td><td>)</td>
  509. <td></td>
  510. </tr>
  511. </table>
  512. </div><div class="memdoc">
  513. <p>Interrupt routine for the flow sensor It counts the edgdes and stores the value in flowcnt. </p>
  514. </div>
  515. </div>
  516. <a class="anchor" id="a73067106de2bbcf98bcc3a06cbf3b000"></a>
  517. <div class="memitem">
  518. <div class="memproto">
  519. <table class="memname">
  520. <tr>
  521. <td class="memname">void halIntPressure </td>
  522. <td>(</td>
  523. <td class="paramtype">void&#160;</td>
  524. <td class="paramname"></td><td>)</td>
  525. <td></td>
  526. </tr>
  527. </table>
  528. </div><div class="memdoc">
  529. <p>Interrupt routine for the pressure control. </p>
  530. </div>
  531. </div>
  532. <a class="anchor" id="a0622583e0c8453a6d6963964ad7e7122"></a>
  533. <div class="memitem">
  534. <div class="memproto">
  535. <table class="memname">
  536. <tr>
  537. <td class="memname">void halIntProximity </td>
  538. <td>(</td>
  539. <td class="paramtype">void&#160;</td>
  540. <td class="paramname"></td><td>)</td>
  541. <td></td>
  542. </tr>
  543. </table>
  544. </div><div class="memdoc">
  545. <p>Method to handle toggle of the proximity sensor. </p>
  546. </div>
  547. </div>
  548. <a class="anchor" id="a01f43f0666520e8d8af65e94fd82a5eb"></a>
  549. <div class="memitem">
  550. <div class="memproto">
  551. <table class="memname">
  552. <tr>
  553. <td class="memname">bool halIsHeating </td>
  554. <td>(</td>
  555. <td class="paramtype">void&#160;</td>
  556. <td class="paramname"></td><td>)</td>
  557. <td></td>
  558. </tr>
  559. </table>
  560. </div><div class="memdoc">
  561. <p>Reads the status of the Pressure Control. </p>
  562. <dl class="section return"><dt>Returns</dt><dd>0 for closed Pressure Control(heating) and 1 for open </dd></dl>
  563. </div>
  564. </div>
  565. <a class="anchor" id="a8cefe61db8caf1cbdbc35f680744a3eb"></a>
  566. <div class="memitem">
  567. <div class="memproto">
  568. <table class="memname">
  569. <tr>
  570. <td class="memname">void halMachineOff </td>
  571. <td>(</td>
  572. <td class="paramtype">void&#160;</td>
  573. <td class="paramname"></td><td>)</td>
  574. <td></td>
  575. </tr>
  576. </table>
  577. </div><div class="memdoc">
  578. <p>Turn machine off. </p>
  579. </div>
  580. </div>
  581. <a class="anchor" id="a80e05d7e336073450da3168992d58754"></a>
  582. <div class="memitem">
  583. <div class="memproto">
  584. <table class="memname">
  585. <tr>
  586. <td class="memname">void halMachineOn </td>
  587. <td>(</td>
  588. <td class="paramtype">void&#160;</td>
  589. <td class="paramname"></td><td>)</td>
  590. <td></td>
  591. </tr>
  592. </table>
  593. </div><div class="memdoc">
  594. <p>Turn machine on. </p>
  595. </div>
  596. </div>
  597. <a class="anchor" id="a52c001b5136b02e19bd00282a137631d"></a>
  598. <div class="memitem">
  599. <div class="memproto">
  600. <table class="memname">
  601. <tr>
  602. <td class="memname">bool halProxSensorCovered </td>
  603. <td>(</td>
  604. <td class="paramtype">void&#160;</td>
  605. <td class="paramname"></td><td>)</td>
  606. <td></td>
  607. </tr>
  608. </table>
  609. </div><div class="memdoc">
  610. <p>Returns status of the proximity switch. </p>
  611. <dl class="section return"><dt>Returns</dt><dd>1 if the proximity switch is covered and 0 if uncovered </dd></dl>
  612. </div>
  613. </div>
  614. <a class="anchor" id="a25c63f62c18555fc1b9b50bcd29f1c7d"></a>
  615. <div class="memitem">
  616. <div class="memproto">
  617. <table class="memname">
  618. <tr>
  619. <td class="memname">void halRelaisOff </td>
  620. <td>(</td>
  621. <td class="paramtype">int&#160;</td>
  622. <td class="paramname"><em>relais</em></td><td>)</td>
  623. <td></td>
  624. </tr>
  625. </table>
  626. </div><div class="memdoc">
  627. <p>Switches relais off. </p>
  628. <dl class="params"><dt>Parameters</dt><dd>
  629. <table class="params">
  630. <tr><td class="paramname">relais</td><td>Relais ID </td></tr>
  631. </table>
  632. </dd>
  633. </dl>
  634. </div>
  635. </div>
  636. <a class="anchor" id="a33e09a3806bdcd5c711e557178335763"></a>
  637. <div class="memitem">
  638. <div class="memproto">
  639. <table class="memname">
  640. <tr>
  641. <td class="memname">void halRelaisOn </td>
  642. <td>(</td>
  643. <td class="paramtype">int&#160;</td>
  644. <td class="paramname"><em>relais</em></td><td>)</td>
  645. <td></td>
  646. </tr>
  647. </table>
  648. </div><div class="memdoc">
  649. <p>Switches relais on. </p>
  650. <dl class="params"><dt>Parameters</dt><dd>
  651. <table class="params">
  652. <tr><td class="paramname">relais</td><td>Relais ID </td></tr>
  653. </table>
  654. </dd>
  655. </dl>
  656. </div>
  657. </div>
  658. <a class="anchor" id="a9b67b274703f0c42834f4b447d5c04a2"></a>
  659. <div class="memitem">
  660. <div class="memproto">
  661. <table class="memname">
  662. <tr>
  663. <td class="memname">void halRelaisSet </td>
  664. <td>(</td>
  665. <td class="paramtype">int&#160;</td>
  666. <td class="paramname"><em>relais</em>, </td>
  667. </tr>
  668. <tr>
  669. <td class="paramkey"></td>
  670. <td></td>
  671. <td class="paramtype">int&#160;</td>
  672. <td class="paramname"><em>state</em>&#160;</td>
  673. </tr>
  674. <tr>
  675. <td></td>
  676. <td>)</td>
  677. <td></td><td></td>
  678. </tr>
  679. </table>
  680. </div><div class="memdoc">
  681. <p>Switches relais to state. </p>
  682. <dl class="params"><dt>Parameters</dt><dd>
  683. <table class="params">
  684. <tr><td class="paramname">relais</td><td>Relais ID </td></tr>
  685. <tr><td class="paramname">state</td><td>LOW(0) or HIGH(1) </td></tr>
  686. </table>
  687. </dd>
  688. </dl>
  689. </div>
  690. </div>
  691. <a class="anchor" id="a99d0fb6a80635b679cf4cd1fa90b483d"></a>
  692. <div class="memitem">
  693. <div class="memproto">
  694. <table class="memname">
  695. <tr>
  696. <td class="memname">void halResetFlow </td>
  697. <td>(</td>
  698. <td class="paramtype">void&#160;</td>
  699. <td class="paramname"></td><td>)</td>
  700. <td></td>
  701. </tr>
  702. </table>
  703. </div><div class="memdoc">
  704. <p>Resets the Flow counter. </p>
  705. </div>
  706. </div>
  707. <a class="anchor" id="a4fa1c41f2dd3c24e13feaa6be70ad426"></a>
  708. <div class="memitem">
  709. <div class="memproto">
  710. <table class="memname">
  711. <tr>
  712. <td class="memname">void halSendSignal </td>
  713. <td>(</td>
  714. <td class="paramtype">int&#160;</td>
  715. <td class="paramname"><em>val</em></td><td>)</td>
  716. <td></td>
  717. </tr>
  718. </table>
  719. </div><div class="memdoc">
  720. <p>send Signal to coffee thread </p>
  721. <dl class="params"><dt>Parameters</dt><dd>
  722. <table class="params">
  723. <tr><td class="paramname">val</td><td>Integer value assigned to signal </td></tr>
  724. </table>
  725. </dd>
  726. </dl>
  727. </div>
  728. </div>
  729. </div><!-- contents -->
  730. <!-- start footer part -->
  731. <hr class="footer"/><address class="footer"><small>
  732. Generated by &#160;<a href="http://www.doxygen.org/index.html">
  733. <img class="footer" src="doxygen.png" alt="doxygen"/>
  734. </a> 1.8.10
  735. </small></address>
  736. </body>
  737. </html>