openMSX
Public Member Functions | List of all members
openmsx::I8254 Class Reference

#include <I8254.hh>

Public Member Functions

 I8254 (Scheduler &scheduler, ClockPinListener *output0, ClockPinListener *output1, ClockPinListener *output2, EmuTime::param time)
 
void reset (EmuTime::param time)
 
uint8_t readIO (uint16_t port, EmuTime::param time)
 
uint8_t peekIO (uint16_t port, EmuTime::param time) const
 
void writeIO (uint16_t port, uint8_t value, EmuTime::param time)
 
void setGate (unsigned cntr, bool status, EmuTime::param time)
 
ClockPingetClockPin (unsigned cntr)
 
ClockPingetOutputPin (unsigned cntr)
 
template<typename Archive >
void serialize (Archive &ar, unsigned version)
 

Detailed Description

Definition at line 74 of file I8254.hh.

Constructor & Destructor Documentation

◆ I8254()

openmsx::I8254::I8254 ( Scheduler scheduler,
ClockPinListener output0,
ClockPinListener output1,
ClockPinListener output2,
EmuTime::param  time 
)

Definition at line 22 of file I8254.cc.

Member Function Documentation

◆ getClockPin()

ClockPin & openmsx::I8254::getClockPin ( unsigned  cntr)

Definition at line 115 of file I8254.cc.

Referenced by openmsx::MSXMidi::MSXMidi(), and openmsx::MSXRS232::MSXRS232().

◆ getOutputPin()

ClockPin & openmsx::I8254::getOutputPin ( unsigned  cntr)

Definition at line 121 of file I8254.cc.

Referenced by openmsx::MSXMidi::MSXMidi().

◆ peekIO()

uint8_t openmsx::I8254::peekIO ( uint16_t  port,
EmuTime::param  time 
) const

Definition at line 54 of file I8254.cc.

References UNREACHABLE.

Referenced by openmsx::MSXMidi::peekIO(), and openmsx::MSXRS232::peekIO().

◆ readIO()

uint8_t openmsx::I8254::readIO ( uint16_t  port,
EmuTime::param  time 
)

Definition at line 41 of file I8254.cc.

References UNREACHABLE.

Referenced by openmsx::MSXMidi::readIO().

◆ reset()

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

Definition at line 34 of file I8254.cc.

◆ serialize()

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

Definition at line 493 of file I8254.cc.

References enumerate().

◆ setGate()

void openmsx::I8254::setGate ( unsigned  cntr,
bool  status,
EmuTime::param  time 
)

Definition at line 109 of file I8254.cc.

◆ writeIO()

void openmsx::I8254::writeIO ( uint16_t  port,
uint8_t  value,
EmuTime::param  time 
)

Definition at line 67 of file I8254.cc.

References UNREACHABLE.

Referenced by openmsx::MSXMidi::writeIO().


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