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

Subversion Repositories w11

[/] [w11/] [tags/] [w11a_V0.7/] [tools/] [src/] [librlink/] [RlinkPacketBuf.ipp] - Blame information for rev 33

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 27 wfjm
// $Id: RlinkPacketBuf.ipp 604 2014-11-16 22:33:09Z mueller $
2 10 wfjm
//
3 27 wfjm
// Copyright 2011-2014 by Walter F.J. Mueller 
4 10 wfjm
//
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 27 wfjm
// 2014-11-15   604   2.0    re-organize for rlink v4
17 10 wfjm
// 2011-04-02   375   1.0    Initial version
18
// 2011-03-05   366   0.1    First draft
19
// ---------------------------------------------------------------------------
20
 
21
/*!
22
  \file
23 27 wfjm
  \version $Id: RlinkPacketBuf.ipp 604 2014-11-16 22:33:09Z mueller $
24 10 wfjm
  \brief   Implemenation (inline) of class RlinkPacketBuf.
25
*/
26
 
27 19 wfjm
// all method definitions in namespace Retro
28 10 wfjm
namespace Retro {
29
 
30
//------------------------------------------+-----------------------------------
31
//! FIXME_docs
32
 
33
inline size_t RlinkPacketBuf::PktSize() const
34
{
35
  return fPktBuf.size();
36
}
37
 
38
//------------------------------------------+-----------------------------------
39
//! FIXME_docs
40
 
41
inline void RlinkPacketBuf::SetFlagBit(uint32_t mask)
42
{
43
  fFlags |= mask;
44
  return;
45
}
46
 
47
//------------------------------------------+-----------------------------------
48
//! FIXME_docs
49
 
50
inline uint32_t RlinkPacketBuf::Flags() const
51
{
52
  return fFlags;
53
}
54
 
55
//------------------------------------------+-----------------------------------
56
//! FIXME_docs
57
 
58
inline bool RlinkPacketBuf::TestFlag(uint32_t mask) const
59
{
60
  return (fFlags & mask) != 0;
61
}
62
 
63
//------------------------------------------+-----------------------------------
64
//! FIXME_docs
65
 
66 27 wfjm
inline const Rstats& RlinkPacketBuf::Stats() const
67 10 wfjm
{
68 27 wfjm
  return fStats;
69 10 wfjm
}
70
 
71
//------------------------------------------+-----------------------------------
72
//! FIXME_docs
73
 
74
inline void RlinkPacketBuf::ClearFlagBit(uint32_t mask)
75
{
76
  fFlags &= ~mask;
77
  return;
78
}
79
 
80
} // end namespace Retro

powered by: WebSVN 2.1.0

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