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

#include <MC6850.hh>

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

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
MidiInDevicegetPluggedMidiInDev () 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
 
Connectoroperator= (const Connector &)=delete
 
Connectoroperator= (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.
 
PluggablegetPlugged () const
 Returns the Pluggable currently plugged in.
 
PluggingControllergetPluggingController () 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
 

Detailed Description

Definition at line 16 of file MC6850.hh.

Constructor & Destructor Documentation

◆ MC6850()

openmsx::MC6850::MC6850 ( const std::string &  name,
MSXMotherBoard motherBoard,
unsigned  clockFreq 
)

Definition at line 59 of file MC6850.cc.

References reset().

Member Function Documentation

◆ peekDataReg()

byte openmsx::MC6850::peekDataReg ( ) const

◆ peekStatusReg()

byte openmsx::MC6850::peekStatusReg ( ) const

◆ readDataReg()

byte openmsx::MC6850::readDataReg ( )

◆ readStatusReg()

byte openmsx::MC6850::readStatusReg ( ) const

Definition at line 90 of file MC6850.cc.

References peekStatusReg().

Referenced by openmsx::JVCMSXMIDI::readIO(), and openmsx::MusicModuleMIDI::readIO().

◆ reset()

void openmsx::MC6850::reset ( EmuTime::param  time)

◆ serialize()

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

Definition at line 294 of file MC6850.cc.

Referenced by openmsx::MusicModuleMIDI::serialize().

◆ writeControlReg()

void openmsx::MC6850::writeControlReg ( byte  value,
EmuTime::param  time 
)

◆ writeDataReg()

void openmsx::MC6850::writeDataReg ( byte  value,
EmuTime::param  time 
)

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