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 ()=default
 
virtual void setMotor (bool status, EmuTime::param time)=0
 Sets the cassette motor relay false = off true = on.
 
virtual void cassetteOut (bool output, EmuTime::param time)=0
 Writes one bit to the cassette port.
 
virtual bool lastOut () const =0
 last bit written to CasOut.
 
virtual bool cassetteIn (EmuTime::param time)=0
 Reads one bit from the cassette port.
 

Detailed Description

Definition at line 18 of file CassettePort.hh.

Constructor & Destructor Documentation

◆ ~CassettePortInterface()

virtual openmsx::CassettePortInterface::~CassettePortInterface ( )
virtualdefault

Member Function Documentation

◆ cassetteIn()

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::CassettePort, and openmsx::DummyCassettePort.

◆ cassetteOut()

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::CassettePort, and openmsx::DummyCassettePort.

◆ lastOut()

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

last bit written to CasOut.

for use in Pluggable::plugHelper()

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

◆ setMotor()

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

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

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


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