openMSX
Public Member Functions | List of all members
openmsx::PanasonicAudioPeriphery Class Referencefinal
Inheritance diagram for openmsx::PanasonicAudioPeriphery:
Inheritance graph
[legend]
Collaboration diagram for openmsx::PanasonicAudioPeriphery:
Collaboration graph
[legend]

Public Member Functions

 PanasonicAudioPeriphery (MSXAudio &audio, const DeviceConfig &config, const std::string &soundDeviceName)
 
 PanasonicAudioPeriphery (const PanasonicAudioPeriphery &)=delete
 
 PanasonicAudioPeriphery (PanasonicAudioPeriphery &&)=delete
 
PanasonicAudioPeripheryoperator= (const PanasonicAudioPeriphery &)=delete
 
PanasonicAudioPeripheryoperator= (PanasonicAudioPeriphery &&)=delete
 
 ~PanasonicAudioPeriphery () override
 
void reset () override
 
void write (nibble outputs, nibble values, EmuTime::param time) override
 Write to (some of) the pins.
 
nibble read (EmuTime::param time) override
 Read from (some of) the pins Some of the pins might be programmed as output, but this method doesn't care about that, it should return the value of all pins as-if they were all programmed as input.
 
byte peekMem (word address, EmuTime::param time) const override
 
void writeMem (word address, byte value, EmuTime::param time) override
 
const bytegetReadCacheLine (word address) const override
 
bytegetWriteCacheLine (word address) override
 
template<typename Archive >
void serialize (Archive &ar, unsigned version)
 
- Public Member Functions inherited from openmsx::Y8950Periphery
virtual ~Y8950Periphery ()=default
 
virtual void setSPOFF (bool value, EmuTime::param time)
 SP-OFF bit (bit 3 in Y8950 register 7)
 
virtual byte readMem (word address, EmuTime::param time)
 

Detailed Description

Definition at line 39 of file Y8950Periphery.cc.

Constructor & Destructor Documentation

◆ PanasonicAudioPeriphery() [1/3]

openmsx::PanasonicAudioPeriphery::PanasonicAudioPeriphery ( MSXAudio audio,
const DeviceConfig config,
const std::string &  soundDeviceName 
)

Definition at line 160 of file Y8950Periphery.cc.

References reset().

◆ PanasonicAudioPeriphery() [2/3]

openmsx::PanasonicAudioPeriphery::PanasonicAudioPeriphery ( const PanasonicAudioPeriphery )
delete

◆ PanasonicAudioPeriphery() [3/3]

openmsx::PanasonicAudioPeriphery::PanasonicAudioPeriphery ( PanasonicAudioPeriphery &&  )
delete

◆ ~PanasonicAudioPeriphery()

openmsx::PanasonicAudioPeriphery::~PanasonicAudioPeriphery ( )
override

Definition at line 177 of file Y8950Periphery.cc.

Member Function Documentation

◆ getReadCacheLine()

const byte * openmsx::PanasonicAudioPeriphery::getReadCacheLine ( word  address) const
overridevirtual

Reimplemented from openmsx::Y8950Periphery.

Definition at line 211 of file Y8950Periphery.cc.

◆ getWriteCacheLine()

byte * openmsx::PanasonicAudioPeriphery::getWriteCacheLine ( word  address)
overridevirtual

◆ operator=() [1/2]

PanasonicAudioPeriphery & openmsx::PanasonicAudioPeriphery::operator= ( const PanasonicAudioPeriphery )
delete

◆ operator=() [2/2]

PanasonicAudioPeriphery & openmsx::PanasonicAudioPeriphery::operator= ( PanasonicAudioPeriphery &&  )
delete

◆ peekMem()

byte openmsx::PanasonicAudioPeriphery::peekMem ( word  address,
EmuTime::param  time 
) const
overridevirtual

Reimplemented from openmsx::Y8950Periphery.

Definition at line 202 of file Y8950Periphery.cc.

◆ read()

nibble openmsx::PanasonicAudioPeriphery::read ( EmuTime::param  time)
overridevirtual

Read from (some of) the pins Some of the pins might be programmed as output, but this method doesn't care about that, it should return the value of all pins as-if they were all programmed as input.

Parameters
timeThe moment in time the read occurs

Implements openmsx::Y8950Periphery.

Definition at line 196 of file Y8950Periphery.cc.

References openmsx::BooleanSetting::getBoolean().

Referenced by write().

◆ reset()

void openmsx::PanasonicAudioPeriphery::reset ( )
overridevirtual

Reimplemented from openmsx::Y8950Periphery.

Definition at line 182 of file Y8950Periphery.cc.

References openmsx::Ram::clear().

Referenced by PanasonicAudioPeriphery().

◆ serialize()

template<typename Archive >
void openmsx::PanasonicAudioPeriphery::serialize ( Archive &  ar,
unsigned  version 
)

Definition at line 276 of file Y8950Periphery.cc.

◆ write()

void openmsx::PanasonicAudioPeriphery::write ( nibble  outputs,
nibble  values,
EmuTime::param  time 
)
overridevirtual

Write to (some of) the pins.

Parameters
outputsA '1' bit indicates the corresponding bit is programmed as output.
valuesThe actual value that is written, only bits for which the corresponding bit in the 'outputs' parameter is set are meaningful.
timeThe moment in time the write occurs

Implements openmsx::Y8950Periphery.

Definition at line 189 of file Y8950Periphery.cc.

References read(), and openmsx::Y8950::setEnabled().

◆ writeMem()

void openmsx::PanasonicAudioPeriphery::writeMem ( word  address,
byte  value,
EmuTime::param  time 
)
overridevirtual

Reimplemented from openmsx::Y8950Periphery.

Definition at line 220 of file Y8950Periphery.cc.


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