hal_8cpp.html 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695
  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.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">hal.cpp File Reference</div> </div>
  87. </div><!--header-->
  88. <div class="contents">
  89. <div class="textblock"><code>#include &lt;wiringPi.h&gt;</code><br />
  90. <code>#include &lt;stdlib.h&gt;</code><br />
  91. <code>#include &lt;errno.h&gt;</code><br />
  92. <code>#include &lt;string.h&gt;</code><br />
  93. <code>#include &lt;signal.h&gt;</code><br />
  94. <code>#include &quot;<a class="el" href="hal_8h_source.html">hal.h</a>&quot;</code><br />
  95. <code>#include &quot;<a class="el" href="global_8h_source.html">global.h</a>&quot;</code><br />
  96. <code>#include &quot;<a class="el" href="logger_8h_source.html">logger.h</a>&quot;</code><br />
  97. <code>#include &quot;<a class="el" href="timer_8h_source.html">timer.h</a>&quot;</code><br />
  98. </div><table class="memberdecls">
  99. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
  100. Functions</h2></td></tr>
  101. <tr class="memitem:afd89c1650df524d95aef39b8bc38170d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hal_8cpp.html#afd89c1650df524d95aef39b8bc38170d">halInit</a> (void)</td></tr>
  102. <tr class="memdesc:afd89c1650df524d95aef39b8bc38170d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes HAL. <a href="#afd89c1650df524d95aef39b8bc38170d">More...</a><br /></td></tr>
  103. <tr class="separator:afd89c1650df524d95aef39b8bc38170d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  104. <tr class="memitem:a33e09a3806bdcd5c711e557178335763"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hal_8cpp.html#a33e09a3806bdcd5c711e557178335763">halRelaisOn</a> (int relais)</td></tr>
  105. <tr class="memdesc:a33e09a3806bdcd5c711e557178335763"><td class="mdescLeft">&#160;</td><td class="mdescRight">Switches relais on. <a href="#a33e09a3806bdcd5c711e557178335763">More...</a><br /></td></tr>
  106. <tr class="separator:a33e09a3806bdcd5c711e557178335763"><td class="memSeparator" colspan="2">&#160;</td></tr>
  107. <tr class="memitem:a25c63f62c18555fc1b9b50bcd29f1c7d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hal_8cpp.html#a25c63f62c18555fc1b9b50bcd29f1c7d">halRelaisOff</a> (int relais)</td></tr>
  108. <tr class="memdesc:a25c63f62c18555fc1b9b50bcd29f1c7d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Switches relais off. <a href="#a25c63f62c18555fc1b9b50bcd29f1c7d">More...</a><br /></td></tr>
  109. <tr class="separator:a25c63f62c18555fc1b9b50bcd29f1c7d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  110. <tr class="memitem:a9b67b274703f0c42834f4b447d5c04a2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hal_8cpp.html#a9b67b274703f0c42834f4b447d5c04a2">halRelaisSet</a> (int relais, int <a class="el" href="coffee_8cpp.html#a89f234133d3efe315836311cbf21c64b">state</a>)</td></tr>
  111. <tr class="memdesc:a9b67b274703f0c42834f4b447d5c04a2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Switches relais to state. <a href="#a9b67b274703f0c42834f4b447d5c04a2">More...</a><br /></td></tr>
  112. <tr class="separator:a9b67b274703f0c42834f4b447d5c04a2"><td class="memSeparator" colspan="2">&#160;</td></tr>
  113. <tr class="memitem:a1d22d01f1a6a6789f2816e27bbcb0504"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hal_8cpp.html#a1d22d01f1a6a6789f2816e27bbcb0504">halGetRelaisState</a> (int relais)</td></tr>
  114. <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>
  115. <tr class="separator:a1d22d01f1a6a6789f2816e27bbcb0504"><td class="memSeparator" colspan="2">&#160;</td></tr>
  116. <tr class="memitem:a597258a80a0bb18db649d01b0893c99f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hal_8cpp.html#a597258a80a0bb18db649d01b0893c99f">halInt0</a> (void)</td></tr>
  117. <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>
  118. <tr class="separator:a597258a80a0bb18db649d01b0893c99f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  119. <tr class="memitem:aa52d1bfb2ca68e499ad83d9b0d1ba275"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hal_8cpp.html#aa52d1bfb2ca68e499ad83d9b0d1ba275">halInt0TimerHandler</a> (void)</td></tr>
  120. <tr class="separator:aa52d1bfb2ca68e499ad83d9b0d1ba275"><td class="memSeparator" colspan="2">&#160;</td></tr>
  121. <tr class="memitem:a603aaa9c0c3cfef8b185df5c7f4921c3"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hal_8cpp.html#a603aaa9c0c3cfef8b185df5c7f4921c3">halInt1</a> (void)</td></tr>
  122. <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>
  123. <tr class="separator:a603aaa9c0c3cfef8b185df5c7f4921c3"><td class="memSeparator" colspan="2">&#160;</td></tr>
  124. <tr class="memitem:ad56f6e1b04c236040717eadfd806c244"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hal_8cpp.html#ad56f6e1b04c236040717eadfd806c244">halInt1TimerHandler</a> (void)</td></tr>
  125. <tr class="separator:ad56f6e1b04c236040717eadfd806c244"><td class="memSeparator" colspan="2">&#160;</td></tr>
  126. <tr class="memitem:ace9ace8c7e0012157569f446d4cb8c52"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hal_8cpp.html#ace9ace8c7e0012157569f446d4cb8c52">halIntFlow</a> (void)</td></tr>
  127. <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>
  128. <tr class="separator:ace9ace8c7e0012157569f446d4cb8c52"><td class="memSeparator" colspan="2">&#160;</td></tr>
  129. <tr class="memitem:a73067106de2bbcf98bcc3a06cbf3b000"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hal_8cpp.html#a73067106de2bbcf98bcc3a06cbf3b000">halIntPressure</a> (void)</td></tr>
  130. <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>
  131. <tr class="separator:a73067106de2bbcf98bcc3a06cbf3b000"><td class="memSeparator" colspan="2">&#160;</td></tr>
  132. <tr class="memitem:a0622583e0c8453a6d6963964ad7e7122"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hal_8cpp.html#a0622583e0c8453a6d6963964ad7e7122">halIntProximity</a> (void)</td></tr>
  133. <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>
  134. <tr class="separator:a0622583e0c8453a6d6963964ad7e7122"><td class="memSeparator" colspan="2">&#160;</td></tr>
  135. <tr class="memitem:a1a0d534518ff19bf5b023dfe64d141db"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hal_8cpp.html#a1a0d534518ff19bf5b023dfe64d141db">halGetFlow</a> (void)</td></tr>
  136. <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>
  137. <tr class="separator:a1a0d534518ff19bf5b023dfe64d141db"><td class="memSeparator" colspan="2">&#160;</td></tr>
  138. <tr class="memitem:a99d0fb6a80635b679cf4cd1fa90b483d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hal_8cpp.html#a99d0fb6a80635b679cf4cd1fa90b483d">halResetFlow</a> (void)</td></tr>
  139. <tr class="memdesc:a99d0fb6a80635b679cf4cd1fa90b483d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Resets the Flow counter. <a href="#a99d0fb6a80635b679cf4cd1fa90b483d">More...</a><br /></td></tr>
  140. <tr class="separator:a99d0fb6a80635b679cf4cd1fa90b483d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  141. <tr class="memitem:a01f43f0666520e8d8af65e94fd82a5eb"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hal_8cpp.html#a01f43f0666520e8d8af65e94fd82a5eb">halIsHeating</a> (void)</td></tr>
  142. <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>
  143. <tr class="separator:a01f43f0666520e8d8af65e94fd82a5eb"><td class="memSeparator" colspan="2">&#160;</td></tr>
  144. <tr class="memitem:a52c001b5136b02e19bd00282a137631d"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hal_8cpp.html#a52c001b5136b02e19bd00282a137631d">halProxSensorCovered</a> (void)</td></tr>
  145. <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>
  146. <tr class="separator:a52c001b5136b02e19bd00282a137631d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  147. <tr class="memitem:af5609d1b9c9b6bde787cdca47b3b0a4f"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hal_8cpp.html#af5609d1b9c9b6bde787cdca47b3b0a4f">halGetInt0</a> (void)</td></tr>
  148. <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>
  149. <tr class="separator:af5609d1b9c9b6bde787cdca47b3b0a4f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  150. <tr class="memitem:afe1e8d0d1237d0f128d50a5b146002a2"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hal_8cpp.html#afe1e8d0d1237d0f128d50a5b146002a2">halGetInt1</a> (void)</td></tr>
  151. <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>
  152. <tr class="separator:afe1e8d0d1237d0f128d50a5b146002a2"><td class="memSeparator" colspan="2">&#160;</td></tr>
  153. <tr class="memitem:a252f49661ac23a045bb0d9d20997dfa4"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hal_8cpp.html#a252f49661ac23a045bb0d9d20997dfa4">halSendSignal</a> (int val)</td></tr>
  154. <tr class="memdesc:a252f49661ac23a045bb0d9d20997dfa4"><td class="mdescLeft">&#160;</td><td class="mdescRight">send Signal to coffee thread <a href="#a252f49661ac23a045bb0d9d20997dfa4">More...</a><br /></td></tr>
  155. <tr class="separator:a252f49661ac23a045bb0d9d20997dfa4"><td class="memSeparator" colspan="2">&#160;</td></tr>
  156. <tr class="memitem:a80e05d7e336073450da3168992d58754"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hal_8cpp.html#a80e05d7e336073450da3168992d58754">halMachineOn</a> (void)</td></tr>
  157. <tr class="memdesc:a80e05d7e336073450da3168992d58754"><td class="mdescLeft">&#160;</td><td class="mdescRight">Turn machine on. <a href="#a80e05d7e336073450da3168992d58754">More...</a><br /></td></tr>
  158. <tr class="separator:a80e05d7e336073450da3168992d58754"><td class="memSeparator" colspan="2">&#160;</td></tr>
  159. <tr class="memitem:a8cefe61db8caf1cbdbc35f680744a3eb"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hal_8cpp.html#a8cefe61db8caf1cbdbc35f680744a3eb">halMachineOff</a> (void)</td></tr>
  160. <tr class="memdesc:a8cefe61db8caf1cbdbc35f680744a3eb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Turn machine off. <a href="#a8cefe61db8caf1cbdbc35f680744a3eb">More...</a><br /></td></tr>
  161. <tr class="separator:a8cefe61db8caf1cbdbc35f680744a3eb"><td class="memSeparator" colspan="2">&#160;</td></tr>
  162. </table><table class="memberdecls">
  163. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
  164. Variables</h2></td></tr>
  165. <tr class="memitem:ae5ae572f06dd4838027976f9ab3fdc62"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hal_8cpp.html#ae5ae572f06dd4838027976f9ab3fdc62">flowcnt</a> = 0</td></tr>
  166. <tr class="separator:ae5ae572f06dd4838027976f9ab3fdc62"><td class="memSeparator" colspan="2">&#160;</td></tr>
  167. <tr class="memitem:a3aca866b54d36fe04db7c5ab8275de1e"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hal_8cpp.html#a3aca866b54d36fe04db7c5ab8275de1e">Int0Time</a></td></tr>
  168. <tr class="separator:a3aca866b54d36fe04db7c5ab8275de1e"><td class="memSeparator" colspan="2">&#160;</td></tr>
  169. <tr class="memitem:a343efe067e2fa2affd5f15ef3447aaa1"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hal_8cpp.html#a343efe067e2fa2affd5f15ef3447aaa1">Int1Time</a></td></tr>
  170. <tr class="separator:a343efe067e2fa2affd5f15ef3447aaa1"><td class="memSeparator" colspan="2">&#160;</td></tr>
  171. <tr class="memitem:a9f94cedad944b6df4483a76b0a4d2b0a"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hal_8cpp.html#a9f94cedad944b6df4483a76b0a4d2b0a">flagIgnoreRlsInt0</a></td></tr>
  172. <tr class="separator:a9f94cedad944b6df4483a76b0a4d2b0a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  173. <tr class="memitem:a8980baab65c90a16ef8189ed5b1ab7fe"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hal_8cpp.html#a8980baab65c90a16ef8189ed5b1ab7fe">flagIgnoreRlsInt1</a></td></tr>
  174. <tr class="separator:a8980baab65c90a16ef8189ed5b1ab7fe"><td class="memSeparator" colspan="2">&#160;</td></tr>
  175. <tr class="memitem:ae52d2e251c46b1fa1f9369cf115dc5b2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classtimer.html">timer</a> Int0Timer &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hal_8cpp.html#ae52d2e251c46b1fa1f9369cf115dc5b2">halInt0TimerHandler</a></td></tr>
  176. <tr class="separator:ae52d2e251c46b1fa1f9369cf115dc5b2"><td class="memSeparator" colspan="2">&#160;</td></tr>
  177. <tr class="memitem:af4bfd5892199d0ffad5ba51c44d4295e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classtimer.html">timer</a> Int1Timer &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hal_8cpp.html#af4bfd5892199d0ffad5ba51c44d4295e">halInt1TimerHandler</a></td></tr>
  178. <tr class="separator:af4bfd5892199d0ffad5ba51c44d4295e"><td class="memSeparator" colspan="2">&#160;</td></tr>
  179. </table>
  180. <h2 class="groupheader">Function Documentation</h2>
  181. <a class="anchor" id="a1a0d534518ff19bf5b023dfe64d141db"></a>
  182. <div class="memitem">
  183. <div class="memproto">
  184. <table class="memname">
  185. <tr>
  186. <td class="memname">float halGetFlow </td>
  187. <td>(</td>
  188. <td class="paramtype">void&#160;</td>
  189. <td class="paramname"></td><td>)</td>
  190. <td></td>
  191. </tr>
  192. </table>
  193. </div><div class="memdoc">
  194. <p>Returns total flow trough sensor in ml. </p>
  195. </div>
  196. </div>
  197. <a class="anchor" id="af5609d1b9c9b6bde787cdca47b3b0a4f"></a>
  198. <div class="memitem">
  199. <div class="memproto">
  200. <table class="memname">
  201. <tr>
  202. <td class="memname">int halGetInt0 </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>Returns the value of the top button Int0 (low active) </p>
  211. <dl class="section return"><dt>Returns</dt><dd>LOW or HIGH </dd></dl>
  212. </div>
  213. </div>
  214. <a class="anchor" id="afe1e8d0d1237d0f128d50a5b146002a2"></a>
  215. <div class="memitem">
  216. <div class="memproto">
  217. <table class="memname">
  218. <tr>
  219. <td class="memname">int halGetInt1 </td>
  220. <td>(</td>
  221. <td class="paramtype">void&#160;</td>
  222. <td class="paramname"></td><td>)</td>
  223. <td></td>
  224. </tr>
  225. </table>
  226. </div><div class="memdoc">
  227. <p>Returns the value of the bottom button Int1 (low active) </p>
  228. <dl class="section return"><dt>Returns</dt><dd>LOW or HIGH </dd></dl>
  229. </div>
  230. </div>
  231. <a class="anchor" id="a1d22d01f1a6a6789f2816e27bbcb0504"></a>
  232. <div class="memitem">
  233. <div class="memproto">
  234. <table class="memname">
  235. <tr>
  236. <td class="memname">int halGetRelaisState </td>
  237. <td>(</td>
  238. <td class="paramtype">int&#160;</td>
  239. <td class="paramname"><em>relais</em></td><td>)</td>
  240. <td></td>
  241. </tr>
  242. </table>
  243. </div><div class="memdoc">
  244. <p>Returns the state of the relais relais Returns HIGH when Relais is ON. </p>
  245. <dl class="params"><dt>Parameters</dt><dd>
  246. <table class="params">
  247. <tr><td class="paramname">relais</td><td>Relais ID </td></tr>
  248. </table>
  249. </dd>
  250. </dl>
  251. </div>
  252. </div>
  253. <a class="anchor" id="afd89c1650df524d95aef39b8bc38170d"></a>
  254. <div class="memitem">
  255. <div class="memproto">
  256. <table class="memname">
  257. <tr>
  258. <td class="memname">void halInit </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. <p>Initializes HAL. </p>
  267. </div>
  268. </div>
  269. <a class="anchor" id="a597258a80a0bb18db649d01b0893c99f"></a>
  270. <div class="memitem">
  271. <div class="memproto">
  272. <table class="memname">
  273. <tr>
  274. <td class="memname">void halInt0 </td>
  275. <td>(</td>
  276. <td class="paramtype">void&#160;</td>
  277. <td class="paramname"></td><td>)</td>
  278. <td></td>
  279. </tr>
  280. </table>
  281. </div><div class="memdoc">
  282. <p>Interrupt routine for Int0 (Top button) </p>
  283. </div>
  284. </div>
  285. <a class="anchor" id="aa52d1bfb2ca68e499ad83d9b0d1ba275"></a>
  286. <div class="memitem">
  287. <div class="memproto">
  288. <table class="memname">
  289. <tr>
  290. <td class="memname">void halInt0TimerHandler </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. </div>
  299. </div>
  300. <a class="anchor" id="a603aaa9c0c3cfef8b185df5c7f4921c3"></a>
  301. <div class="memitem">
  302. <div class="memproto">
  303. <table class="memname">
  304. <tr>
  305. <td class="memname">void halInt1 </td>
  306. <td>(</td>
  307. <td class="paramtype">void&#160;</td>
  308. <td class="paramname"></td><td>)</td>
  309. <td></td>
  310. </tr>
  311. </table>
  312. </div><div class="memdoc">
  313. <p>Interrupt routine for Int1 (Bottom button) </p>
  314. </div>
  315. </div>
  316. <a class="anchor" id="ad56f6e1b04c236040717eadfd806c244"></a>
  317. <div class="memitem">
  318. <div class="memproto">
  319. <table class="memname">
  320. <tr>
  321. <td class="memname">void halInt1TimerHandler </td>
  322. <td>(</td>
  323. <td class="paramtype">void&#160;</td>
  324. <td class="paramname"></td><td>)</td>
  325. <td></td>
  326. </tr>
  327. </table>
  328. </div><div class="memdoc">
  329. </div>
  330. </div>
  331. <a class="anchor" id="ace9ace8c7e0012157569f446d4cb8c52"></a>
  332. <div class="memitem">
  333. <div class="memproto">
  334. <table class="memname">
  335. <tr>
  336. <td class="memname">void halIntFlow </td>
  337. <td>(</td>
  338. <td class="paramtype">void&#160;</td>
  339. <td class="paramname"></td><td>)</td>
  340. <td></td>
  341. </tr>
  342. </table>
  343. </div><div class="memdoc">
  344. <p>Interrupt routine for the flow sensor It counts the edgdes and stores the value in flowcnt. </p>
  345. </div>
  346. </div>
  347. <a class="anchor" id="a73067106de2bbcf98bcc3a06cbf3b000"></a>
  348. <div class="memitem">
  349. <div class="memproto">
  350. <table class="memname">
  351. <tr>
  352. <td class="memname">void halIntPressure </td>
  353. <td>(</td>
  354. <td class="paramtype">void&#160;</td>
  355. <td class="paramname"></td><td>)</td>
  356. <td></td>
  357. </tr>
  358. </table>
  359. </div><div class="memdoc">
  360. <p>Interrupt routine for the pressure control. </p>
  361. </div>
  362. </div>
  363. <a class="anchor" id="a0622583e0c8453a6d6963964ad7e7122"></a>
  364. <div class="memitem">
  365. <div class="memproto">
  366. <table class="memname">
  367. <tr>
  368. <td class="memname">void halIntProximity </td>
  369. <td>(</td>
  370. <td class="paramtype">void&#160;</td>
  371. <td class="paramname"></td><td>)</td>
  372. <td></td>
  373. </tr>
  374. </table>
  375. </div><div class="memdoc">
  376. <p>Method to handle toggle of the proximity sensor. </p>
  377. </div>
  378. </div>
  379. <a class="anchor" id="a01f43f0666520e8d8af65e94fd82a5eb"></a>
  380. <div class="memitem">
  381. <div class="memproto">
  382. <table class="memname">
  383. <tr>
  384. <td class="memname">bool halIsHeating </td>
  385. <td>(</td>
  386. <td class="paramtype">void&#160;</td>
  387. <td class="paramname"></td><td>)</td>
  388. <td></td>
  389. </tr>
  390. </table>
  391. </div><div class="memdoc">
  392. <p>Reads the status of the Pressure Control. </p>
  393. <dl class="section return"><dt>Returns</dt><dd>0 for closed Pressure Control(heating) and 1 for open </dd></dl>
  394. </div>
  395. </div>
  396. <a class="anchor" id="a8cefe61db8caf1cbdbc35f680744a3eb"></a>
  397. <div class="memitem">
  398. <div class="memproto">
  399. <table class="memname">
  400. <tr>
  401. <td class="memname">void halMachineOff </td>
  402. <td>(</td>
  403. <td class="paramtype">void&#160;</td>
  404. <td class="paramname"></td><td>)</td>
  405. <td></td>
  406. </tr>
  407. </table>
  408. </div><div class="memdoc">
  409. <p>Turn machine off. </p>
  410. </div>
  411. </div>
  412. <a class="anchor" id="a80e05d7e336073450da3168992d58754"></a>
  413. <div class="memitem">
  414. <div class="memproto">
  415. <table class="memname">
  416. <tr>
  417. <td class="memname">void halMachineOn </td>
  418. <td>(</td>
  419. <td class="paramtype">void&#160;</td>
  420. <td class="paramname"></td><td>)</td>
  421. <td></td>
  422. </tr>
  423. </table>
  424. </div><div class="memdoc">
  425. <p>Turn machine on. </p>
  426. </div>
  427. </div>
  428. <a class="anchor" id="a52c001b5136b02e19bd00282a137631d"></a>
  429. <div class="memitem">
  430. <div class="memproto">
  431. <table class="memname">
  432. <tr>
  433. <td class="memname">bool halProxSensorCovered </td>
  434. <td>(</td>
  435. <td class="paramtype">void&#160;</td>
  436. <td class="paramname"></td><td>)</td>
  437. <td></td>
  438. </tr>
  439. </table>
  440. </div><div class="memdoc">
  441. <p>Returns status of the proximity switch. </p>
  442. <dl class="section return"><dt>Returns</dt><dd>1 if the proximity switch is covered and 0 if uncovered </dd></dl>
  443. </div>
  444. </div>
  445. <a class="anchor" id="a25c63f62c18555fc1b9b50bcd29f1c7d"></a>
  446. <div class="memitem">
  447. <div class="memproto">
  448. <table class="memname">
  449. <tr>
  450. <td class="memname">void halRelaisOff </td>
  451. <td>(</td>
  452. <td class="paramtype">int&#160;</td>
  453. <td class="paramname"><em>relais</em></td><td>)</td>
  454. <td></td>
  455. </tr>
  456. </table>
  457. </div><div class="memdoc">
  458. <p>Switches relais off. </p>
  459. <dl class="params"><dt>Parameters</dt><dd>
  460. <table class="params">
  461. <tr><td class="paramname">relais</td><td>Relais ID </td></tr>
  462. </table>
  463. </dd>
  464. </dl>
  465. </div>
  466. </div>
  467. <a class="anchor" id="a33e09a3806bdcd5c711e557178335763"></a>
  468. <div class="memitem">
  469. <div class="memproto">
  470. <table class="memname">
  471. <tr>
  472. <td class="memname">void halRelaisOn </td>
  473. <td>(</td>
  474. <td class="paramtype">int&#160;</td>
  475. <td class="paramname"><em>relais</em></td><td>)</td>
  476. <td></td>
  477. </tr>
  478. </table>
  479. </div><div class="memdoc">
  480. <p>Switches relais on. </p>
  481. <dl class="params"><dt>Parameters</dt><dd>
  482. <table class="params">
  483. <tr><td class="paramname">relais</td><td>Relais ID </td></tr>
  484. </table>
  485. </dd>
  486. </dl>
  487. </div>
  488. </div>
  489. <a class="anchor" id="a9b67b274703f0c42834f4b447d5c04a2"></a>
  490. <div class="memitem">
  491. <div class="memproto">
  492. <table class="memname">
  493. <tr>
  494. <td class="memname">void halRelaisSet </td>
  495. <td>(</td>
  496. <td class="paramtype">int&#160;</td>
  497. <td class="paramname"><em>relais</em>, </td>
  498. </tr>
  499. <tr>
  500. <td class="paramkey"></td>
  501. <td></td>
  502. <td class="paramtype">int&#160;</td>
  503. <td class="paramname"><em>state</em>&#160;</td>
  504. </tr>
  505. <tr>
  506. <td></td>
  507. <td>)</td>
  508. <td></td><td></td>
  509. </tr>
  510. </table>
  511. </div><div class="memdoc">
  512. <p>Switches relais to state. </p>
  513. <dl class="params"><dt>Parameters</dt><dd>
  514. <table class="params">
  515. <tr><td class="paramname">relais</td><td>Relais ID </td></tr>
  516. <tr><td class="paramname">state</td><td>LOW(0) or HIGH(1) </td></tr>
  517. </table>
  518. </dd>
  519. </dl>
  520. </div>
  521. </div>
  522. <a class="anchor" id="a99d0fb6a80635b679cf4cd1fa90b483d"></a>
  523. <div class="memitem">
  524. <div class="memproto">
  525. <table class="memname">
  526. <tr>
  527. <td class="memname">void halResetFlow </td>
  528. <td>(</td>
  529. <td class="paramtype">void&#160;</td>
  530. <td class="paramname"></td><td>)</td>
  531. <td></td>
  532. </tr>
  533. </table>
  534. </div><div class="memdoc">
  535. <p>Resets the Flow counter. </p>
  536. </div>
  537. </div>
  538. <a class="anchor" id="a252f49661ac23a045bb0d9d20997dfa4"></a>
  539. <div class="memitem">
  540. <div class="memproto">
  541. <table class="memname">
  542. <tr>
  543. <td class="memname">void halSendSignal </td>
  544. <td>(</td>
  545. <td class="paramtype">int&#160;</td>
  546. <td class="paramname"><em>val</em></td><td>)</td>
  547. <td></td>
  548. </tr>
  549. </table>
  550. </div><div class="memdoc">
  551. <p>send Signal to coffee thread </p>
  552. <dl class="params"><dt>Parameters</dt><dd>
  553. <table class="params">
  554. <tr><td class="paramname">val</td><td>Integer value assigned to signal </td></tr>
  555. </table>
  556. </dd>
  557. </dl>
  558. </div>
  559. </div>
  560. <h2 class="groupheader">Variable Documentation</h2>
  561. <a class="anchor" id="a9f94cedad944b6df4483a76b0a4d2b0a"></a>
  562. <div class="memitem">
  563. <div class="memproto">
  564. <table class="memname">
  565. <tr>
  566. <td class="memname">bool flagIgnoreRlsInt0</td>
  567. </tr>
  568. </table>
  569. </div><div class="memdoc">
  570. </div>
  571. </div>
  572. <a class="anchor" id="a8980baab65c90a16ef8189ed5b1ab7fe"></a>
  573. <div class="memitem">
  574. <div class="memproto">
  575. <table class="memname">
  576. <tr>
  577. <td class="memname">bool flagIgnoreRlsInt1</td>
  578. </tr>
  579. </table>
  580. </div><div class="memdoc">
  581. </div>
  582. </div>
  583. <a class="anchor" id="ae5ae572f06dd4838027976f9ab3fdc62"></a>
  584. <div class="memitem">
  585. <div class="memproto">
  586. <table class="memname">
  587. <tr>
  588. <td class="memname">int flowcnt = 0</td>
  589. </tr>
  590. </table>
  591. </div><div class="memdoc">
  592. </div>
  593. </div>
  594. <a class="anchor" id="ae52d2e251c46b1fa1f9369cf115dc5b2"></a>
  595. <div class="memitem">
  596. <div class="memproto">
  597. <table class="memname">
  598. <tr>
  599. <td class="memname"><a class="el" href="classtimer.html">timer</a> Int0Timer&amp; halInt0TimerHandler</td>
  600. </tr>
  601. </table>
  602. </div><div class="memdoc">
  603. </div>
  604. </div>
  605. <a class="anchor" id="af4bfd5892199d0ffad5ba51c44d4295e"></a>
  606. <div class="memitem">
  607. <div class="memproto">
  608. <table class="memname">
  609. <tr>
  610. <td class="memname"><a class="el" href="classtimer.html">timer</a> Int1Timer&amp; halInt1TimerHandler</td>
  611. </tr>
  612. </table>
  613. </div><div class="memdoc">
  614. </div>
  615. </div>
  616. <a class="anchor" id="a3aca866b54d36fe04db7c5ab8275de1e"></a>
  617. <div class="memitem">
  618. <div class="memproto">
  619. <table class="memname">
  620. <tr>
  621. <td class="memname">int Int0Time</td>
  622. </tr>
  623. </table>
  624. </div><div class="memdoc">
  625. </div>
  626. </div>
  627. <a class="anchor" id="a343efe067e2fa2affd5f15ef3447aaa1"></a>
  628. <div class="memitem">
  629. <div class="memproto">
  630. <table class="memname">
  631. <tr>
  632. <td class="memname">int Int1Time</td>
  633. </tr>
  634. </table>
  635. </div><div class="memdoc">
  636. </div>
  637. </div>
  638. </div><!-- contents -->
  639. <!-- start footer part -->
  640. <hr class="footer"/><address class="footer"><small>
  641. Generated by &#160;<a href="http://www.doxygen.org/index.html">
  642. <img class="footer" src="doxygen.png" alt="doxygen"/>
  643. </a> 1.8.10
  644. </small></address>
  645. </body>
  646. </html>