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.
 
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.
 
- Public Member Functions inherited from openmsx::CassettePortInterface
virtual ~CassettePortInterface ()=default
 

Detailed Description

Definition at line 98 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 28 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 24 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 32 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 20 of file CassettePort.cc.


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