OpenCores
URL https://opencores.org/ocsvn/w11/w11/trunk

Subversion Repositories w11

[/] [w11/] [tags/] [w11a_V0.74/] [tools/] [src/] [librlink/] [RlinkCrc16.hpp] - Blame information for rev 38

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 27 wfjm
// $Id: RlinkCrc16.hpp 602 2014-11-08 21:42:47Z mueller $
2
//
3
// Copyright 2014- by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
4
//
5
// This program is free software; you may redistribute and/or modify it under
6
// the terms of the GNU General Public License as published by the Free
7
// Software Foundation, either version 2, or at your option any later version.
8
//
9
// This program is distributed in the hope that it will be useful, but
10
// WITHOUT ANY WARRANTY, without even the implied warranty of MERCHANTABILITY
11
// or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
12
// for complete details.
13
// 
14
// Revision History: 
15
// Date         Rev Version  Comment
16
// 2014-11-08   602   1.0    Initial version
17
// ---------------------------------------------------------------------------
18
 
19
 
20
/*!
21
  \file
22
  \version $Id: RlinkCrc16.hpp 602 2014-11-08 21:42:47Z mueller $
23
  \brief   Declaration of class \c RlinkCrc16.
24
*/
25
 
26
#ifndef included_Retro_RlinkCrc16
27
#define included_Retro_RlinkCrc16 1
28
 
29
#include <cstdint>
30
#include <vector>
31
 
32
namespace Retro {
33
 
34
  class RlinkCrc16 {
35
    public:
36
                    RlinkCrc16();
37
                   ~RlinkCrc16();
38
 
39
      void          Clear();
40
      void          AddData(uint8_t data);
41
      uint16_t      Crc() const;
42
 
43
    protected:
44
 
45
      uint16_t      fCrc;                   //!< current crc value
46
      static const uint16_t fCrc16Table[256];   // doxed in cpp
47
  };
48
 
49
} // end namespace Retro
50
 
51
#include "RlinkCrc16.ipp"
52
 
53
#endif

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.