openMSX
DummySCSIDevice.hh
Go to the documentation of this file.
1 #ifndef DUMMYSCSIDEVICE_HH
2 #define DUMMYSCSIDEVICE_HH
3 
4 #include "SCSIDevice.hh"
5 
6 namespace openmsx {
7 
8 class DummySCSIDevice final : public SCSIDevice
9 {
10 public:
11  void reset() override;
12  bool isSelected() override;
13  unsigned executeCmd(const byte* cdb, SCSI::Phase& phase,
14  unsigned& blocks) override;
15  unsigned executingCmd(SCSI::Phase& phase, unsigned& blocks) override;
16  byte getStatusCode() override;
17  int msgOut(byte value) override;
18  byte msgIn() override;
19  void disconnect() override;
20  void busReset() override; // only used in MB89352 controller
21 
22  unsigned dataIn(unsigned& blocks) override;
23  unsigned dataOut(unsigned& blocks) override;
24 
25  template<typename Archive>
26  void serialize(Archive& ar, unsigned version);
27 };
28 
29 } // namespace openmsx
30 
31 #endif
int msgOut(byte value) override
void disconnect() override
bool isSelected() override
unsigned executeCmd(const byte *cdb, SCSI::Phase &phase, unsigned &blocks) override
unsigned executingCmd(SCSI::Phase &phase, unsigned &blocks) override
uint8_t byte
8 bit unsigned integer
Definition: openmsx.hh:26
unsigned dataOut(unsigned &blocks) override
void serialize(Archive &ar, unsigned version)
unsigned dataIn(unsigned &blocks) override
byte getStatusCode() override
Thanks to enen for testing this on a real cartridge:
Definition: Autofire.cc:5