w11 - cpp 0.794
Backend server for Rlink and w11
Loading...
Searching...
No Matches
Rw11Cntl.ipp
Go to the documentation of this file.
1// $Id: Rw11Cntl.ipp 1186 2019-07-12 17:49:59Z mueller $
2// SPDX-License-Identifier: GPL-3.0-or-later
3// Copyright 2013-2019 by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
4//
5// Revision History:
6// Date Rev Version Comment
7// 2019-06-07 1160 1.1.1 Stats() not longer const
8// 2017-02-04 848 1.1 add ProbeFound(),ProbeDataInt,Rem()
9// 2013-03-06 495 1.0 Initial version
10// 2013-02-05 483 0.1 First draft
11// ---------------------------------------------------------------------------
12
17// all method definitions in namespace Retro
18namespace Retro {
19
20//------------------------------------------+-----------------------------------
22
23inline void Rw11Cntl::SetCpu(Rw11Cpu* pcpu)
24{
25 fpCpu = pcpu;
26 return;
27}
28
29//------------------------------------------+-----------------------------------
31
32inline Rw11Cpu& Rw11Cntl::Cpu() const
33{
34 return *fpCpu;
35}
36
37//------------------------------------------+-----------------------------------
39
40inline Rw11& Rw11Cntl::W11() const
41{
42 return fpCpu->W11();
43}
44
45//------------------------------------------+-----------------------------------
47
49{
50 return fpCpu->Server();
51}
52
53//------------------------------------------+-----------------------------------
55
57{
58 return fpCpu->Connect();
59}
60
61//------------------------------------------+-----------------------------------
63
65{
66 return fpCpu->LogFile();
67}
68
69//------------------------------------------+-----------------------------------
71
72inline const std::string& Rw11Cntl::Type() const
73{
74 return fType;
75}
76
77//------------------------------------------+-----------------------------------
79
80inline const std::string& Rw11Cntl::Name() const
81{
82 return fName;
83}
84
85//------------------------------------------+-----------------------------------
87
88inline uint16_t Rw11Cntl::Base() const
89{
90 return fBase;
91}
92
93//------------------------------------------+-----------------------------------
95
96inline int Rw11Cntl::Lam() const
97{
98 return fLam;
99}
100
101//------------------------------------------+-----------------------------------
103
104inline bool Rw11Cntl::Enable() const
105{
106 return fEnable;
107}
108
109//------------------------------------------+-----------------------------------
111
112inline bool Rw11Cntl::ProbeFound() const
113{
114 return fProbe.Found();
115}
116
117//------------------------------------------+-----------------------------------
119
120inline uint16_t Rw11Cntl::ProbeDataInt() const
121{
122 return fProbe.DataInt();
123}
124
125//------------------------------------------+-----------------------------------
127
128inline uint16_t Rw11Cntl::ProbeDataRem() const
129{
130 return fProbe.DataRem();
131}
132
133//------------------------------------------+-----------------------------------
135
136inline const Rw11Probe& Rw11Cntl::ProbeStatus() const
137{
138 return fProbe;
139}
140
141//------------------------------------------+-----------------------------------
143
144inline bool Rw11Cntl::IsStarted() const
145{
146 return fStarted;
147}
148
149//------------------------------------------+-----------------------------------
151
152inline void Rw11Cntl::SetTraceLevel(uint32_t level)
153{
154 fTraceLevel = level;
155 return;
156}
157
158//------------------------------------------+-----------------------------------
160
161inline uint32_t Rw11Cntl::TraceLevel() const
162{
163 return fTraceLevel;
164}
165
166//------------------------------------------+-----------------------------------
168
170{
171 return fStats;
172}
173
174} // end namespace Retro
FIXME_docs.
Definition: RlogFile.hpp:34
FIXME_docs.
Definition: Rstats.hpp:28
const Rw11Probe & ProbeStatus() const
FIXME_docs.
Definition: Rw11Cntl.ipp:136
bool ProbeFound() const
FIXME_docs.
Definition: Rw11Cntl.ipp:112
Rw11 & W11() const
FIXME_docs.
Definition: Rw11Cntl.ipp:40
Rw11Cpu * fpCpu
cpu back pointer
Definition: Rw11Cntl.hpp:106
const std::string & Type() const
FIXME_docs.
Definition: Rw11Cntl.ipp:72
int fLam
attn bit number (-1 of none)
Definition: Rw11Cntl.hpp:110
uint32_t fTraceLevel
trace level; 0=off;1=cntl
Definition: Rw11Cntl.hpp:114
std::string fType
controller type
Definition: Rw11Cntl.hpp:107
uint16_t ProbeDataInt() const
FIXME_docs.
Definition: Rw11Cntl.ipp:120
RlinkConnect & Connect() const
FIXME_docs.
Definition: Rw11Cntl.ipp:56
uint16_t Base() const
FIXME_docs.
Definition: Rw11Cntl.ipp:88
Rstats fStats
statistics
Definition: Rw11Cntl.hpp:116
Rw11Probe fProbe
controller probe context
Definition: Rw11Cntl.hpp:113
int Lam() const
FIXME_docs.
Definition: Rw11Cntl.ipp:96
Rw11Cpu & Cpu() const
FIXME_docs.
Definition: Rw11Cntl.ipp:32
bool Enable() const
FIXME_docs.
Definition: Rw11Cntl.ipp:104
Rstats & Stats()
FIXME_docs.
Definition: Rw11Cntl.ipp:169
bool fStarted
true if Start() called
Definition: Rw11Cntl.hpp:112
bool fEnable
enable flag
Definition: Rw11Cntl.hpp:111
RlinkServer & Server() const
FIXME_docs.
Definition: Rw11Cntl.ipp:48
std::string fName
controller name
Definition: Rw11Cntl.hpp:108
bool IsStarted() const
FIXME_docs.
Definition: Rw11Cntl.ipp:144
void SetTraceLevel(uint32_t level)
FIXME_docs.
Definition: Rw11Cntl.ipp:152
const std::string & Name() const
FIXME_docs.
Definition: Rw11Cntl.ipp:80
uint16_t ProbeDataRem() const
FIXME_docs.
Definition: Rw11Cntl.ipp:128
uint32_t TraceLevel() const
FIXME_docs.
Definition: Rw11Cntl.ipp:161
RlogFile & LogFile() const
FIXME_docs.
Definition: Rw11Cntl.ipp:64
void SetCpu(Rw11Cpu *pcpu)
FIXME_docs.
Definition: Rw11Cntl.ipp:23
uint16_t fBase
controller base address
Definition: Rw11Cntl.hpp:109
FIXME_docs.
Definition: Rw11Cpu.hpp:66
RlinkConnect & Connect() const
FIXME_docs.
Definition: Rw11Cpu.ipp:46
RlogFile & LogFile() const
FIXME_docs.
Definition: Rw11Cpu.ipp:54
RlinkServer & Server() const
FIXME_docs.
Definition: Rw11Cpu.ipp:38
Rw11 & W11() const
FIXME_docs.
Definition: Rw11Cpu.ipp:30
FIXME_docs.
Definition: Rw11.hpp:31
Declaration of class ReventLoop.
Definition: ReventLoop.cpp:47
FIXME_docs.
Definition: Rw11Probe.hpp:23
uint16_t DataInt() const
FIXME_docs.
Definition: Rw11Probe.ipp:20
bool Found() const
FIXME_docs.
Definition: Rw11Probe.cpp:52
uint16_t DataRem() const
FIXME_docs.
Definition: Rw11Probe.ipp:28