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

Autofire is a device that is between two other devices and outside the bus. More...

#include <Autofire.hh>

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

Public Types

enum  ID { RENSHATURBO , UNKNOWN }
 

Public Member Functions

 Autofire (MSXMotherBoard &motherBoard, unsigned newMinInts, unsigned newMaxInts, ID id)
 
 ~Autofire ()
 
bool getSignal (EmuTime::param time) const
 Get the output signal in negative logic.
 
template<typename Archive >
void serialize (Archive &ar, unsigned version)
 

Detailed Description

Autofire is a device that is between two other devices and outside the bus.

For example, between the keyboard and the PPI or between a joyPort connecter and the PSG.

There can be multiple autofire circuits. For example, one used by the Ren-Sha Turbo and another one built into a joystick.

Definition at line 24 of file Autofire.hh.

Member Enumeration Documentation

◆ ID

Enumerator
RENSHATURBO 
UNKNOWN 

Definition at line 27 of file Autofire.hh.

Constructor & Destructor Documentation

◆ Autofire()

openmsx::Autofire::Autofire ( MSXMotherBoard motherBoard,
unsigned  newMinInts,
unsigned  newMaxInts,
ID  id 
)

◆ ~Autofire()

openmsx::Autofire::~Autofire ( )

Member Function Documentation

◆ getSignal()

bool openmsx::Autofire::getSignal ( EmuTime::param  time) const

Get the output signal in negative logic.

Returns
When auto-fire is on, result will alternate between true and false. When auto-fire if off result is false.

Definition at line 111 of file Autofire.cc.

References openmsx::DynamicClock::getPeriod(), openmsx::DynamicClock::getTicksTill(), and openmsx::EmuDuration::zero().

◆ serialize()

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

Definition at line 119 of file Autofire.cc.


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