openMSX
|
#include <YM2148.hh>
Public Member Functions | |
YM2148 (const std::string &name, MSXMotherBoard &motherBoard) | |
void | reset () |
void | writeCommand (byte value) |
void | writeData (byte value, EmuTime::param time) |
byte | readStatus (EmuTime::param time) const |
byte | readData (EmuTime::param time) |
byte | peekStatus (EmuTime::param time) const |
byte | peekData (EmuTime::param time) const |
bool | pendingIRQ () const |
template<typename Archive > | |
void | serialize (Archive &ar, unsigned version) |
![]() | |
MidiInDevice & | getPluggedMidiInDev () const |
std::string_view | getDescription () const final |
Get a description for this connector. More... | |
std::string_view | getClass () const final |
A Connector belong to a certain class. More... | |
virtual bool | ready ()=0 |
virtual bool | acceptsData ()=0 |
template<typename Archive > | |
void | serialize (Archive &ar, unsigned version) |
![]() | |
Connector (const Connector &)=delete | |
Connector & | operator= (const Connector &)=delete |
const std::string & | getName () const |
Name that identifies this connector. More... | |
virtual std::string_view | getDescription () const =0 |
Get a description for this connector. More... | |
virtual std::string_view | getClass () const =0 |
A Connector belong to a certain class. More... | |
virtual void | plug (Pluggable &device, EmuTime::param time) |
This plugs a Pluggable in this Connector. More... | |
virtual void | unplug (EmuTime::param time) |
This unplugs the currently inserted Pluggable from this Connector. More... | |
Pluggable & | getPlugged () const |
Returns the Pluggable currently plugged in. More... | |
PluggingController & | getPluggingController () const |
template<typename Archive > | |
void | serialize (Archive &ar, unsigned version) |
virtual void | setDataBits (DataBits bits)=0 |
virtual void | setStopBits (StopBits bits)=0 |
virtual void | setParityBit (bool enable, ParityBit parity)=0 |
virtual void | recvByte (byte value, EmuTime::param time)=0 |
Additional Inherited Members | |
![]() | |
enum | DataBits { DATA_5 = 5 , DATA_6 = 6 , DATA_7 = 7 , DATA_8 = 8 } |
enum | StopBits { STOP_INV = 0 , STOP_1 = 2 , STOP_15 = 3 , STOP_2 = 4 } |
enum | ParityBit { EVEN = 0 , ODD = 1 } |
![]() | |
MidiInConnector (PluggingController &pluggingController, std::string name) | |
~MidiInConnector ()=default | |
![]() | |
Connector (PluggingController &pluggingController, std::string name, std::unique_ptr< Pluggable > dummy) | |
Creates a new Connector. More... | |
~Connector () | |
![]() | |
~SerialDataInterface ()=default | |
openmsx::YM2148::YM2148 | ( | const std::string & | name, |
MSXMotherBoard & | motherBoard | ||
) |
byte openmsx::YM2148::peekData | ( | EmuTime::param | time | ) | const |
Definition at line 129 of file YM2148.cc.
Referenced by openmsx::MSXYamahaSFG::peekMem().
byte openmsx::YM2148::peekStatus | ( | EmuTime::param | time | ) | const |
Definition at line 117 of file YM2148.cc.
Referenced by openmsx::MSXYamahaSFG::peekMem().
bool openmsx::YM2148::pendingIRQ | ( | ) | const |
Definition at line 221 of file YM2148.cc.
References openmsx::IntHelper< SOURCE >::getState().
Referenced by openmsx::MSXYamahaSFG::readIRQVector().
byte openmsx::YM2148::readData | ( | EmuTime::param | time | ) |
Definition at line 123 of file YM2148.cc.
References openmsx::IntHelper< SOURCE >::reset().
Referenced by openmsx::MSXYamahaSFG::readMem().
byte openmsx::YM2148::readStatus | ( | EmuTime::param | time | ) | const |
Definition at line 113 of file YM2148.cc.
Referenced by openmsx::MSXYamahaSFG::readMem().
void openmsx::YM2148::reset | ( | ) |
Definition at line 42 of file YM2148.cc.
References openmsx::IntHelper< SOURCE >::reset().
Referenced by openmsx::MSXYamahaSFG::reset(), writeCommand(), and YM2148().
void openmsx::YM2148::serialize | ( | Archive & | ar, |
unsigned | version | ||
) |
void openmsx::YM2148::writeCommand | ( | byte | value | ) |
Definition at line 135 of file YM2148.cc.
References reset(), and openmsx::IntHelper< SOURCE >::set().
Referenced by openmsx::MSXYamahaSFG::writeMem().
void openmsx::YM2148::writeData | ( | byte | value, |
EmuTime::param | time | ||
) |
Definition at line 178 of file YM2148.cc.
References openmsx::IntHelper< SOURCE >::reset().
Referenced by openmsx::MSXYamahaSFG::writeMem().