123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538 |
- <!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: coffee.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="#func-members">Functions</a> </div>
- <div class="headertitle">
- <div class="title">coffee.h File Reference</div> </div>
- </div><!--header-->
- <div class="contents">
- <div class="textblock"><code>#include <csignal></code><br />
- </div>
- <p><a href="coffee_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:a0cc0d45e13bc83065d45df9d3d1dc887"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="coffee_8h.html#a0cc0d45e13bc83065d45df9d3d1dc887">STATE_OFF</a>   0</td></tr>
- <tr class="separator:a0cc0d45e13bc83065d45df9d3d1dc887"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:ab87d7787dc7a2c2afc6d7853353d7003"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="coffee_8h.html#ab87d7787dc7a2c2afc6d7853353d7003">STATE_HEATING</a>   1</td></tr>
- <tr class="separator:ab87d7787dc7a2c2afc6d7853353d7003"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:af74b21e82c0f8fbf7f697db071d420a0"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="coffee_8h.html#af74b21e82c0f8fbf7f697db071d420a0">STATE_INITALHEATING</a>   2</td></tr>
- <tr class="separator:af74b21e82c0f8fbf7f697db071d420a0"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:aafff27c7165f059a969fe60fee51f683"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="coffee_8h.html#aafff27c7165f059a969fe60fee51f683">STATE_IDLE</a>   3</td></tr>
- <tr class="separator:aafff27c7165f059a969fe60fee51f683"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a7a56332694aec763a9f8028113a07199"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="coffee_8h.html#a7a56332694aec763a9f8028113a07199">STATE_BREW</a>   4</td></tr>
- <tr class="separator:a7a56332694aec763a9f8028113a07199"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:af696741daae3faab28c27755188fd828"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="coffee_8h.html#af696741daae3faab28c27755188fd828">STATE_BREWMANUAL</a>   5</td></tr>
- <tr class="separator:af696741daae3faab28c27755188fd828"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a3a3e5a95a5ba91345c6a1b6f7e06c737"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="coffee_8h.html#a3a3e5a95a5ba91345c6a1b6f7e06c737">STATE_CLEANING</a>   6</td></tr>
- <tr class="separator:a3a3e5a95a5ba91345c6a1b6f7e06c737"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a7bf0c086c7c41c12cc63324327932d91"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="coffee_8h.html#a7bf0c086c7c41c12cc63324327932d91">STATE_ERROR</a>   7</td></tr>
- <tr class="separator:a7bf0c086c7c41c12cc63324327932d91"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:ad8bfbae67917bc4a69ae336c65b3aba2"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="coffee_8h.html#ad8bfbae67917bc4a69ae336c65b3aba2">AMOUNT_PREINFUSION</a>   3</td></tr>
- <tr class="separator:ad8bfbae67917bc4a69ae336c65b3aba2"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:ad4b00557d847ecf54b790844b3be2eb0"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="coffee_8h.html#ad4b00557d847ecf54b790844b3be2eb0">TIME_SOAK</a>   3000</td></tr>
- <tr class="separator:ad4b00557d847ecf54b790844b3be2eb0"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:acd34aefc536dfe9b45dbed679cf6afaf"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="coffee_8h.html#acd34aefc536dfe9b45dbed679cf6afaf">TIME_INFUSION</a>   25000</td></tr>
- <tr class="separator:acd34aefc536dfe9b45dbed679cf6afaf"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a4e3abbeb2301b9265ee297ee63e2f4c8"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="coffee_8h.html#a4e3abbeb2301b9265ee297ee63e2f4c8">AMOUNT_DBLESPRESSO</a>   25.0</td></tr>
- <tr class="separator:a4e3abbeb2301b9265ee297ee63e2f4c8"><td class="memSeparator" colspan="2"> </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:afed8c565650f5808745b6c6c7d45462c"><td class="memItemLeft" align="right" valign="top">void * </td><td class="memItemRight" valign="bottom"><a class="el" href="coffee_8h.html#afed8c565650f5808745b6c6c7d45462c">coffeeThread</a> (void *threadid)</td></tr>
- <tr class="memdesc:afed8c565650f5808745b6c6c7d45462c"><td class="mdescLeft"> </td><td class="mdescRight">Thread for the finite state machine It represents the current state of the machine and handles signals coming from the pressure control, buttons, the brew switch and the proximity sensor. <a href="#afed8c565650f5808745b6c6c7d45462c">More...</a><br /></td></tr>
- <tr class="separator:afed8c565650f5808745b6c6c7d45462c"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a44f0ebaec249d2ce6316c1bddff54d79"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="coffee_8h.html#a44f0ebaec249d2ce6316c1bddff54d79">coffeeHandler</a> (int signum, siginfo_t *siginfo, void *context)</td></tr>
- <tr class="memdesc:a44f0ebaec249d2ce6316c1bddff54d79"><td class="mdescLeft"> </td><td class="mdescRight">Handler for the Signal send to this thread It saves the type of signal received and tracks the time between a push and release event of up to 4 signals The time is stored in the HalEvent variable when a release event is received. <a href="#a44f0ebaec249d2ce6316c1bddff54d79">More...</a><br /></td></tr>
- <tr class="separator:a44f0ebaec249d2ce6316c1bddff54d79"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a3290268b8fcbba9a6b642b68860a8503"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="coffee_8h.html#a3290268b8fcbba9a6b642b68860a8503">getSigValue</a> (void)</td></tr>
- <tr class="memdesc:a3290268b8fcbba9a6b642b68860a8503"><td class="mdescLeft"> </td><td class="mdescRight">returns the Signal value from the last received Signal and clears the variable <a href="#a3290268b8fcbba9a6b642b68860a8503">More...</a><br /></td></tr>
- <tr class="separator:a3290268b8fcbba9a6b642b68860a8503"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a63f25020d1567a2d5e03a9a59e75a0fc"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="coffee_8h.html#a63f25020d1567a2d5e03a9a59e75a0fc">SigValueEmpty</a> (void)</td></tr>
- <tr class="separator:a63f25020d1567a2d5e03a9a59e75a0fc"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:ae4d9681385a3f678dee40458cf55dca0"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="coffee_8h.html#ae4d9681385a3f678dee40458cf55dca0">changeState</a> (int newState)</td></tr>
- <tr class="memdesc:ae4d9681385a3f678dee40458cf55dca0"><td class="mdescLeft"> </td><td class="mdescRight">Changes the state of the machine to newState prints the change to the logger. <a href="#ae4d9681385a3f678dee40458cf55dca0">More...</a><br /></td></tr>
- <tr class="separator:ae4d9681385a3f678dee40458cf55dca0"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:afc0b4325b7cabe49f623d5e44aaa37d7"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="coffee_8h.html#afc0b4325b7cabe49f623d5e44aaa37d7">getState</a> (void)</td></tr>
- <tr class="memdesc:afc0b4325b7cabe49f623d5e44aaa37d7"><td class="mdescLeft"> </td><td class="mdescRight">Returns the current state of the FSM. <a href="#afc0b4325b7cabe49f623d5e44aaa37d7">More...</a><br /></td></tr>
- <tr class="separator:afc0b4325b7cabe49f623d5e44aaa37d7"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a66d75a676639d0f8e56c0efe76547482"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="coffee_8h.html#a66d75a676639d0f8e56c0efe76547482">brewTimeHandler</a> (void)</td></tr>
- <tr class="memdesc:a66d75a676639d0f8e56c0efe76547482"><td class="mdescLeft"> </td><td class="mdescRight">Counter for the brew time refresh every 200ms. <a href="#a66d75a676639d0f8e56c0efe76547482">More...</a><br /></td></tr>
- <tr class="separator:a66d75a676639d0f8e56c0efe76547482"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a5c611f1d81caf2f51c8b77b307028e4d"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="coffee_8h.html#a5c611f1d81caf2f51c8b77b307028e4d">coffeeTerminate</a> (void)</td></tr>
- <tr class="memdesc:a5c611f1d81caf2f51c8b77b307028e4d"><td class="mdescLeft"> </td><td class="mdescRight">handles program termination <a href="#a5c611f1d81caf2f51c8b77b307028e4d">More...</a><br /></td></tr>
- <tr class="separator:a5c611f1d81caf2f51c8b77b307028e4d"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a343324d9863aa6eb3d7e2a183aec4a09"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="coffee_8h.html#a343324d9863aa6eb3d7e2a183aec4a09">coffeeBrew</a> (void)</td></tr>
- <tr class="memdesc:a343324d9863aa6eb3d7e2a183aec4a09"><td class="mdescLeft"> </td><td class="mdescRight">Brewing process. <a href="#a343324d9863aa6eb3d7e2a183aec4a09">More...</a><br /></td></tr>
- <tr class="separator:a343324d9863aa6eb3d7e2a183aec4a09"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a7c29bb32c4f3971f78dd515e568042c3"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="coffee_8h.html#a7c29bb32c4f3971f78dd515e568042c3">coffeeIncreaseBrewCounter</a> (void)</td></tr>
- <tr class="separator:a7c29bb32c4f3971f78dd515e568042c3"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a11b81e21f5769fc6b0e55ecbac8d3976"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="coffee_8h.html#a11b81e21f5769fc6b0e55ecbac8d3976">coffeeIncreaseHeatingTime</a> (uint64_t <a class="el" href="coffee_8cpp.html#ac88c1bf95effb2aeddc71b1c2cf9034b">heatingTime</a>)</td></tr>
- <tr class="separator:a11b81e21f5769fc6b0e55ecbac8d3976"><td class="memSeparator" colspan="2"> </td></tr>
- </table>
- <h2 class="groupheader">Macro Definition Documentation</h2>
- <a class="anchor" id="a4e3abbeb2301b9265ee297ee63e2f4c8"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">#define AMOUNT_DBLESPRESSO   25.0</td>
- </tr>
- </table>
- </div><div class="memdoc">
- </div>
- </div>
- <a class="anchor" id="ad8bfbae67917bc4a69ae336c65b3aba2"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">#define AMOUNT_PREINFUSION   3</td>
- </tr>
- </table>
- </div><div class="memdoc">
- </div>
- </div>
- <a class="anchor" id="a7a56332694aec763a9f8028113a07199"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">#define STATE_BREW   4</td>
- </tr>
- </table>
- </div><div class="memdoc">
- </div>
- </div>
- <a class="anchor" id="af696741daae3faab28c27755188fd828"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">#define STATE_BREWMANUAL   5</td>
- </tr>
- </table>
- </div><div class="memdoc">
- </div>
- </div>
- <a class="anchor" id="a3a3e5a95a5ba91345c6a1b6f7e06c737"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">#define STATE_CLEANING   6</td>
- </tr>
- </table>
- </div><div class="memdoc">
- </div>
- </div>
- <a class="anchor" id="a7bf0c086c7c41c12cc63324327932d91"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">#define STATE_ERROR   7</td>
- </tr>
- </table>
- </div><div class="memdoc">
- </div>
- </div>
- <a class="anchor" id="ab87d7787dc7a2c2afc6d7853353d7003"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">#define STATE_HEATING   1</td>
- </tr>
- </table>
- </div><div class="memdoc">
- </div>
- </div>
- <a class="anchor" id="aafff27c7165f059a969fe60fee51f683"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">#define STATE_IDLE   3</td>
- </tr>
- </table>
- </div><div class="memdoc">
- </div>
- </div>
- <a class="anchor" id="af74b21e82c0f8fbf7f697db071d420a0"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">#define STATE_INITALHEATING   2</td>
- </tr>
- </table>
- </div><div class="memdoc">
- </div>
- </div>
- <a class="anchor" id="a0cc0d45e13bc83065d45df9d3d1dc887"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">#define STATE_OFF   0</td>
- </tr>
- </table>
- </div><div class="memdoc">
- </div>
- </div>
- <a class="anchor" id="acd34aefc536dfe9b45dbed679cf6afaf"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">#define TIME_INFUSION   25000</td>
- </tr>
- </table>
- </div><div class="memdoc">
- </div>
- </div>
- <a class="anchor" id="ad4b00557d847ecf54b790844b3be2eb0"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">#define TIME_SOAK   3000</td>
- </tr>
- </table>
- </div><div class="memdoc">
- </div>
- </div>
- <h2 class="groupheader">Function Documentation</h2>
- <a class="anchor" id="a66d75a676639d0f8e56c0efe76547482"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void brewTimeHandler </td>
- <td>(</td>
- <td class="paramtype">void </td>
- <td class="paramname"></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Counter for the brew time refresh every 200ms. </p>
- </div>
- </div>
- <a class="anchor" id="ae4d9681385a3f678dee40458cf55dca0"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void changeState </td>
- <td>(</td>
- <td class="paramtype">int </td>
- <td class="paramname"><em>newState</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Changes the state of the machine to newState prints the change to the logger. </p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">newState</td><td></td></tr>
- </table>
- </dd>
- </dl>
- </div>
- </div>
- <a class="anchor" id="a343324d9863aa6eb3d7e2a183aec4a09"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void coffeeBrew </td>
- <td>(</td>
- <td class="paramtype">void </td>
- <td class="paramname"></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Brewing process. </p>
- </div>
- </div>
- <a class="anchor" id="a44f0ebaec249d2ce6316c1bddff54d79"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void coffeeHandler </td>
- <td>(</td>
- <td class="paramtype">int </td>
- <td class="paramname"><em>signum</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">siginfo_t * </td>
- <td class="paramname"><em>siginfo</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">void * </td>
- <td class="paramname"><em>context</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Handler for the Signal send to this thread It saves the type of signal received and tracks the time between a push and release event of up to 4 signals The time is stored in the HalEvent variable when a release event is received. </p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">signum</td><td></td></tr>
- <tr><td class="paramname">siginfo</td><td></td></tr>
- <tr><td class="paramname">context</td><td></td></tr>
- </table>
- </dd>
- </dl>
- </div>
- </div>
- <a class="anchor" id="a7c29bb32c4f3971f78dd515e568042c3"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void coffeeIncreaseBrewCounter </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="a11b81e21f5769fc6b0e55ecbac8d3976"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void coffeeIncreaseHeatingTime </td>
- <td>(</td>
- <td class="paramtype">uint64_t </td>
- <td class="paramname"><em>heatingTime</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- </div>
- </div>
- <a class="anchor" id="a5c611f1d81caf2f51c8b77b307028e4d"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void coffeeTerminate </td>
- <td>(</td>
- <td class="paramtype">void </td>
- <td class="paramname"></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>handles program termination </p>
- </div>
- </div>
- <a class="anchor" id="afed8c565650f5808745b6c6c7d45462c"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void* coffeeThread </td>
- <td>(</td>
- <td class="paramtype">void * </td>
- <td class="paramname"><em>threadid</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Thread for the finite state machine It represents the current state of the machine and handles signals coming from the pressure control, buttons, the brew switch and the proximity sensor. </p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">threadid</td><td>the ID of the thread </td></tr>
- </table>
- </dd>
- </dl>
- </div>
- </div>
- <a class="anchor" id="a3290268b8fcbba9a6b642b68860a8503"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">int getSigValue </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 Signal value from the last received Signal and clears the variable </p>
- <dl class="section return"><dt>Returns</dt><dd>value sent with the last signal </dd></dl>
- </div>
- </div>
- <a class="anchor" id="afc0b4325b7cabe49f623d5e44aaa37d7"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">int getState </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 current state of the FSM. </p>
- </div>
- </div>
- <a class="anchor" id="a63f25020d1567a2d5e03a9a59e75a0fc"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">bool SigValueEmpty </td>
- <td>(</td>
- <td class="paramtype">void </td>
- <td class="paramname"></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- </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>
|