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
virtual word readData(EmuTime::param time)=0
uint8_t byte
8 bit unsigned integer
Definition: openmsx.hh:26
virtual ~IDEDevice()=default
virtual void writeReg(nibble reg, byte value, EmuTime::param time)=0
Thanks to enen for testing this on a real cartridge:
Definition: Autofire.cc:5
virtual byte readReg(nibble reg, EmuTime::param time)=0
uint8_t nibble
4 bit integer
Definition: openmsx.hh:23
uint16_t word
16 bit unsigned integer
Definition: openmsx.hh:29
virtual void writeData(word value, EmuTime::param time)=0
virtual void reset(EmuTime::param time)=0