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

Subversion Repositories w11

[/] [w11/] [tags/] [w11a_V0.61/] [tools/] [src/] [librlinktpp/] [RtclRlinkConnect.hpp] - Blame information for rev 15

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

Line No. Rev Author Line
1 15 wfjm
// $Id: RtclRlinkConnect.hpp 434 2011-12-02 19:17:38Z 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 15 wfjm
// 2011-11-28   434   1.0.1  ConfigBase(): use uint32_t for lp64 compatibility
17 10 wfjm
// 2011-03-27   374   1.0    Initial version
18
// 2011-02-11   360   0.1    First draft
19
// ---------------------------------------------------------------------------
20
 
21
/*!
22
  \file
23 15 wfjm
  \version $Id: RtclRlinkConnect.hpp 434 2011-12-02 19:17:38Z mueller $
24 10 wfjm
  \brief   Declaration of class RtclRlinkConnect.
25
*/
26
 
27
#ifndef included_Retro_RtclRlinkConnect
28
#define included_Retro_RtclRlinkConnect 1
29
 
30
#include <cstddef>
31
#include <string>
32
 
33
#include "librtcltools/RtclOPtr.hpp"
34
#include "librtcltools/RtclProxyOwned.hpp"
35
 
36
#include "librlink/RlinkConnect.hpp"
37
 
38
namespace Retro {
39
 
40
  class RtclRlinkConnect : public RtclProxyOwned<RlinkConnect> {
41
    public:
42
                    RtclRlinkConnect(Tcl_Interp* interp, const char* name);
43
                    ~RtclRlinkConnect();
44
 
45
    protected:
46
      int           M_open(RtclArgs& args);
47
      int           M_close(RtclArgs& args);
48
      int           M_exec(RtclArgs& args);
49
      int           M_amap(RtclArgs& args);
50
      int           M_errcnt(RtclArgs& args);
51
      int           M_wtlam(RtclArgs& args);
52
      int           M_oob(RtclArgs& args);
53
      int           M_stats(RtclArgs& args);
54
      int           M_log(RtclArgs& args);
55
      int           M_print(RtclArgs& args);
56
      int           M_dump(RtclArgs& args);
57
      int           M_config(RtclArgs& args);
58
      int           M_default(RtclArgs& args);
59
 
60
      bool          GetAddr(RtclArgs& args, RlinkConnect& conn, uint16_t& addr);
61
      bool          GetVarName(RtclArgs& args, const char* argname,
62
                               size_t nind, std::vector<std::string>& varname);
63 15 wfjm
      bool          ConfigBase(RtclArgs& args, uint32_t& base);
64 10 wfjm
      bool          ClistNonEmpty(RtclArgs& args,
65
                                  const RlinkCommandList& clist);
66
 
67
    protected:
68
      RtclOPtr      fCmdnameObj[8];
69
      size_t        fErrCnt;
70
      std::string   fLogFileName;
71
  };
72
 
73
} // end namespace Retro
74
 
75
#if !(defined(Retro_NoInline) || defined(Retro_RtclRlinkConnect_NoInline))
76
//#include "RtclRlinkConnect.ipp"
77
#endif
78
 
79
#endif

powered by: WebSVN 2.1.0

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