-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCrc_8h.html
135 lines (132 loc) · 10 KB
/
Crc_8h.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>COMMS: include/comms/protocol/checksum/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>
<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 id="projectrow">
<td id="projectalign">
<div id="projectname">COMMS
</div>
<div id="projectbrief">Template library intended to help with implementation of communication protocols.</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.8 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></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">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_b3b90260015bf389bbf56758f180cfb9.html">comms</a></li><li class="navelem"><a class="el" href="dir_30114cac5233b910091ea2311961d0f4.html">protocol</a></li><li class="navelem"><a class="el" href="dir_e6a257cefa3c374070cdeaf275a151dc.html">checksum</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#nested-classes">Classes</a> |
<a href="#namespaces">Namespaces</a> |
<a href="#typedef-members">Typedefs</a> </div>
<div class="headertitle"><div class="title">Crc.h File Reference</div></div>
</div><!--header-->
<div class="contents">
<p>Contains definition of <a class="el" href="classcomms_1_1protocol_1_1checksum_1_1Crc.html">comms::protocol::checksum::Crc</a>.
<a href="#details">More...</a></p>
<div class="textblock"><code>#include <cstdint></code><br />
<code>#include <array></code><br />
<code>#include <limits></code><br />
<code>#include <type_traits></code><br />
<code>#include "<a class="el" href="type__traits_8h_source.html">comms/util/type_traits.h</a>"</code><br />
<code>#include "comms/details/tag.h"</code><br />
<code>#include "<a class="el" href="cast_8h_source.html">comms/cast.h</a>"</code><br />
</div>
<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 id="nested-classes" name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classcomms_1_1protocol_1_1checksum_1_1Crc.html">comms::protocol::checksum::Crc< TResult, TPoly, TInit, TFin, TReflect, TRefrectRem ></a></td></tr>
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">Calculate CRC values of all the bytes in the sequence. <a href="classcomms_1_1protocol_1_1checksum_1_1Crc.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="namespaces" name="namespaces"></a>
Namespaces</h2></td></tr>
<tr class="memitem:namespacecomms" id="r_namespacecomms"><td class="memItemLeft" align="right" valign="top">namespace  </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecomms.html">comms</a></td></tr>
<tr class="memdesc:namespacecomms"><td class="mdescLeft"> </td><td class="mdescRight">Main namespace for all classes / functions of COMMS library. <br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:namespacecomms_1_1protocol" id="r_namespacecomms_1_1protocol"><td class="memItemLeft" align="right" valign="top">namespace  </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecomms_1_1protocol.html">comms::protocol</a></td></tr>
<tr class="memdesc:namespacecomms_1_1protocol"><td class="mdescLeft"> </td><td class="mdescRight">Namespace that contains definition of layers that can be used to wrap message data with transport data. <br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:namespacecomms_1_1protocol_1_1checksum" id="r_namespacecomms_1_1protocol_1_1checksum"><td class="memItemLeft" align="right" valign="top">namespace  </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecomms_1_1protocol_1_1checksum.html">comms::protocol::checksum</a></td></tr>
<tr class="memdesc:namespacecomms_1_1protocol_1_1checksum"><td class="mdescLeft"> </td><td class="mdescRight">Namespace that contains definition of checksum calculator classes which can be used with <a class="el" href="classcomms_1_1protocol_1_1ChecksumLayer.html" title="Protocol layer that is responsible to calculate checksum on the data written by all the wrapped inter...">comms::protocol::ChecksumLayer</a> transport layer class. <br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="typedef-members" name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:a40866f16d03791ddeebafa2b2287f101" id="r_a40866f16d03791ddeebafa2b2287f101"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecomms_1_1protocol_1_1checksum.html#a40866f16d03791ddeebafa2b2287f101">comms::protocol::checksum::Crc_16</a> = <a class="el" href="classcomms_1_1protocol_1_1checksum_1_1Crc.html">Crc</a>< std::uint16_t, 0x8005, 0, 0, true, true ></td></tr>
<tr class="memdesc:a40866f16d03791ddeebafa2b2287f101"><td class="mdescLeft"> </td><td class="mdescRight">Alias to <a class="el" href="classcomms_1_1protocol_1_1checksum_1_1Crc.html">Crc</a> checksum calculator for standard CRC-16. <br /></td></tr>
<tr class="separator:a40866f16d03791ddeebafa2b2287f101"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a3877d2bb529ba93830246551bee656fb" id="r_a3877d2bb529ba93830246551bee656fb"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecomms_1_1protocol_1_1checksum.html#a3877d2bb529ba93830246551bee656fb">comms::protocol::checksum::Crc_32</a> = <a class="el" href="classcomms_1_1protocol_1_1checksum_1_1Crc.html">Crc</a>< std::uint32_t, 0x04c11db7, 0xffffffff, 0xffffffff, true, true ></td></tr>
<tr class="memdesc:a3877d2bb529ba93830246551bee656fb"><td class="mdescLeft"> </td><td class="mdescRight">Alias to <a class="el" href="classcomms_1_1protocol_1_1checksum_1_1Crc.html">Crc</a> checksum calculator for standard CRC-32. <br /></td></tr>
<tr class="separator:a3877d2bb529ba93830246551bee656fb"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab1e988797cc1e9dd87f3a5284ef1e3f2" id="r_ab1e988797cc1e9dd87f3a5284ef1e3f2"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecomms_1_1protocol_1_1checksum.html#ab1e988797cc1e9dd87f3a5284ef1e3f2">comms::protocol::checksum::Crc_CCITT</a> = <a class="el" href="classcomms_1_1protocol_1_1checksum_1_1Crc.html">Crc</a>< std::uint16_t, 0x1021, 0xffff ></td></tr>
<tr class="memdesc:ab1e988797cc1e9dd87f3a5284ef1e3f2"><td class="mdescLeft"> </td><td class="mdescRight">Alias to <a class="el" href="classcomms_1_1protocol_1_1checksum_1_1Crc.html">Crc</a> checksum calculator for CRC-CCITT. <br /></td></tr>
<tr class="separator:ab1e988797cc1e9dd87f3a5284ef1e3f2"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Contains definition of <a class="el" href="classcomms_1_1protocol_1_1checksum_1_1Crc.html">comms::protocol::checksum::Crc</a>. </p>
</div></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8
</small></address>
</body>
</html>