openMSX
Public Member Functions | List of all members
openmsx::CassettePortInterface Class Referenceabstract

#include <CassettePort.hh>

Inheritance diagram for openmsx::CassettePortInterface:
Inheritance graph
[legend]

Public Member Functions

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

Detailed Description

Definition at line 16 of file CassettePort.hh.

Constructor & Destructor Documentation

openmsx::CassettePortInterface::~CassettePortInterface ( )
virtual

Definition at line 23 of file CassettePort.cc.

Member Function Documentation

virtual bool openmsx::CassettePortInterface::cassetteIn ( EmuTime::param  time)
pure virtual

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.

Implemented in openmsx::DummyCassettePort, and openmsx::CassettePort.

virtual void openmsx::CassettePortInterface::cassetteOut ( bool  output,
EmuTime::param  time 
)
pure virtual

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.

Implemented in openmsx::DummyCassettePort, and openmsx::CassettePort.

virtual bool openmsx::CassettePortInterface::lastOut ( ) const
pure virtual

last bit written to CasOut.

for use in Pluggable::plugHelper()

Implemented in openmsx::DummyCassettePort, and openmsx::CassettePort.

virtual void openmsx::CassettePortInterface::setLaserdiscPlayer ( LaserdiscPlayer laserdisc)
pure virtual

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

Implemented in openmsx::DummyCassettePort, and openmsx::CassettePort.

Referenced by openmsx::LaserdiscPlayer::LaserdiscPlayer().

virtual void openmsx::CassettePortInterface::setMotor ( bool  status,
EmuTime::param  time 
)
pure virtual

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

Implemented in openmsx::DummyCassettePort, and openmsx::CassettePort.


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