openMSX
Classes | Public Member Functions | List of all members
openmsx::YM2148 Class Referencefinal

#include <YM2148.hh>

Inheritance diagram for openmsx::YM2148:
Inheritance graph
[legend]
Collaboration diagram for openmsx::YM2148:
Collaboration graph
[legend]

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)
 
- Public Member Functions inherited from openmsx::MidiInConnector
MidiInDevicegetPluggedMidiInDev () const
 
std::string_view getDescription () const final override
 Get a description for this connector. More...
 
std::string_view getClass () const final override
 A Connector belong to a certain class. More...
 
template<typename Archive >
void serialize (Archive &ar, unsigned version)
 
- Public Member Functions inherited from openmsx::Connector
 Connector (const Connector &)=delete
 
Connectoroperator= (const Connector &)=delete
 
const std::string & getName () const
 Name that identifies this connector. 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...
 
PluggablegetPlugged () const
 Returns the Pluggable currently plugged in. More...
 
PluggingControllergetPluggingController () const
 
template<typename Archive >
void serialize (Archive &ar, unsigned version)
 

Additional Inherited Members

- Public Types inherited from openmsx::SerialDataInterface
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 }
 
- Protected Member Functions inherited from openmsx::MidiInConnector
 MidiInConnector (PluggingController &pluggingController, std::string name)
 
 ~MidiInConnector ()=default
 
- Protected Member Functions inherited from openmsx::Connector
 Connector (PluggingController &pluggingController, std::string name, std::unique_ptr< Pluggable > dummy)
 Creates a new Connector. More...
 
 ~Connector ()
 
- Protected Member Functions inherited from openmsx::SerialDataInterface
 ~SerialDataInterface ()=default
 

Detailed Description

Definition at line 16 of file YM2148.hh.

Constructor & Destructor Documentation

◆ YM2148()

openmsx::YM2148::YM2148 ( const std::string &  name,
MSXMotherBoard motherBoard 
)

Definition at line 31 of file YM2148.cc.

References reset().

Member Function Documentation

◆ peekData()

byte openmsx::YM2148::peekData ( EmuTime::param  time) const

Definition at line 130 of file YM2148.cc.

Referenced by openmsx::MSXYamahaSFG::peekMem().

◆ peekStatus()

byte openmsx::YM2148::peekStatus ( EmuTime::param  time) const

Definition at line 118 of file YM2148.cc.

Referenced by openmsx::MSXYamahaSFG::peekMem().

◆ pendingIRQ()

bool openmsx::YM2148::pendingIRQ ( ) const

Definition at line 222 of file YM2148.cc.

References openmsx::IntHelper< SOURCE >::getState().

Referenced by openmsx::MSXYamahaSFG::readIRQVector().

◆ readData()

byte openmsx::YM2148::readData ( EmuTime::param  time)

◆ readStatus()

byte openmsx::YM2148::readStatus ( EmuTime::param  time) const

Definition at line 114 of file YM2148.cc.

Referenced by openmsx::MSXYamahaSFG::readMem().

◆ reset()

void openmsx::YM2148::reset ( )

Definition at line 43 of file YM2148.cc.

References openmsx::IntHelper< SOURCE >::reset().

Referenced by openmsx::MSXYamahaSFG::reset(), writeCommand(), and YM2148().

◆ serialize()

template<typename Archive >
void openmsx::YM2148::serialize ( Archive &  ar,
unsigned  version 
)

Definition at line 228 of file YM2148.cc.

◆ writeCommand()

void openmsx::YM2148::writeCommand ( byte  value)

◆ writeData()

void openmsx::YM2148::writeData ( byte  value,
EmuTime::param  time 
)

The documentation for this class was generated from the following files: