openMSX
Classes | Public Types | Public Member Functions | List of all members
openmsx::YMF262 Class Referencefinal

#include <YMF262.hh>

Inheritance diagram for openmsx::YMF262:
Inheritance graph
[legend]
Collaboration diagram for openmsx::YMF262:
Collaboration graph
[legend]

Public Types

enum  EnvelopeState {
  EG_ATTACK, EG_DECAY, EG_SUSTAIN, EG_RELEASE,
  EG_OFF
}
 
using FreqIndex = FixedPoint< 16 >
 16.16 fixed point type for frequency calculations More...
 

Public Member Functions

 YMF262 (const std::string &name, const DeviceConfig &config, bool isYMF278)
 
 ~YMF262 ()
 
void reset (EmuTime::param time)
 
void writeReg (unsigned r, byte v, EmuTime::param time)
 
void writeReg512 (unsigned r, byte v, EmuTime::param time)
 
byte readReg (unsigned reg)
 
byte peekReg (unsigned reg) const
 
byte readStatus ()
 
byte peekStatus () const
 
void setMixLevel (uint8_t x, EmuTime::param time)
 
template<typename Archive >
void serialize (Archive &ar, unsigned version)
 

Detailed Description

Definition at line 19 of file YMF262.hh.

Member Typedef Documentation

◆ FreqIndex

16.16 fixed point type for frequency calculations

Definition at line 41 of file YMF262.hh.

Member Enumeration Documentation

◆ EnvelopeState

Enumerator
EG_ATTACK 
EG_DECAY 
EG_SUSTAIN 
EG_RELEASE 
EG_OFF 

Definition at line 43 of file YMF262.hh.

Constructor & Destructor Documentation

◆ YMF262()

openmsx::YMF262::YMF262 ( const std::string &  name,
const DeviceConfig config,
bool  isYMF278 
)

◆ ~YMF262()

openmsx::YMF262::~YMF262 ( )

Definition at line 1501 of file YMF262.cc.

References openmsx::SoundDevice::unregisterSound().

Member Function Documentation

◆ peekReg()

byte openmsx::YMF262::peekReg ( unsigned  reg) const

◆ peekStatus()

byte openmsx::YMF262::peekStatus ( ) const

Definition at line 1514 of file YMF262.cc.

References EG_OFF, and EG_RELEASE.

Referenced by openmsx::MSXOPL3Cartridge::peekIO(), and openmsx::MSXMoonSound::peekIO().

◆ readReg()

byte openmsx::YMF262::readReg ( unsigned  reg)

Definition at line 1051 of file YMF262.cc.

Referenced by openmsx::MSXOPL3Cartridge::readIO(), and openmsx::MSXMoonSound::readIO().

◆ readStatus()

byte openmsx::YMF262::readStatus ( )

Definition at line 1506 of file YMF262.cc.

Referenced by openmsx::MSXOPL3Cartridge::readIO(), and openmsx::MSXMoonSound::readIO().

◆ reset()

void openmsx::YMF262::reset ( EmuTime::param  time)

◆ serialize()

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

Definition at line 1697 of file YMF262.cc.

◆ setMixLevel()

void openmsx::YMF262::setMixLevel ( uint8_t  x,
EmuTime::param  time 
)

◆ writeReg()

void openmsx::YMF262::writeReg ( unsigned  r,
byte  v,
EmuTime::param  time 
)

◆ writeReg512()

void openmsx::YMF262::writeReg512 ( unsigned  r,
byte  v,
EmuTime::param  time 
)

Definition at line 1070 of file YMF262.cc.


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