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

void setMotor (bool status, EmuTime::param time) override
 Sets the cassette motor relay false = off true = on. More...
 
void cassetteOut (bool output, EmuTime::param time) override
 Writes one bit to the cassette port. More...
 
bool cassetteIn (EmuTime::param time) override
 Reads one bit from the cassette port. More...
 
void setLaserdiscPlayer (LaserdiscPlayer *laserdisc) override
 Set the Laserdisc Player; when the motor control is off, sound is read from the laserdisc. More...
 
bool lastOut () const override
 last bit written to CasOut. More...
 
- Public Member Functions inherited from openmsx::CassettePortInterface
virtual ~CassettePortInterface ()=default
 

Detailed Description

Definition at line 99 of file CassettePort.hh.

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 30 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 26 of file CassettePort.cc.

◆ lastOut()

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

last bit written to CasOut.

for use in Pluggable::plugHelper()

Implements openmsx::CassettePortInterface.

Definition at line 34 of file CassettePort.cc.

◆ setLaserdiscPlayer()

void openmsx::DummyCassettePort::setLaserdiscPlayer ( LaserdiscPlayer laserdisc)
overridevirtual

Set the Laserdisc Player; when the motor control is off, sound is read from the laserdisc.

Implements openmsx::CassettePortInterface.

Definition at line 39 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 22 of file CassettePort.cc.


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