hal_8cpp.html 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524
  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="lcd_8h_source.html">lcd.h</a>&quot;</code><br />
  95. <code>#include &quot;<a class="el" href="hal_8h_source.html">hal.h</a>&quot;</code><br />
  96. <code>#include &quot;<a class="el" href="global_8h_source.html">global.h</a>&quot;</code><br />
  97. <code>#include &quot;<a class="el" href="logger_8h_source.html">logger.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 state)</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="separator:a597258a80a0bb18db649d01b0893c99f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  118. <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>
  119. <tr class="separator:a603aaa9c0c3cfef8b185df5c7f4921c3"><td class="memSeparator" colspan="2">&#160;</td></tr>
  120. <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>
  121. <tr class="separator:ace9ace8c7e0012157569f446d4cb8c52"><td class="memSeparator" colspan="2">&#160;</td></tr>
  122. <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>
  123. <tr class="memdesc:a73067106de2bbcf98bcc3a06cbf3b000"><td class="mdescLeft">&#160;</td><td class="mdescRight">Method to handle toggle of the pressure control. <a href="#a73067106de2bbcf98bcc3a06cbf3b000">More...</a><br /></td></tr>
  124. <tr class="separator:a73067106de2bbcf98bcc3a06cbf3b000"><td class="memSeparator" colspan="2">&#160;</td></tr>
  125. <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>
  126. <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>
  127. <tr class="separator:a0622583e0c8453a6d6963964ad7e7122"><td class="memSeparator" colspan="2">&#160;</td></tr>
  128. <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>
  129. <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>
  130. <tr class="separator:a1a0d534518ff19bf5b023dfe64d141db"><td class="memSeparator" colspan="2">&#160;</td></tr>
  131. <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>
  132. <tr class="memdesc:a99d0fb6a80635b679cf4cd1fa90b483d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Resets the Flow counter. <a href="#a99d0fb6a80635b679cf4cd1fa90b483d">More...</a><br /></td></tr>
  133. <tr class="separator:a99d0fb6a80635b679cf4cd1fa90b483d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  134. <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>
  135. <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>
  136. <tr class="separator:a01f43f0666520e8d8af65e94fd82a5eb"><td class="memSeparator" colspan="2">&#160;</td></tr>
  137. <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>
  138. <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>
  139. <tr class="separator:a52c001b5136b02e19bd00282a137631d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  140. <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>
  141. <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>
  142. <tr class="separator:af5609d1b9c9b6bde787cdca47b3b0a4f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  143. <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>
  144. <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>
  145. <tr class="separator:afe1e8d0d1237d0f128d50a5b146002a2"><td class="memSeparator" colspan="2">&#160;</td></tr>
  146. <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>
  147. <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>
  148. <tr class="separator:a252f49661ac23a045bb0d9d20997dfa4"><td class="memSeparator" colspan="2">&#160;</td></tr>
  149. </table><table class="memberdecls">
  150. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
  151. Variables</h2></td></tr>
  152. <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>
  153. <tr class="separator:ae5ae572f06dd4838027976f9ab3fdc62"><td class="memSeparator" colspan="2">&#160;</td></tr>
  154. </table>
  155. <h2 class="groupheader">Function Documentation</h2>
  156. <a class="anchor" id="a1a0d534518ff19bf5b023dfe64d141db"></a>
  157. <div class="memitem">
  158. <div class="memproto">
  159. <table class="memname">
  160. <tr>
  161. <td class="memname">float halGetFlow </td>
  162. <td>(</td>
  163. <td class="paramtype">void&#160;</td>
  164. <td class="paramname"></td><td>)</td>
  165. <td></td>
  166. </tr>
  167. </table>
  168. </div><div class="memdoc">
  169. <p>Returns total flow trough sensor in ml. </p>
  170. </div>
  171. </div>
  172. <a class="anchor" id="af5609d1b9c9b6bde787cdca47b3b0a4f"></a>
  173. <div class="memitem">
  174. <div class="memproto">
  175. <table class="memname">
  176. <tr>
  177. <td class="memname">int halGetInt0 </td>
  178. <td>(</td>
  179. <td class="paramtype">void&#160;</td>
  180. <td class="paramname"></td><td>)</td>
  181. <td></td>
  182. </tr>
  183. </table>
  184. </div><div class="memdoc">
  185. <p>Returns the value of the top button Int0 (low active) </p>
  186. <dl class="section return"><dt>Returns</dt><dd>LOW or HIGH </dd></dl>
  187. </div>
  188. </div>
  189. <a class="anchor" id="afe1e8d0d1237d0f128d50a5b146002a2"></a>
  190. <div class="memitem">
  191. <div class="memproto">
  192. <table class="memname">
  193. <tr>
  194. <td class="memname">int halGetInt1 </td>
  195. <td>(</td>
  196. <td class="paramtype">void&#160;</td>
  197. <td class="paramname"></td><td>)</td>
  198. <td></td>
  199. </tr>
  200. </table>
  201. </div><div class="memdoc">
  202. <p>Returns the value of the bottom button Int1 (low active) </p>
  203. <dl class="section return"><dt>Returns</dt><dd>LOW or HIGH </dd></dl>
  204. </div>
  205. </div>
  206. <a class="anchor" id="a1d22d01f1a6a6789f2816e27bbcb0504"></a>
  207. <div class="memitem">
  208. <div class="memproto">
  209. <table class="memname">
  210. <tr>
  211. <td class="memname">int halGetRelaisState </td>
  212. <td>(</td>
  213. <td class="paramtype">int&#160;</td>
  214. <td class="paramname"><em>relais</em></td><td>)</td>
  215. <td></td>
  216. </tr>
  217. </table>
  218. </div><div class="memdoc">
  219. <p>Returns the state of the relais relais Returns HIGH when Relais is ON. </p>
  220. <dl class="params"><dt>Parameters</dt><dd>
  221. <table class="params">
  222. <tr><td class="paramname">relais</td><td>Relais ID </td></tr>
  223. </table>
  224. </dd>
  225. </dl>
  226. </div>
  227. </div>
  228. <a class="anchor" id="afd89c1650df524d95aef39b8bc38170d"></a>
  229. <div class="memitem">
  230. <div class="memproto">
  231. <table class="memname">
  232. <tr>
  233. <td class="memname">void halInit </td>
  234. <td>(</td>
  235. <td class="paramtype">void&#160;</td>
  236. <td class="paramname"></td><td>)</td>
  237. <td></td>
  238. </tr>
  239. </table>
  240. </div><div class="memdoc">
  241. <p>Initializes HAL. </p>
  242. </div>
  243. </div>
  244. <a class="anchor" id="a597258a80a0bb18db649d01b0893c99f"></a>
  245. <div class="memitem">
  246. <div class="memproto">
  247. <table class="memname">
  248. <tr>
  249. <td class="memname">void halInt0 </td>
  250. <td>(</td>
  251. <td class="paramtype">void&#160;</td>
  252. <td class="paramname"></td><td>)</td>
  253. <td></td>
  254. </tr>
  255. </table>
  256. </div><div class="memdoc">
  257. </div>
  258. </div>
  259. <a class="anchor" id="a603aaa9c0c3cfef8b185df5c7f4921c3"></a>
  260. <div class="memitem">
  261. <div class="memproto">
  262. <table class="memname">
  263. <tr>
  264. <td class="memname">void halInt1 </td>
  265. <td>(</td>
  266. <td class="paramtype">void&#160;</td>
  267. <td class="paramname"></td><td>)</td>
  268. <td></td>
  269. </tr>
  270. </table>
  271. </div><div class="memdoc">
  272. </div>
  273. </div>
  274. <a class="anchor" id="ace9ace8c7e0012157569f446d4cb8c52"></a>
  275. <div class="memitem">
  276. <div class="memproto">
  277. <table class="memname">
  278. <tr>
  279. <td class="memname">void halIntFlow </td>
  280. <td>(</td>
  281. <td class="paramtype">void&#160;</td>
  282. <td class="paramname"></td><td>)</td>
  283. <td></td>
  284. </tr>
  285. </table>
  286. </div><div class="memdoc">
  287. </div>
  288. </div>
  289. <a class="anchor" id="a73067106de2bbcf98bcc3a06cbf3b000"></a>
  290. <div class="memitem">
  291. <div class="memproto">
  292. <table class="memname">
  293. <tr>
  294. <td class="memname">void halIntPressure </td>
  295. <td>(</td>
  296. <td class="paramtype">void&#160;</td>
  297. <td class="paramname"></td><td>)</td>
  298. <td></td>
  299. </tr>
  300. </table>
  301. </div><div class="memdoc">
  302. <p>Method to handle toggle of the pressure control. </p>
  303. </div>
  304. </div>
  305. <a class="anchor" id="a0622583e0c8453a6d6963964ad7e7122"></a>
  306. <div class="memitem">
  307. <div class="memproto">
  308. <table class="memname">
  309. <tr>
  310. <td class="memname">void halIntProximity </td>
  311. <td>(</td>
  312. <td class="paramtype">void&#160;</td>
  313. <td class="paramname"></td><td>)</td>
  314. <td></td>
  315. </tr>
  316. </table>
  317. </div><div class="memdoc">
  318. <p>Method to handle toggle of the proximity sensor. </p>
  319. </div>
  320. </div>
  321. <a class="anchor" id="a01f43f0666520e8d8af65e94fd82a5eb"></a>
  322. <div class="memitem">
  323. <div class="memproto">
  324. <table class="memname">
  325. <tr>
  326. <td class="memname">bool halIsHeating </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>Reads the status of the Pressure Control. </p>
  335. <dl class="section return"><dt>Returns</dt><dd>0 for closed Pressure Control(heating) and 1 for open </dd></dl>
  336. </div>
  337. </div>
  338. <a class="anchor" id="a52c001b5136b02e19bd00282a137631d"></a>
  339. <div class="memitem">
  340. <div class="memproto">
  341. <table class="memname">
  342. <tr>
  343. <td class="memname">bool halProxSensorCovered </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 status of the proximity switch. </p>
  352. <dl class="section return"><dt>Returns</dt><dd>1 if the proximity switch is covered and 0 if uncovered </dd></dl>
  353. </div>
  354. </div>
  355. <a class="anchor" id="a25c63f62c18555fc1b9b50bcd29f1c7d"></a>
  356. <div class="memitem">
  357. <div class="memproto">
  358. <table class="memname">
  359. <tr>
  360. <td class="memname">void halRelaisOff </td>
  361. <td>(</td>
  362. <td class="paramtype">int&#160;</td>
  363. <td class="paramname"><em>relais</em></td><td>)</td>
  364. <td></td>
  365. </tr>
  366. </table>
  367. </div><div class="memdoc">
  368. <p>Switches relais off. </p>
  369. <dl class="params"><dt>Parameters</dt><dd>
  370. <table class="params">
  371. <tr><td class="paramname">relais</td><td>Relais ID </td></tr>
  372. </table>
  373. </dd>
  374. </dl>
  375. </div>
  376. </div>
  377. <a class="anchor" id="a33e09a3806bdcd5c711e557178335763"></a>
  378. <div class="memitem">
  379. <div class="memproto">
  380. <table class="memname">
  381. <tr>
  382. <td class="memname">void halRelaisOn </td>
  383. <td>(</td>
  384. <td class="paramtype">int&#160;</td>
  385. <td class="paramname"><em>relais</em></td><td>)</td>
  386. <td></td>
  387. </tr>
  388. </table>
  389. </div><div class="memdoc">
  390. <p>Switches relais on. </p>
  391. <dl class="params"><dt>Parameters</dt><dd>
  392. <table class="params">
  393. <tr><td class="paramname">relais</td><td>Relais ID </td></tr>
  394. </table>
  395. </dd>
  396. </dl>
  397. </div>
  398. </div>
  399. <a class="anchor" id="a9b67b274703f0c42834f4b447d5c04a2"></a>
  400. <div class="memitem">
  401. <div class="memproto">
  402. <table class="memname">
  403. <tr>
  404. <td class="memname">void halRelaisSet </td>
  405. <td>(</td>
  406. <td class="paramtype">int&#160;</td>
  407. <td class="paramname"><em>relais</em>, </td>
  408. </tr>
  409. <tr>
  410. <td class="paramkey"></td>
  411. <td></td>
  412. <td class="paramtype">int&#160;</td>
  413. <td class="paramname"><em>state</em>&#160;</td>
  414. </tr>
  415. <tr>
  416. <td></td>
  417. <td>)</td>
  418. <td></td><td></td>
  419. </tr>
  420. </table>
  421. </div><div class="memdoc">
  422. <p>Switches relais to state. </p>
  423. <dl class="params"><dt>Parameters</dt><dd>
  424. <table class="params">
  425. <tr><td class="paramname">relais</td><td>Relais ID </td></tr>
  426. <tr><td class="paramname">state</td><td>LOW(0) or HIGH(1) </td></tr>
  427. </table>
  428. </dd>
  429. </dl>
  430. </div>
  431. </div>
  432. <a class="anchor" id="a99d0fb6a80635b679cf4cd1fa90b483d"></a>
  433. <div class="memitem">
  434. <div class="memproto">
  435. <table class="memname">
  436. <tr>
  437. <td class="memname">void halResetFlow </td>
  438. <td>(</td>
  439. <td class="paramtype">void&#160;</td>
  440. <td class="paramname"></td><td>)</td>
  441. <td></td>
  442. </tr>
  443. </table>
  444. </div><div class="memdoc">
  445. <p>Resets the Flow counter. </p>
  446. </div>
  447. </div>
  448. <a class="anchor" id="a252f49661ac23a045bb0d9d20997dfa4"></a>
  449. <div class="memitem">
  450. <div class="memproto">
  451. <table class="memname">
  452. <tr>
  453. <td class="memname">void halSendSignal </td>
  454. <td>(</td>
  455. <td class="paramtype">int&#160;</td>
  456. <td class="paramname"><em>val</em></td><td>)</td>
  457. <td></td>
  458. </tr>
  459. </table>
  460. </div><div class="memdoc">
  461. <p>send Signal to coffee thread </p>
  462. <dl class="params"><dt>Parameters</dt><dd>
  463. <table class="params">
  464. <tr><td class="paramname">val</td><td>Integer value assigned to signal </td></tr>
  465. </table>
  466. </dd>
  467. </dl>
  468. </div>
  469. </div>
  470. <h2 class="groupheader">Variable Documentation</h2>
  471. <a class="anchor" id="ae5ae572f06dd4838027976f9ab3fdc62"></a>
  472. <div class="memitem">
  473. <div class="memproto">
  474. <table class="memname">
  475. <tr>
  476. <td class="memname">int flowcnt = 0</td>
  477. </tr>
  478. </table>
  479. </div><div class="memdoc">
  480. </div>
  481. </div>
  482. </div><!-- contents -->
  483. <!-- start footer part -->
  484. <hr class="footer"/><address class="footer"><small>
  485. Generated by &#160;<a href="http://www.doxygen.org/index.html">
  486. <img class="footer" src="doxygen.png" alt="doxygen"/>
  487. </a> 1.8.10
  488. </small></address>
  489. </body>
  490. </html>