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

Subversion Repositories w11

[/] [w11/] [tags/] [w11a_V0.7/] [tools/] [src/] [librw11/] [Rw11UnitRHRP.hpp] - Blame information for rev 33

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 wfjm
// $Id: Rw11UnitRHRP.hpp 680 2015-05-14 13:29:46Z mueller $
2
//
3
// Copyright 2015- 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
// 2015-05-14   680   1.0    Initial version
17
// 2015-03-21   659   0.1    First draft
18
// ---------------------------------------------------------------------------
19
 
20
 
21
/*!
22
  \file
23
  \version $Id: Rw11UnitRHRP.hpp 680 2015-05-14 13:29:46Z mueller $
24
  \brief   Declaration of class Rw11UnitRHRP.
25
*/
26
 
27
#ifndef included_Retro_Rw11UnitRHRP
28
#define included_Retro_Rw11UnitRHRP 1
29
 
30
#include "Rw11UnitDiskBase.hpp"
31
 
32
namespace Retro {
33
 
34
  class Rw11CntlRHRP;                       // forw decl to avoid circular incl
35
 
36
  class Rw11UnitRHRP : public Rw11UnitDiskBase<Rw11CntlRHRP> {
37
    public:
38
                    Rw11UnitRHRP(Rw11CntlRHRP* pcntl, size_t index);
39
                   ~Rw11UnitRHRP();
40
 
41
      virtual void  SetType(const std::string& type);
42
      uint16_t      Rpdt() const;
43
      bool          IsRmType() const;
44
 
45
      void          SetRpds(uint16_t rpds);
46
      uint16_t      Rpds() const;
47
 
48
      virtual void  Dump(std::ostream& os, int ind=0, const char* text=0) const;
49
 
50
    // some constants (also defined in cpp)
51
      static const uint16_t kDTE_M_RM = kWBit02; //!< rm type flag
52
      static const uint16_t kDTE_RP04 = 00; //!< drive type of RP04  rm=0
53
      static const uint16_t kDTE_RP06 = 01; //!< drive type of RP06  rm=0
54
      static const uint16_t kDTE_RM03 = 04; //!< drive type of RM03  rm=1
55
      static const uint16_t kDTE_RM80 = 05; //!< drive type of RM80  rm=1
56
      static const uint16_t kDTE_RM05 = 06; //!< drive type of RM05  rm=1
57
      static const uint16_t kDTE_RP07 = 07; //!< drive type of RP07  rm=1
58
 
59
    protected:
60
      uint16_t      fRpdt;                  //!< drive type (encoded)
61
      uint16_t      fRpds;                  //!< drive status
62
  };
63
 
64
} // end namespace Retro
65
 
66
#include "Rw11UnitRHRP.ipp"
67
 
68
#endif

powered by: WebSVN 2.1.0

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