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

#include <CassettePort.hh>

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

Public Member Functions

 DummyCassettePort (MSXMotherBoard &motherBoard)
 
void setMotor (bool status, EmuTime::param time) override
 Sets the cassette motor relay false = off true = on.
 
void cassetteOut (bool output, EmuTime::param time) override
 Writes one bit to the cassette port.
 
bool cassetteIn (EmuTime::param time) override
 Reads one bit from the cassette port.
 
bool lastOut () const override
 last bit written to CasOut.
 
CassettePlayergetCassettePlayer () override
 Get the cassette player (if available)
 
- Public Member Functions inherited from openmsx::CassettePortInterface
virtual ~CassettePortInterface ()=default
 

Detailed Description

Definition at line 105 of file CassettePort.hh.

Constructor & Destructor Documentation

◆ DummyCassettePort()

openmsx::DummyCassettePort::DummyCassettePort ( MSXMotherBoard motherBoard)
explicit

Definition at line 20 of file CassettePort.cc.

Member Function Documentation

◆ cassetteIn()

bool openmsx::DummyCassettePort::cassetteIn ( EmuTime::param  time)
overridevirtual

Reads one bit from the cassette port.

From the RedBook: The cassette input is used to read the signal from the cassette EAR output. This is passed through a comparator to clean the edges and to convert to digital levels, but is otherwise unprocessed.

Implements openmsx::CassettePortInterface.

Definition at line 37 of file CassettePort.cc.

◆ cassetteOut()

void openmsx::DummyCassettePort::cassetteOut ( bool  output,
EmuTime::param  time 
)
overridevirtual

Writes one bit to the cassette port.

From the RedBook: The CasOut bit is filtered and attenuated before being taken to the cassette DIN socket as the MIC signal. All cassette tone generation is performed in software.

Implements openmsx::CassettePortInterface.

Definition at line 33 of file CassettePort.cc.

◆ getCassettePlayer()

CassettePlayer * openmsx::DummyCassettePort::getCassettePlayer ( )
inlineoverridevirtual

Get the cassette player (if available)

Implements openmsx::CassettePortInterface.

Definition at line 116 of file CassettePort.hh.

◆ lastOut()

bool openmsx::DummyCassettePort::lastOut ( ) const
overridevirtual

last bit written to CasOut.

for use in Pluggable::plugHelper()

Implements openmsx::CassettePortInterface.

Definition at line 41 of file CassettePort.cc.

◆ setMotor()

void openmsx::DummyCassettePort::setMotor ( bool  status,
EmuTime::param  time 
)
overridevirtual

Sets the cassette motor relay false = off true = on.

Implements openmsx::CassettePortInterface.

Definition at line 29 of file CassettePort.cc.


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