w11 - cpp 0.794
Backend server for Rlink and w11
Loading...
Searching...
No Matches
Rw11UnitRHRP.hpp
Go to the documentation of this file.
1// $Id: Rw11UnitRHRP.hpp 1186 2019-07-12 17:49:59Z mueller $
2// SPDX-License-Identifier: GPL-3.0-or-later
3// Copyright 2015-2017 by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
4//
5// Revision History:
6// Date Rev Version Comment
7// 2017-04-07 868 1.0.1 Dump(): add detail arg
8// 2015-05-14 680 1.0 Initial version
9// 2015-03-21 659 0.1 First draft
10// ---------------------------------------------------------------------------
11
12
17#ifndef included_Retro_Rw11UnitRHRP
18#define included_Retro_Rw11UnitRHRP 1
19
20#include "Rw11UnitDiskBase.hpp"
21
22namespace Retro {
23
24 class Rw11CntlRHRP; // forw decl to avoid circular incl
25
26 class Rw11UnitRHRP : public Rw11UnitDiskBase<Rw11CntlRHRP> {
27 public:
28 Rw11UnitRHRP(Rw11CntlRHRP* pcntl, size_t index);
30
31 virtual void SetType(const std::string& type);
32 uint16_t Rpdt() const;
33 bool IsRmType() const;
34
35 void SetRpds(uint16_t rpds);
36 uint16_t Rpds() const;
37
38 virtual void Dump(std::ostream& os, int ind=0, const char* text=0,
39 int detail=0) const;
40
41 // some constants (also defined in cpp)
42 static const uint16_t kDTE_M_RM = kWBit02;
43 static const uint16_t kDTE_RP04 = 00;
44 static const uint16_t kDTE_RP06 = 01;
45 static const uint16_t kDTE_RM03 = 04;
46 static const uint16_t kDTE_RM80 = 05;
47 static const uint16_t kDTE_RM05 = 06;
48 static const uint16_t kDTE_RP07 = 07;
49
50 protected:
51 uint16_t fRpdt;
52 uint16_t fRpds;
53 };
54
55} // end namespace Retro
56
57#include "Rw11UnitRHRP.ipp"
58
59#endif
static const uint16_t kWBit02
Definition: Rbits.hpp:34
Implemenation (inline) of Rw11UnitDiskBase.
uint16_t fRpds
drive status
static const uint16_t kDTE_RM03
drive type of RM03 rm=1
~Rw11UnitRHRP()
Destructor.
static const uint16_t kDTE_RP06
drive type of RP06 rm=0
void SetRpds(uint16_t rpds)
FIXME_docs.
static const uint16_t kDTE_RM80
drive type of RM80 rm=1
bool IsRmType() const
FIXME_docs.
uint16_t Rpds() const
FIXME_docs.
static const uint16_t kDTE_RM05
drive type of RM05 rm=1
static const uint16_t kDTE_RP07
drive type of RP07 rm=1
uint16_t Rpdt() const
FIXME_docs.
static const uint16_t kDTE_RP04
drive type of RP04 rm=0
virtual void SetType(const std::string &type)
FIXME_docs.
virtual void Dump(std::ostream &os, int ind=0, const char *text=0, int detail=0) const
FIXME_docs.
static const uint16_t kDTE_M_RM
rm type flag
uint16_t fRpdt
drive type (encoded)
Declaration of class ReventLoop.
Definition: ReventLoop.cpp:47