openMSX
|
Autofire is a device that is between two other devices and outside the bus. More...
#include <Autofire.hh>
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) |
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.
Enumerator | |
---|---|
RENSHATURBO | |
UNKNOWN |
Definition at line 27 of file Autofire.hh.
openmsx::Autofire::Autofire | ( | MSXMotherBoard & | motherBoard, |
unsigned | newMinInts, | ||
unsigned | newMaxInts, | ||
ID | id | ||
) |
Definition at line 51 of file Autofire.cc.
References openmsx::Subject< T >::attach(), openmsx::IntegerSetting::getInt(), and openmsx::StateChangeDistributor::registerListener().
openmsx::Autofire::~Autofire | ( | ) |
Definition at line 68 of file Autofire.cc.
References openmsx::Subject< T >::detach(), and openmsx::StateChangeDistributor::unregisterListener().
bool openmsx::Autofire::getSignal | ( | EmuTime::param | time | ) | const |
Get the output signal in negative logic.
Definition at line 111 of file Autofire.cc.
References openmsx::DynamicClock::getPeriod(), openmsx::DynamicClock::getTicksTill(), and openmsx::EmuDuration::zero().
void openmsx::Autofire::serialize | ( | Archive & | ar, |
unsigned | version | ||
) |
Definition at line 119 of file Autofire.cc.