openMSX
IDEDevice.hh
Go to the documentation of this file.
1 #ifndef IDEDEVICE_HH
2 #define IDEDEVICE_HH
3 
4 #include "EmuTime.hh"
5 #include "openmsx.hh"
6 
7 namespace openmsx {
8 
9 class IDEDevice
10 {
11 public:
12  virtual ~IDEDevice() = default;
13  virtual void reset(EmuTime::param time) = 0;
14 
15  virtual word readData(EmuTime::param time) = 0;
16  virtual byte readReg(nibble reg, EmuTime::param time) = 0;
17 
18  virtual void writeData(word value, EmuTime::param time) = 0;
19  virtual void writeReg(nibble reg, byte value, EmuTime::param time) = 0;
20 };
21 
22 } // namespace openmsx
23 
24 #endif
openmsx::IDEDevice::readReg
virtual byte readReg(nibble reg, EmuTime::param time)=0
openmsx.hh
openmsx::nibble
uint8_t nibble
4 bit integer
Definition: openmsx.hh:23
openmsx::IDEDevice::readData
virtual word readData(EmuTime::param time)=0
openmsx::IDEDevice::~IDEDevice
virtual ~IDEDevice()=default
openmsx::IDEDevice::reset
virtual void reset(EmuTime::param time)=0
EmuTime.hh
openmsx::word
uint16_t word
16 bit unsigned integer
Definition: openmsx.hh:29
openmsx::IDEDevice::writeReg
virtual void writeReg(nibble reg, byte value, EmuTime::param time)=0
openmsx::IDEDevice
Definition: IDEDevice.hh:9
openmsx
Thanks to enen for testing this on a real cartridge:
Definition: Autofire.cc:5
openmsx::IDEDevice::writeData
virtual void writeData(word value, EmuTime::param time)=0