123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343 |
- <!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: crc.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="#typedef-members">Typedefs</a> |
- <a href="#func-members">Functions</a> </div>
- <div class="headertitle">
- <div class="title">crc.h File Reference</div> </div>
- </div><!--header-->
- <div class="contents">
- <p><a href="crc_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:aa93f0eb578d23995850d61f7d61c55c1"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="crc_8h.html#aa93f0eb578d23995850d61f7d61c55c1">FALSE</a>   0</td></tr>
- <tr class="separator:aa93f0eb578d23995850d61f7d61c55c1"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:aa8cecfc5c5c054d2875c03e77b7be15d"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="crc_8h.html#aa8cecfc5c5c054d2875c03e77b7be15d">TRUE</a>   !<a class="el" href="lcd_8cpp.html#aa93f0eb578d23995850d61f7d61c55c1">FALSE</a></td></tr>
- <tr class="separator:aa8cecfc5c5c054d2875c03e77b7be15d"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a491e419c18fbc5c7cb4a2cd901e31440"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="crc_8h.html#a491e419c18fbc5c7cb4a2cd901e31440">CRC32</a></td></tr>
- <tr class="separator:a491e419c18fbc5c7cb4a2cd901e31440"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:ad679f457b8d23bfed7ccf1b9584e8514"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="crc_8h.html#ad679f457b8d23bfed7ccf1b9584e8514">CRC_NAME</a>   "CRC-32"</td></tr>
- <tr class="separator:ad679f457b8d23bfed7ccf1b9584e8514"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:ae13d91fe6e514f0aa1caba701ef1ff92"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="crc_8h.html#ae13d91fe6e514f0aa1caba701ef1ff92">POLYNOMIAL</a>   0x04C11DB7</td></tr>
- <tr class="separator:ae13d91fe6e514f0aa1caba701ef1ff92"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:acce5b79e1a8ad8ffe40fb9f7d63b2fdc"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="crc_8h.html#acce5b79e1a8ad8ffe40fb9f7d63b2fdc">INITIAL_REMAINDER</a>   0xFFFFFFFF</td></tr>
- <tr class="separator:acce5b79e1a8ad8ffe40fb9f7d63b2fdc"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a5e491822bb6a5bf7114dd453ab48891e"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="crc_8h.html#a5e491822bb6a5bf7114dd453ab48891e">FINAL_XOR_VALUE</a>   0xFFFFFFFF</td></tr>
- <tr class="separator:a5e491822bb6a5bf7114dd453ab48891e"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:af6653e78d37b912d592ffc6e96eb7abb"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="crc_8h.html#af6653e78d37b912d592ffc6e96eb7abb">REFLECT_DATA</a>   <a class="el" href="lcd_8cpp.html#aa8cecfc5c5c054d2875c03e77b7be15d">TRUE</a></td></tr>
- <tr class="separator:af6653e78d37b912d592ffc6e96eb7abb"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a5aa89bef30ad5bd061deda3eef36e327"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="crc_8h.html#a5aa89bef30ad5bd061deda3eef36e327">REFLECT_REMAINDER</a>   <a class="el" href="lcd_8cpp.html#aa8cecfc5c5c054d2875c03e77b7be15d">TRUE</a></td></tr>
- <tr class="separator:a5aa89bef30ad5bd061deda3eef36e327"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:aee81a10f43f9dc645ba69a7407c151d0"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="crc_8h.html#aee81a10f43f9dc645ba69a7407c151d0">CHECK_VALUE</a>   0xCBF43926</td></tr>
- <tr class="separator:aee81a10f43f9dc645ba69a7407c151d0"><td class="memSeparator" colspan="2"> </td></tr>
- </table><table class="memberdecls">
- <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
- Typedefs</h2></td></tr>
- <tr class="memitem:a73364f0434186bc77eaa8e3b03a437be"><td class="memItemLeft" align="right" valign="top">typedef unsigned long </td><td class="memItemRight" valign="bottom"><a class="el" href="crc_8h.html#a73364f0434186bc77eaa8e3b03a437be">crc</a></td></tr>
- <tr class="separator:a73364f0434186bc77eaa8e3b03a437be"><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:a5a735798e6972adc694a5428dd7ccaf9"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="crc_8h.html#a5a735798e6972adc694a5428dd7ccaf9">crcInit</a> (void)</td></tr>
- <tr class="separator:a5a735798e6972adc694a5428dd7ccaf9"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a027c2916f24b3daaf662408cc72026b1"><td class="memItemLeft" align="right" valign="top"><a class="el" href="crc_8h.html#a73364f0434186bc77eaa8e3b03a437be">crc</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="crc_8h.html#a027c2916f24b3daaf662408cc72026b1">crcSlow</a> (unsigned char const message[], int nBytes)</td></tr>
- <tr class="separator:a027c2916f24b3daaf662408cc72026b1"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a31e9ca3a3979a4c1e5043f5bfa5befaf"><td class="memItemLeft" align="right" valign="top"><a class="el" href="crc_8h.html#a73364f0434186bc77eaa8e3b03a437be">crc</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="crc_8h.html#a31e9ca3a3979a4c1e5043f5bfa5befaf">crcFast</a> (unsigned char const message[], int nBytes)</td></tr>
- <tr class="separator:a31e9ca3a3979a4c1e5043f5bfa5befaf"><td class="memSeparator" colspan="2"> </td></tr>
- </table>
- <h2 class="groupheader">Macro Definition Documentation</h2>
- <a class="anchor" id="aee81a10f43f9dc645ba69a7407c151d0"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">#define CHECK_VALUE   0xCBF43926</td>
- </tr>
- </table>
- </div><div class="memdoc">
- </div>
- </div>
- <a class="anchor" id="a491e419c18fbc5c7cb4a2cd901e31440"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">#define CRC32</td>
- </tr>
- </table>
- </div><div class="memdoc">
- </div>
- </div>
- <a class="anchor" id="ad679f457b8d23bfed7ccf1b9584e8514"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">#define CRC_NAME   "CRC-32"</td>
- </tr>
- </table>
- </div><div class="memdoc">
- </div>
- </div>
- <a class="anchor" id="aa93f0eb578d23995850d61f7d61c55c1"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">#define FALSE   0</td>
- </tr>
- </table>
- </div><div class="memdoc">
- </div>
- </div>
- <a class="anchor" id="a5e491822bb6a5bf7114dd453ab48891e"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">#define FINAL_XOR_VALUE   0xFFFFFFFF</td>
- </tr>
- </table>
- </div><div class="memdoc">
- </div>
- </div>
- <a class="anchor" id="acce5b79e1a8ad8ffe40fb9f7d63b2fdc"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">#define INITIAL_REMAINDER   0xFFFFFFFF</td>
- </tr>
- </table>
- </div><div class="memdoc">
- </div>
- </div>
- <a class="anchor" id="ae13d91fe6e514f0aa1caba701ef1ff92"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">#define POLYNOMIAL   0x04C11DB7</td>
- </tr>
- </table>
- </div><div class="memdoc">
- </div>
- </div>
- <a class="anchor" id="af6653e78d37b912d592ffc6e96eb7abb"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">#define REFLECT_DATA   <a class="el" href="lcd_8cpp.html#aa8cecfc5c5c054d2875c03e77b7be15d">TRUE</a></td>
- </tr>
- </table>
- </div><div class="memdoc">
- </div>
- </div>
- <a class="anchor" id="a5aa89bef30ad5bd061deda3eef36e327"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">#define REFLECT_REMAINDER   <a class="el" href="lcd_8cpp.html#aa8cecfc5c5c054d2875c03e77b7be15d">TRUE</a></td>
- </tr>
- </table>
- </div><div class="memdoc">
- </div>
- </div>
- <a class="anchor" id="aa8cecfc5c5c054d2875c03e77b7be15d"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">#define TRUE   !<a class="el" href="lcd_8cpp.html#aa93f0eb578d23995850d61f7d61c55c1">FALSE</a></td>
- </tr>
- </table>
- </div><div class="memdoc">
- </div>
- </div>
- <h2 class="groupheader">Typedef Documentation</h2>
- <a class="anchor" id="a73364f0434186bc77eaa8e3b03a437be"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">typedef unsigned long <a class="el" href="crc_8h.html#a73364f0434186bc77eaa8e3b03a437be">crc</a></td>
- </tr>
- </table>
- </div><div class="memdoc">
- </div>
- </div>
- <h2 class="groupheader">Function Documentation</h2>
- <a class="anchor" id="a31e9ca3a3979a4c1e5043f5bfa5befaf"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname"><a class="el" href="crc_8h.html#a73364f0434186bc77eaa8e3b03a437be">crc</a> crcFast </td>
- <td>(</td>
- <td class="paramtype">unsigned char const </td>
- <td class="paramname"><em>message</em>[], </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">int </td>
- <td class="paramname"><em>nBytes</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- </div>
- </div>
- <a class="anchor" id="a5a735798e6972adc694a5428dd7ccaf9"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void crcInit </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="a027c2916f24b3daaf662408cc72026b1"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname"><a class="el" href="crc_8h.html#a73364f0434186bc77eaa8e3b03a437be">crc</a> crcSlow </td>
- <td>(</td>
- <td class="paramtype">unsigned char const </td>
- <td class="paramname"><em>message</em>[], </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">int </td>
- <td class="paramname"><em>nBytes</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</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>
|