w11 - cpp 0.794
Backend server for Rlink and w11
Loading...
Searching...
No Matches
RlinkCrc16.hpp
Go to the documentation of this file.
1// $Id: RlinkCrc16.hpp 1186 2019-07-12 17:49:59Z mueller $
2// SPDX-License-Identifier: GPL-3.0-or-later
3// Copyright 2014-2018 by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
4//
5// Revision History:
6// Date Rev Version Comment
7// 2018-12-22 1091 1.0.1 Drop empty dtors for pod-only classes
8// 2014-11-08 602 1.0 Initial version
9// ---------------------------------------------------------------------------
10
11
16#ifndef included_Retro_RlinkCrc16
17#define included_Retro_RlinkCrc16 1
18
19#include <cstdint>
20#include <vector>
21
22namespace Retro {
23
24 class RlinkCrc16 {
25 public:
26 RlinkCrc16();
27
28 void Clear();
29 void AddData(uint8_t data);
30 uint16_t Crc() const;
31
32 protected:
33
34 uint16_t fCrc;
35 static const uint16_t fCrc16Table[256]; // doxed in cpp
36 };
37
38} // end namespace Retro
39
40#include "RlinkCrc16.ipp"
41
42#endif
FIXME_docs.
Definition: RlinkCrc16.hpp:24
static const uint16_t fCrc16Table[256]
FIXME_docs.
Definition: RlinkCrc16.hpp:35
RlinkCrc16()
Default constructor.
Definition: RlinkCrc16.ipp:22
void Clear()
FIXME_docs.
Definition: RlinkCrc16.ipp:29
uint16_t Crc() const
FIXME_docs.
Definition: RlinkCrc16.ipp:48
void AddData(uint8_t data)
FIXME_docs.
Definition: RlinkCrc16.ipp:38
uint16_t fCrc
current crc value
Definition: RlinkCrc16.hpp:34
Declaration of class ReventLoop.
Definition: ReventLoop.cpp:47