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

Subversion Repositories w11

[/] [w11/] [tags/] [w11a_V0.6/] [tools/] [src/] [librlinktpp/] [RtclRlinkPort.hpp] - Blame information for rev 24

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 19 wfjm
// $Id: RtclRlinkPort.hpp 492 2013-02-24 22:14:47Z mueller $
2
//
3
// Copyright 2013- 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
// 2013-02-23   492   1.0.1  use RlogFile.Name();
17
// 2013-01-27   478   1.0    Initial version
18
// ---------------------------------------------------------------------------
19
 
20
/*!
21
  \file
22
  \version $Id: RtclRlinkPort.hpp 492 2013-02-24 22:14:47Z mueller $
23
  \brief   Declaration of class RtclRlinkPort.
24
*/
25
 
26
#ifndef included_Retro_RtclRlinkPort
27
#define included_Retro_RtclRlinkPort 1
28
 
29
#include <cstddef>
30
#include <string>
31
 
32
#include "boost/shared_ptr.hpp"
33
 
34
#include "librtcltools/RtclProxyBase.hpp"
35
 
36
#include "librtools/RlogFile.hpp"
37
#include "librlink/RlinkPort.hpp"
38
 
39
namespace Retro {
40
 
41
  class RtclRlinkPort : public RtclProxyBase {
42
    public:
43
                    RtclRlinkPort(Tcl_Interp* interp, const char* name);
44
                   ~RtclRlinkPort();
45
 
46
      friend class RtclRlinkConnect;
47
 
48
    protected:
49
      int           M_open(RtclArgs& args);
50
      int           M_close(RtclArgs& args);
51
      int           M_errcnt(RtclArgs& args);
52
      int           M_rawio(RtclArgs& args);
53
      int           M_stats(RtclArgs& args);
54
      int           M_log(RtclArgs& args);
55
      int           M_dump(RtclArgs& args);
56
      int           M_config(RtclArgs& args);
57
      int           M_default(RtclArgs& args);
58
 
59
      bool          TestOpen(RtclArgs& args);
60
 
61
      static int    DoRawio(RtclArgs& args, RlinkPort* pport, size_t& errcnt);
62
 
63
    protected:
64
      RlinkPort*    fpObj;                  //!< ptr to managed object
65
      boost::shared_ptr<RlogFile> fspLog;   //!< port log file
66
      uint32_t      fTraceLevel;            //!< 0=off,1=buf,2=char
67
      size_t        fErrCnt;                //!< error count
68
  };
69
 
70
} // end namespace Retro
71
 
72
//#include "RtclRlinkPort.ipp"
73
 
74
#endif

powered by: WebSVN 2.1.0

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