123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698 |
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
- <meta http-equiv="X-UA-Compatible" content="IE=9"/>
- <meta name="generator" content="Doxygen 1.8.10"/>
- <title>CoffeePi: hal.h File Reference</title>
- <link href="tabs.css" rel="stylesheet" type="text/css"/>
- <script type="text/javascript" src="jquery.js"></script>
- <script type="text/javascript" src="dynsections.js"></script>
- <link href="search/search.css" rel="stylesheet" type="text/css"/>
- <script type="text/javascript" src="search/searchdata.js"></script>
- <script type="text/javascript" src="search/search.js"></script>
- <script type="text/javascript">
- $(document).ready(function() { init_search(); });
- </script>
- <link href="doxygen.css" rel="stylesheet" type="text/css" />
- </head>
- <body>
- <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
- <div id="titlearea">
- <table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
- <td id="projectalign" style="padding-left: 0.5em;">
- <div id="projectname">CoffeePi
- </div>
- <div id="projectbrief">Coffee machine control for Raspberry Pi</div>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- <!-- end header part -->
- <!-- Generated by Doxygen 1.8.10 -->
- <script type="text/javascript">
- var searchBox = new SearchBox("searchBox", "search",false,'Search');
- </script>
- <div id="navrow1" class="tabs">
- <ul class="tablist">
- <li><a href="index.html"><span>Main Page</span></a></li>
- <li><a href="annotated.html"><span>Data Structures</span></a></li>
- <li class="current"><a href="files.html"><span>Files</span></a></li>
- <li>
- <div id="MSearchBox" class="MSearchBoxInactive">
- <span class="left">
- <img id="MSearchSelect" src="search/mag_sel.png"
- onmouseover="return searchBox.OnSearchSelectShow()"
- onmouseout="return searchBox.OnSearchSelectHide()"
- alt=""/>
- <input type="text" id="MSearchField" value="Search" accesskey="S"
- onfocus="searchBox.OnSearchFieldFocus(true)"
- onblur="searchBox.OnSearchFieldFocus(false)"
- onkeyup="searchBox.OnSearchFieldChange(event)"/>
- </span><span class="right">
- <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
- </span>
- </div>
- </li>
- </ul>
- </div>
- <div id="navrow2" class="tabs2">
- <ul class="tablist">
- <li><a href="files.html"><span>File List</span></a></li>
- <li><a href="globals.html"><span>Globals</span></a></li>
- </ul>
- </div>
- <!-- window showing the filter options -->
- <div id="MSearchSelectWindow"
- onmouseover="return searchBox.OnSearchSelectShow()"
- onmouseout="return searchBox.OnSearchSelectHide()"
- onkeydown="return searchBox.OnSearchSelectKey(event)">
- </div>
- <!-- iframe showing the search results (closed by default) -->
- <div id="MSearchResultsWindow">
- <iframe src="javascript:void(0)" frameborder="0"
- name="MSearchResults" id="MSearchResults">
- </iframe>
- </div>
- </div><!-- top -->
- <div class="header">
- <div class="summary">
- <a href="#define-members">Macros</a> |
- <a href="#enum-members">Enumerations</a> |
- <a href="#func-members">Functions</a> </div>
- <div class="headertitle">
- <div class="title">hal.h File Reference</div> </div>
- </div><!--header-->
- <div class="contents">
- <p><a href="hal_8h_source.html">Go to the source code of this file.</a></p>
- <table class="memberdecls">
- <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
- Macros</h2></td></tr>
- <tr class="memitem:a9b57e326c17e793a2c70b909256734ab"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="hal_8h.html#a9b57e326c17e793a2c70b909256734ab">RELAIS_HEAT</a>   29</td></tr>
- <tr class="separator:a9b57e326c17e793a2c70b909256734ab"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a9723c5da9e57e2b3a1c3ec7b635cee53"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="hal_8h.html#a9723c5da9e57e2b3a1c3ec7b635cee53">RELAIS_PUMP</a>   25</td></tr>
- <tr class="separator:a9723c5da9e57e2b3a1c3ec7b635cee53"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a56489df9a2d1844419f2b0c104516657"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="hal_8h.html#a56489df9a2d1844419f2b0c104516657">RELAIS_POWER</a>   28</td></tr>
- <tr class="separator:a56489df9a2d1844419f2b0c104516657"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:af9f618757de2bf9051de55c831802f30"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="hal_8h.html#af9f618757de2bf9051de55c831802f30">PRESSURE_CTRL</a>   7</td></tr>
- <tr class="separator:af9f618757de2bf9051de55c831802f30"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a60cdc9e2a5c04bd14c4c3c6f872ddf29"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="hal_8h.html#a60cdc9e2a5c04bd14c4c3c6f872ddf29">PROXIMITY_SENSOR</a>   6</td></tr>
- <tr class="separator:a60cdc9e2a5c04bd14c4c3c6f872ddf29"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a7521122e23c8d5c83b2a033b2505c86c"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="hal_8h.html#a7521122e23c8d5c83b2a033b2505c86c">INT0</a>   0</td></tr>
- <tr class="separator:a7521122e23c8d5c83b2a033b2505c86c"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:ae4728496f2ab826d5fc6a63da6cb600b"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="hal_8h.html#ae4728496f2ab826d5fc6a63da6cb600b">INT1</a>   2</td></tr>
- <tr class="separator:ae4728496f2ab826d5fc6a63da6cb600b"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a249f9f89b3a190ddd62999b1afa847c3"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="hal_8h.html#a249f9f89b3a190ddd62999b1afa847c3">FLOW</a>   3</td></tr>
- <tr class="separator:a249f9f89b3a190ddd62999b1afa847c3"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a7c6e51c86f643b69623e53eaa62e6cd4"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="hal_8h.html#a7c6e51c86f643b69623e53eaa62e6cd4">PROX_COVERED</a>   1</td></tr>
- <tr class="separator:a7c6e51c86f643b69623e53eaa62e6cd4"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a957d80982673bb087a5d29380720f59d"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="hal_8h.html#a957d80982673bb087a5d29380720f59d">FLOW_ML_PULSE</a>   (1000.0/990)</td></tr>
- <tr class="separator:a957d80982673bb087a5d29380720f59d"><td class="memSeparator" colspan="2"> </td></tr>
- </table><table class="memberdecls">
- <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
- Enumerations</h2></td></tr>
- <tr class="memitem:aa51a8c9f6b926aa9e9c5dd38249d3f68"><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="hal_8h.html#aa51a8c9f6b926aa9e9c5dd38249d3f68">HalSig</a> { <br />
-   <a class="el" href="hal_8h.html#aa51a8c9f6b926aa9e9c5dd38249d3f68a4f6585385aaee8e6a336fb31e8713751">SigInt0Psh</a> = 1,
- <a class="el" href="hal_8h.html#aa51a8c9f6b926aa9e9c5dd38249d3f68ae70d75d9c016f72d315ce0f375425ae3">SigInt0Rls</a> = 2,
- <a class="el" href="hal_8h.html#aa51a8c9f6b926aa9e9c5dd38249d3f68a5fd8970919f375d9f3baaaa053865ce2">SigInt1Psh</a> = 3,
- <a class="el" href="hal_8h.html#aa51a8c9f6b926aa9e9c5dd38249d3f68aa85940fc659570c5b7ec2d8e0ed3eeae">SigInt1Rls</a> = 4,
- <br />
-   <a class="el" href="hal_8h.html#aa51a8c9f6b926aa9e9c5dd38249d3f68abdd48e173224114754f253d764540ec9">SigPressCls</a> = 5,
- <a class="el" href="hal_8h.html#aa51a8c9f6b926aa9e9c5dd38249d3f68a683f7a77d5c63e835b2a72ab1c540fe4">SigPressOpn</a> = 6,
- <a class="el" href="hal_8h.html#aa51a8c9f6b926aa9e9c5dd38249d3f68a7f18f13ecf372adaf681e706ad051fd3">SigProxOpn</a> = 7,
- <a class="el" href="hal_8h.html#aa51a8c9f6b926aa9e9c5dd38249d3f68ac53b2d92b9e3b1652f173e29db5b523d">SigProxCvrd</a> = 8,
- <br />
-   <a class="el" href="hal_8h.html#aa51a8c9f6b926aa9e9c5dd38249d3f68a4f8316fcd4daf8fdee99ad3414c00857">SigBrewOn</a> = 9,
- <a class="el" href="hal_8h.html#aa51a8c9f6b926aa9e9c5dd38249d3f68a6d3fe49429343ea09a007c2236db9382">SigBrewOff</a> = 10
- <br />
- }<tr class="separator:aa51a8c9f6b926aa9e9c5dd38249d3f68"><td class="memSeparator" colspan="2"> </td></tr>
- </td></tr>
- </table><table class="memberdecls">
- <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
- Functions</h2></td></tr>
- <tr class="memitem:afd89c1650df524d95aef39b8bc38170d"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="hal_8h.html#afd89c1650df524d95aef39b8bc38170d">halInit</a> (void)</td></tr>
- <tr class="memdesc:afd89c1650df524d95aef39b8bc38170d"><td class="mdescLeft"> </td><td class="mdescRight">Initializes HAL. <a href="#afd89c1650df524d95aef39b8bc38170d">More...</a><br /></td></tr>
- <tr class="separator:afd89c1650df524d95aef39b8bc38170d"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a33e09a3806bdcd5c711e557178335763"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="hal_8h.html#a33e09a3806bdcd5c711e557178335763">halRelaisOn</a> (int relais)</td></tr>
- <tr class="memdesc:a33e09a3806bdcd5c711e557178335763"><td class="mdescLeft"> </td><td class="mdescRight">Switches relais on. <a href="#a33e09a3806bdcd5c711e557178335763">More...</a><br /></td></tr>
- <tr class="separator:a33e09a3806bdcd5c711e557178335763"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a25c63f62c18555fc1b9b50bcd29f1c7d"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="hal_8h.html#a25c63f62c18555fc1b9b50bcd29f1c7d">halRelaisOff</a> (int relais)</td></tr>
- <tr class="memdesc:a25c63f62c18555fc1b9b50bcd29f1c7d"><td class="mdescLeft"> </td><td class="mdescRight">Switches relais off. <a href="#a25c63f62c18555fc1b9b50bcd29f1c7d">More...</a><br /></td></tr>
- <tr class="separator:a25c63f62c18555fc1b9b50bcd29f1c7d"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a9b67b274703f0c42834f4b447d5c04a2"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="hal_8h.html#a9b67b274703f0c42834f4b447d5c04a2">halRelaisSet</a> (int relais, int state)</td></tr>
- <tr class="memdesc:a9b67b274703f0c42834f4b447d5c04a2"><td class="mdescLeft"> </td><td class="mdescRight">Switches relais to state. <a href="#a9b67b274703f0c42834f4b447d5c04a2">More...</a><br /></td></tr>
- <tr class="separator:a9b67b274703f0c42834f4b447d5c04a2"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a1d22d01f1a6a6789f2816e27bbcb0504"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="hal_8h.html#a1d22d01f1a6a6789f2816e27bbcb0504">halGetRelaisState</a> (int relais)</td></tr>
- <tr class="memdesc:a1d22d01f1a6a6789f2816e27bbcb0504"><td class="mdescLeft"> </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>
- <tr class="separator:a1d22d01f1a6a6789f2816e27bbcb0504"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a597258a80a0bb18db649d01b0893c99f"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="hal_8h.html#a597258a80a0bb18db649d01b0893c99f">halInt0</a> (void)</td></tr>
- <tr class="separator:a597258a80a0bb18db649d01b0893c99f"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a603aaa9c0c3cfef8b185df5c7f4921c3"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="hal_8h.html#a603aaa9c0c3cfef8b185df5c7f4921c3">halInt1</a> (void)</td></tr>
- <tr class="separator:a603aaa9c0c3cfef8b185df5c7f4921c3"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:ace9ace8c7e0012157569f446d4cb8c52"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="hal_8h.html#ace9ace8c7e0012157569f446d4cb8c52">halIntFlow</a> (void)</td></tr>
- <tr class="separator:ace9ace8c7e0012157569f446d4cb8c52"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a73067106de2bbcf98bcc3a06cbf3b000"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="hal_8h.html#a73067106de2bbcf98bcc3a06cbf3b000">halIntPressure</a> (void)</td></tr>
- <tr class="memdesc:a73067106de2bbcf98bcc3a06cbf3b000"><td class="mdescLeft"> </td><td class="mdescRight">Method to handle toggle of the pressure control. <a href="#a73067106de2bbcf98bcc3a06cbf3b000">More...</a><br /></td></tr>
- <tr class="separator:a73067106de2bbcf98bcc3a06cbf3b000"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a0622583e0c8453a6d6963964ad7e7122"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="hal_8h.html#a0622583e0c8453a6d6963964ad7e7122">halIntProximity</a> (void)</td></tr>
- <tr class="memdesc:a0622583e0c8453a6d6963964ad7e7122"><td class="mdescLeft"> </td><td class="mdescRight">Method to handle toggle of the proximity sensor. <a href="#a0622583e0c8453a6d6963964ad7e7122">More...</a><br /></td></tr>
- <tr class="separator:a0622583e0c8453a6d6963964ad7e7122"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a1a0d534518ff19bf5b023dfe64d141db"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="hal_8h.html#a1a0d534518ff19bf5b023dfe64d141db">halGetFlow</a> (void)</td></tr>
- <tr class="memdesc:a1a0d534518ff19bf5b023dfe64d141db"><td class="mdescLeft"> </td><td class="mdescRight">Returns total flow trough sensor in ml. <a href="#a1a0d534518ff19bf5b023dfe64d141db">More...</a><br /></td></tr>
- <tr class="separator:a1a0d534518ff19bf5b023dfe64d141db"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a99d0fb6a80635b679cf4cd1fa90b483d"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="hal_8h.html#a99d0fb6a80635b679cf4cd1fa90b483d">halResetFlow</a> (void)</td></tr>
- <tr class="memdesc:a99d0fb6a80635b679cf4cd1fa90b483d"><td class="mdescLeft"> </td><td class="mdescRight">Resets the Flow counter. <a href="#a99d0fb6a80635b679cf4cd1fa90b483d">More...</a><br /></td></tr>
- <tr class="separator:a99d0fb6a80635b679cf4cd1fa90b483d"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a01f43f0666520e8d8af65e94fd82a5eb"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="hal_8h.html#a01f43f0666520e8d8af65e94fd82a5eb">halIsHeating</a> (void)</td></tr>
- <tr class="memdesc:a01f43f0666520e8d8af65e94fd82a5eb"><td class="mdescLeft"> </td><td class="mdescRight">Reads the status of the Pressure Control. <a href="#a01f43f0666520e8d8af65e94fd82a5eb">More...</a><br /></td></tr>
- <tr class="separator:a01f43f0666520e8d8af65e94fd82a5eb"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a52c001b5136b02e19bd00282a137631d"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="hal_8h.html#a52c001b5136b02e19bd00282a137631d">halProxSensorCovered</a> (void)</td></tr>
- <tr class="memdesc:a52c001b5136b02e19bd00282a137631d"><td class="mdescLeft"> </td><td class="mdescRight">Returns status of the proximity switch. <a href="#a52c001b5136b02e19bd00282a137631d">More...</a><br /></td></tr>
- <tr class="separator:a52c001b5136b02e19bd00282a137631d"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:af5609d1b9c9b6bde787cdca47b3b0a4f"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="hal_8h.html#af5609d1b9c9b6bde787cdca47b3b0a4f">halGetInt0</a> (void)</td></tr>
- <tr class="memdesc:af5609d1b9c9b6bde787cdca47b3b0a4f"><td class="mdescLeft"> </td><td class="mdescRight">Returns the value of the top button Int0 (low active) <a href="#af5609d1b9c9b6bde787cdca47b3b0a4f">More...</a><br /></td></tr>
- <tr class="separator:af5609d1b9c9b6bde787cdca47b3b0a4f"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:afe1e8d0d1237d0f128d50a5b146002a2"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="hal_8h.html#afe1e8d0d1237d0f128d50a5b146002a2">halGetInt1</a> (void)</td></tr>
- <tr class="memdesc:afe1e8d0d1237d0f128d50a5b146002a2"><td class="mdescLeft"> </td><td class="mdescRight">Returns the value of the bottom button Int1 (low active) <a href="#afe1e8d0d1237d0f128d50a5b146002a2">More...</a><br /></td></tr>
- <tr class="separator:afe1e8d0d1237d0f128d50a5b146002a2"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a4fa1c41f2dd3c24e13feaa6be70ad426"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="hal_8h.html#a4fa1c41f2dd3c24e13feaa6be70ad426">halSendSignal</a> (int value)</td></tr>
- <tr class="memdesc:a4fa1c41f2dd3c24e13feaa6be70ad426"><td class="mdescLeft"> </td><td class="mdescRight">send Signal to coffee thread <a href="#a4fa1c41f2dd3c24e13feaa6be70ad426">More...</a><br /></td></tr>
- <tr class="separator:a4fa1c41f2dd3c24e13feaa6be70ad426"><td class="memSeparator" colspan="2"> </td></tr>
- </table>
- <h2 class="groupheader">Macro Definition Documentation</h2>
- <a class="anchor" id="a249f9f89b3a190ddd62999b1afa847c3"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">#define FLOW   3</td>
- </tr>
- </table>
- </div><div class="memdoc">
- </div>
- </div>
- <a class="anchor" id="a957d80982673bb087a5d29380720f59d"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">#define FLOW_ML_PULSE   (1000.0/990)</td>
- </tr>
- </table>
- </div><div class="memdoc">
- </div>
- </div>
- <a class="anchor" id="a7521122e23c8d5c83b2a033b2505c86c"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">#define INT0   0</td>
- </tr>
- </table>
- </div><div class="memdoc">
- </div>
- </div>
- <a class="anchor" id="ae4728496f2ab826d5fc6a63da6cb600b"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">#define INT1   2</td>
- </tr>
- </table>
- </div><div class="memdoc">
- </div>
- </div>
- <a class="anchor" id="af9f618757de2bf9051de55c831802f30"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">#define PRESSURE_CTRL   7</td>
- </tr>
- </table>
- </div><div class="memdoc">
- </div>
- </div>
- <a class="anchor" id="a7c6e51c86f643b69623e53eaa62e6cd4"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">#define PROX_COVERED   1</td>
- </tr>
- </table>
- </div><div class="memdoc">
- </div>
- </div>
- <a class="anchor" id="a60cdc9e2a5c04bd14c4c3c6f872ddf29"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">#define PROXIMITY_SENSOR   6</td>
- </tr>
- </table>
- </div><div class="memdoc">
- </div>
- </div>
- <a class="anchor" id="a9b57e326c17e793a2c70b909256734ab"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">#define RELAIS_HEAT   29</td>
- </tr>
- </table>
- </div><div class="memdoc">
- </div>
- </div>
- <a class="anchor" id="a56489df9a2d1844419f2b0c104516657"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">#define RELAIS_POWER   28</td>
- </tr>
- </table>
- </div><div class="memdoc">
- </div>
- </div>
- <a class="anchor" id="a9723c5da9e57e2b3a1c3ec7b635cee53"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">#define RELAIS_PUMP   25</td>
- </tr>
- </table>
- </div><div class="memdoc">
- </div>
- </div>
- <h2 class="groupheader">Enumeration Type Documentation</h2>
- <a class="anchor" id="aa51a8c9f6b926aa9e9c5dd38249d3f68"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">enum <a class="el" href="hal_8h.html#aa51a8c9f6b926aa9e9c5dd38249d3f68">HalSig</a></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <table class="fieldtable">
- <tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a class="anchor" id="aa51a8c9f6b926aa9e9c5dd38249d3f68a4f6585385aaee8e6a336fb31e8713751"></a>SigInt0Psh </td><td class="fielddoc">
- </td></tr>
- <tr><td class="fieldname"><a class="anchor" id="aa51a8c9f6b926aa9e9c5dd38249d3f68ae70d75d9c016f72d315ce0f375425ae3"></a>SigInt0Rls </td><td class="fielddoc">
- </td></tr>
- <tr><td class="fieldname"><a class="anchor" id="aa51a8c9f6b926aa9e9c5dd38249d3f68a5fd8970919f375d9f3baaaa053865ce2"></a>SigInt1Psh </td><td class="fielddoc">
- </td></tr>
- <tr><td class="fieldname"><a class="anchor" id="aa51a8c9f6b926aa9e9c5dd38249d3f68aa85940fc659570c5b7ec2d8e0ed3eeae"></a>SigInt1Rls </td><td class="fielddoc">
- </td></tr>
- <tr><td class="fieldname"><a class="anchor" id="aa51a8c9f6b926aa9e9c5dd38249d3f68abdd48e173224114754f253d764540ec9"></a>SigPressCls </td><td class="fielddoc">
- </td></tr>
- <tr><td class="fieldname"><a class="anchor" id="aa51a8c9f6b926aa9e9c5dd38249d3f68a683f7a77d5c63e835b2a72ab1c540fe4"></a>SigPressOpn </td><td class="fielddoc">
- </td></tr>
- <tr><td class="fieldname"><a class="anchor" id="aa51a8c9f6b926aa9e9c5dd38249d3f68a7f18f13ecf372adaf681e706ad051fd3"></a>SigProxOpn </td><td class="fielddoc">
- </td></tr>
- <tr><td class="fieldname"><a class="anchor" id="aa51a8c9f6b926aa9e9c5dd38249d3f68ac53b2d92b9e3b1652f173e29db5b523d"></a>SigProxCvrd </td><td class="fielddoc">
- </td></tr>
- <tr><td class="fieldname"><a class="anchor" id="aa51a8c9f6b926aa9e9c5dd38249d3f68a4f8316fcd4daf8fdee99ad3414c00857"></a>SigBrewOn </td><td class="fielddoc">
- </td></tr>
- <tr><td class="fieldname"><a class="anchor" id="aa51a8c9f6b926aa9e9c5dd38249d3f68a6d3fe49429343ea09a007c2236db9382"></a>SigBrewOff </td><td class="fielddoc">
- </td></tr>
- </table>
- </div>
- </div>
- <h2 class="groupheader">Function Documentation</h2>
- <a class="anchor" id="a1a0d534518ff19bf5b023dfe64d141db"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">float halGetFlow </td>
- <td>(</td>
- <td class="paramtype">void </td>
- <td class="paramname"></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Returns total flow trough sensor in ml. </p>
- </div>
- </div>
- <a class="anchor" id="af5609d1b9c9b6bde787cdca47b3b0a4f"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">int halGetInt0 </td>
- <td>(</td>
- <td class="paramtype">void </td>
- <td class="paramname"></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Returns the value of the top button Int0 (low active) </p>
- <dl class="section return"><dt>Returns</dt><dd>LOW or HIGH </dd></dl>
- </div>
- </div>
- <a class="anchor" id="afe1e8d0d1237d0f128d50a5b146002a2"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">int halGetInt1 </td>
- <td>(</td>
- <td class="paramtype">void </td>
- <td class="paramname"></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Returns the value of the bottom button Int1 (low active) </p>
- <dl class="section return"><dt>Returns</dt><dd>LOW or HIGH </dd></dl>
- </div>
- </div>
- <a class="anchor" id="a1d22d01f1a6a6789f2816e27bbcb0504"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">int halGetRelaisState </td>
- <td>(</td>
- <td class="paramtype">int </td>
- <td class="paramname"><em>relais</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Returns the state of the relais relais Returns HIGH when Relais is ON. </p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">relais</td><td>Relais ID </td></tr>
- </table>
- </dd>
- </dl>
- </div>
- </div>
- <a class="anchor" id="afd89c1650df524d95aef39b8bc38170d"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void halInit </td>
- <td>(</td>
- <td class="paramtype">void </td>
- <td class="paramname"></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Initializes HAL. </p>
- </div>
- </div>
- <a class="anchor" id="a597258a80a0bb18db649d01b0893c99f"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void halInt0 </td>
- <td>(</td>
- <td class="paramtype">void </td>
- <td class="paramname"></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- </div>
- </div>
- <a class="anchor" id="a603aaa9c0c3cfef8b185df5c7f4921c3"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void halInt1 </td>
- <td>(</td>
- <td class="paramtype">void </td>
- <td class="paramname"></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- </div>
- </div>
- <a class="anchor" id="ace9ace8c7e0012157569f446d4cb8c52"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void halIntFlow </td>
- <td>(</td>
- <td class="paramtype">void </td>
- <td class="paramname"></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- </div>
- </div>
- <a class="anchor" id="a73067106de2bbcf98bcc3a06cbf3b000"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void halIntPressure </td>
- <td>(</td>
- <td class="paramtype">void </td>
- <td class="paramname"></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Method to handle toggle of the pressure control. </p>
- </div>
- </div>
- <a class="anchor" id="a0622583e0c8453a6d6963964ad7e7122"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void halIntProximity </td>
- <td>(</td>
- <td class="paramtype">void </td>
- <td class="paramname"></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Method to handle toggle of the proximity sensor. </p>
- </div>
- </div>
- <a class="anchor" id="a01f43f0666520e8d8af65e94fd82a5eb"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">bool halIsHeating </td>
- <td>(</td>
- <td class="paramtype">void </td>
- <td class="paramname"></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Reads the status of the Pressure Control. </p>
- <dl class="section return"><dt>Returns</dt><dd>0 for closed Pressure Control(heating) and 1 for open </dd></dl>
- </div>
- </div>
- <a class="anchor" id="a52c001b5136b02e19bd00282a137631d"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">bool halProxSensorCovered </td>
- <td>(</td>
- <td class="paramtype">void </td>
- <td class="paramname"></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Returns status of the proximity switch. </p>
- <dl class="section return"><dt>Returns</dt><dd>1 if the proximity switch is covered and 0 if uncovered </dd></dl>
- </div>
- </div>
- <a class="anchor" id="a25c63f62c18555fc1b9b50bcd29f1c7d"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void halRelaisOff </td>
- <td>(</td>
- <td class="paramtype">int </td>
- <td class="paramname"><em>relais</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Switches relais off. </p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">relais</td><td>Relais ID </td></tr>
- </table>
- </dd>
- </dl>
- </div>
- </div>
- <a class="anchor" id="a33e09a3806bdcd5c711e557178335763"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void halRelaisOn </td>
- <td>(</td>
- <td class="paramtype">int </td>
- <td class="paramname"><em>relais</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Switches relais on. </p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">relais</td><td>Relais ID </td></tr>
- </table>
- </dd>
- </dl>
- </div>
- </div>
- <a class="anchor" id="a9b67b274703f0c42834f4b447d5c04a2"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void halRelaisSet </td>
- <td>(</td>
- <td class="paramtype">int </td>
- <td class="paramname"><em>relais</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">int </td>
- <td class="paramname"><em>state</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Switches relais to state. </p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">relais</td><td>Relais ID </td></tr>
- <tr><td class="paramname">state</td><td>LOW(0) or HIGH(1) </td></tr>
- </table>
- </dd>
- </dl>
- </div>
- </div>
- <a class="anchor" id="a99d0fb6a80635b679cf4cd1fa90b483d"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void halResetFlow </td>
- <td>(</td>
- <td class="paramtype">void </td>
- <td class="paramname"></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Resets the Flow counter. </p>
- </div>
- </div>
- <a class="anchor" id="a4fa1c41f2dd3c24e13feaa6be70ad426"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void halSendSignal </td>
- <td>(</td>
- <td class="paramtype">int </td>
- <td class="paramname"><em>val</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>send Signal to coffee thread </p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">val</td><td>Integer value assigned to signal </td></tr>
- </table>
- </dd>
- </dl>
- </div>
- </div>
- </div><!-- contents -->
- <!-- start footer part -->
- <hr class="footer"/><address class="footer"><small>
- Generated by  <a href="http://www.doxygen.org/index.html">
- <img class="footer" src="doxygen.png" alt="doxygen"/>
- </a> 1.8.10
- </small></address>
- </body>
- </html>
|