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

Subversion Repositories w11

[/] [w11/] [tags/] [w11a_V0.6/] [tools/] [src/] [librlink/] [RlinkCrc8.hpp] - Blame information for rev 40

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 19 wfjm
// $Id: RlinkCrc8.hpp 486 2013-02-10 22:34:43Z mueller $
2 10 wfjm
//
3
// Copyright 2011- 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
// 2011-02-27   365   1.0    Initial version
17
// 2011-01-15   355   0.1    First draft
18
// ---------------------------------------------------------------------------
19
 
20
 
21
/*!
22
  \file
23 19 wfjm
  \version $Id: RlinkCrc8.hpp 486 2013-02-10 22:34:43Z mueller $
24 10 wfjm
  \brief   Declaration of class \c RlinkCrc8.
25
*/
26
 
27
#ifndef included_Retro_RlinkCrc8
28
#define included_Retro_RlinkCrc8 1
29
 
30
#include <cstdint>
31
#include <vector>
32
 
33
namespace Retro {
34
 
35
  class RlinkCrc8 {
36
    public:
37
                    RlinkCrc8();
38
                   ~RlinkCrc8();
39
 
40
      void          Clear();
41
      void          AddData(uint8_t data);
42
      uint8_t       Crc() const;
43
 
44
    protected:
45
 
46
      uint8_t       fCrc;                   //!< current crc value
47
      static const uint8_t fCrc8Table[256];   // doxed in cpp
48
  };
49
 
50
} // end namespace Retro
51
 
52
#include "RlinkCrc8.ipp"
53
 
54
#endif

powered by: WebSVN 2.1.0

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