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
Collaboration diagram for openmsx::Autofire:
Collaboration graph

Public Member Functions

 Autofire (MSXMotherBoard &motherBoard, unsigned newMinInts, unsigned newMaxInts, static_string_view name)
 ~Autofire ()
bool getSignal (EmuTime::param time)
 Get the output signal in negative logic. More...
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 25 of file Autofire.hh.

Constructor & Destructor Documentation

◆ Autofire()

openmsx::Autofire::Autofire ( MSXMotherBoard motherBoard,
unsigned  newMinInts,
unsigned  newMaxInts,
static_string_view  name 

◆ ~Autofire()

openmsx::Autofire::~Autofire ( )

Member Function Documentation

◆ getSignal()

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

Get the output signal in negative logic.

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

Definition at line 94 of file

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 102 of file

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