openMSX
|
#include <MC6850.hh>
Public Member Functions | |
MC6850 (const std::string &name, MSXMotherBoard &motherBoard, unsigned clockFreq) | |
void | reset (EmuTime::param time) |
byte | readStatusReg () const |
byte | peekStatusReg () const |
byte | readDataReg () |
byte | peekDataReg () const |
void | writeControlReg (byte value, EmuTime::param time) |
void | writeDataReg (byte value, EmuTime::param time) |
template<typename Archive > | |
void | serialize (Archive &ar, unsigned version) |
Public Member Functions inherited from openmsx::MidiInConnector | |
MidiInDevice & | getPluggedMidiInDev () const |
std::string_view | getDescription () const final |
Get a description for this connector. | |
std::string_view | getClass () const final |
A Connector belong to a certain class. | |
template<typename Archive > | |
void | serialize (Archive &ar, unsigned version) |
Public Member Functions inherited from openmsx::Connector | |
Connector (const Connector &)=delete | |
Connector (Connector &&)=delete | |
Connector & | operator= (const Connector &)=delete |
Connector & | operator= (Connector &&)=delete |
const std::string & | getName () const |
Name that identifies this connector. | |
virtual void | plug (Pluggable &device, EmuTime::param time) |
This plugs a Pluggable in this Connector. | |
virtual void | unplug (EmuTime::param time) |
This unplugs the currently inserted Pluggable from this Connector. | |
Pluggable & | getPlugged () const |
Returns the Pluggable currently plugged in. | |
PluggingController & | getPluggingController () const |
template<typename Archive > | |
void | serialize (Archive &ar, unsigned version) |
Additional Inherited Members | |
Public Types inherited from openmsx::SerialDataInterface | |
enum class | DataBits { D5 = 5 , D6 = 6 , D7 = 7 , D8 = 8 } |
enum class | StopBits { INV = 0 , S1 = 2 , S1_5 = 3 , S2 = 4 } |
enum class | Parity { 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. | |
~Connector () | |
Protected Member Functions inherited from openmsx::SerialDataInterface | |
~SerialDataInterface ()=default | |
openmsx::MC6850::MC6850 | ( | const std::string & | name, |
MSXMotherBoard & | motherBoard, | ||
unsigned | clockFreq | ||
) |
byte openmsx::MC6850::peekDataReg | ( | ) | const |
Definition at line 114 of file MC6850.cc.
Referenced by openmsx::JVCMSXMIDI::peekIO(), openmsx::MusicModuleMIDI::peekIO(), and readDataReg().
byte openmsx::MC6850::peekStatusReg | ( | ) | const |
Definition at line 95 of file MC6850.cc.
References openmsx::IntHelper< SOURCE >::getState().
Referenced by openmsx::JVCMSXMIDI::peekIO(), openmsx::MusicModuleMIDI::peekIO(), and readStatusReg().
byte openmsx::MC6850::readDataReg | ( | ) |
Definition at line 102 of file MC6850.cc.
References peekDataReg(), and openmsx::IntHelper< SOURCE >::reset().
Referenced by openmsx::JVCMSXMIDI::readIO(), and openmsx::MusicModuleMIDI::readIO().
byte openmsx::MC6850::readStatusReg | ( | ) | const |
Definition at line 90 of file MC6850.cc.
References peekStatusReg().
Referenced by openmsx::JVCMSXMIDI::readIO(), and openmsx::MusicModuleMIDI::readIO().
void openmsx::MC6850::reset | ( | EmuTime::param | time | ) |
Definition at line 73 of file MC6850.cc.
References openmsx::IntHelper< SOURCE >::reset(), openmsx::DynamicClock::reset(), and openmsx::DynamicClock::setFreq().
Referenced by MC6850(), openmsx::JVCMSXMIDI::reset(), openmsx::MusicModuleMIDI::reset(), and writeControlReg().
void openmsx::MC6850::serialize | ( | Archive & | ar, |
unsigned | version | ||
) |
Definition at line 294 of file MC6850.cc.
Referenced by openmsx::MusicModuleMIDI::serialize().
void openmsx::MC6850::writeControlReg | ( | byte | value, |
EmuTime::param | time | ||
) |
Definition at line 119 of file MC6850.cc.
References openmsx::DynamicClock::reset(), reset(), openmsx::IntHelper< SOURCE >::set(), and openmsx::DynamicClock::setFreq().
Referenced by openmsx::JVCMSXMIDI::writeIO(), and openmsx::MusicModuleMIDI::writeIO().
void openmsx::MC6850::writeDataReg | ( | byte | value, |
EmuTime::param | time | ||
) |
Definition at line 176 of file MC6850.cc.
References openmsx::DynamicClock::advance(), openmsx::DynamicClock::getTime(), and openmsx::IntHelper< SOURCE >::reset().
Referenced by openmsx::JVCMSXMIDI::writeIO(), and openmsx::MusicModuleMIDI::writeIO().