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

Subversion Repositories w11

[/] [w11/] [tags/] [w11a_V0.74/] [tools/] [src/] [librlink/] [RlinkContext.ipp] - Blame information for rev 19

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

Line No. Rev Author Line
1 19 wfjm
// $Id: RlinkContext.ipp 492 2013-02-24 22:14:47Z mueller $
2
//
3
// Copyright 2013- by Walter F.J. Mueller 
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
// 2013-02-23   492   1.0    Initial version
17
// ---------------------------------------------------------------------------
18
 
19
/*!
20
  \file
21
  \version $Id: RlinkContext.ipp 492 2013-02-24 22:14:47Z mueller $
22
  \brief   Implemenation (inline) of class RlinkContext.
23
*/
24
 
25
// all method definitions in namespace Retro
26
namespace Retro {
27
 
28
//------------------------------------------+-----------------------------------
29
//! FIXME_docs
30
 
31
inline void RlinkContext::SetStatus(uint8_t stat, uint8_t statmsk)
32
{
33
  fStatusVal = stat;
34
  fStatusMsk = statmsk;
35
  return;
36
}
37
 
38
//------------------------------------------+-----------------------------------
39
//! FIXME_docs
40
 
41
inline uint8_t RlinkContext::StatusValue() const
42
{
43
  return fStatusVal;
44
}
45
 
46
//------------------------------------------+-----------------------------------
47
//! FIXME_docs
48
 
49
inline uint8_t RlinkContext::StatusMask() const
50
{
51
  return fStatusMsk;
52
}
53
 
54
//------------------------------------------+-----------------------------------
55
//! FIXME_docs
56
 
57
inline bool RlinkContext::StatusIsChecked() const
58
{
59
  return fStatusMsk != 0xff;
60
}
61
 
62
//------------------------------------------+-----------------------------------
63
//! FIXME_docs
64
 
65
inline bool RlinkContext::StatusCheck(uint8_t val) const
66
{
67
  return (val|fStatusMsk) == (fStatusVal|fStatusMsk);
68
}
69
 
70
//------------------------------------------+-----------------------------------
71
//! FIXME_docs
72
 
73
inline void RlinkContext::IncErrorCount(size_t inc)
74
{
75
  fErrCnt += inc;
76
  return;
77
}
78
 
79
//------------------------------------------+-----------------------------------
80
//! FIXME_docs
81
 
82
inline void RlinkContext::ClearErrorCount()
83
{
84
  fErrCnt = 0;
85
  return;
86
}
87
 
88
//------------------------------------------+-----------------------------------
89
//! FIXME_docs
90
 
91
inline size_t RlinkContext::ErrorCount() const
92
{
93
  return fErrCnt;
94
}
95
 
96
} // end namespace Retro

powered by: WebSVN 2.1.0

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