openMSX
|
#include <ClockPin.hh>
Public Member Functions | |
ClockPin (Scheduler &scheduler, ClockPinListener *listener=nullptr) | |
void | setState (bool status, EmuTime::param time) |
void | setPeriodicState (EmuDuration::param total, EmuDuration::param hi, EmuTime::param time) |
bool | getState (EmuTime::param time) const |
bool | isPeriodic () const |
EmuDuration::param | getTotalDuration () const |
EmuDuration::param | getHighDuration () const |
unsigned | getTicksBetween (EmuTime::param begin, EmuTime::param end) const |
void | generateEdgeSignals (bool wanted, EmuTime::param time) |
template<typename Archive > | |
void | serialize (Archive &ar, unsigned version) |
Public Member Functions inherited from openmsx::Schedulable | |
Schedulable (const Schedulable &)=delete | |
Schedulable (Schedulable &&)=delete | |
Schedulable & | operator= (const Schedulable &)=delete |
Schedulable & | operator= (Schedulable &&)=delete |
virtual void | schedulerDeleted () |
Just before the the Scheduler is deleted, it calls this method of all the Schedulables that are still registered. | |
Scheduler & | getScheduler () const |
EmuTime::param | getCurrentTime () const |
Convenience method: This is the same as getScheduler().getCurrentTime(). | |
template<typename Archive > | |
void | serialize (Archive &ar, unsigned version) |
Additional Inherited Members | |
Static Public Member Functions inherited from openmsx::Schedulable | |
template<typename Archive > | |
static std::vector< SyncPointBW > | serializeBW (Archive &ar) |
template<typename Archive > | |
static void | restoreOld (Archive &ar, std::vector< Schedulable * > schedulables) |
Protected Member Functions inherited from openmsx::Schedulable | |
Schedulable (Scheduler &scheduler) | |
~Schedulable () | |
void | setSyncPoint (EmuTime::param timestamp) |
bool | removeSyncPoint () |
void | removeSyncPoints () |
bool | pendingSyncPoint () const |
bool | pendingSyncPoint (EmuTime &result) const |
Definition at line 22 of file ClockPin.hh.
|
explicit |
Definition at line 8 of file ClockPin.cc.
void openmsx::ClockPin::generateEdgeSignals | ( | bool | wanted, |
EmuTime::param | time | ||
) |
Definition at line 94 of file ClockPin.cc.
Referenced by openmsx::MSXMidi::MSXMidi().
EmuDuration::param openmsx::ClockPin::getHighDuration | ( | ) | const |
Definition at line 70 of file ClockPin.cc.
bool openmsx::ClockPin::getState | ( | EmuTime::param | time | ) | const |
Definition at line 55 of file ClockPin.cc.
Referenced by openmsx::Counter::latchStatus().
unsigned openmsx::ClockPin::getTicksBetween | ( | EmuTime::param | begin, |
EmuTime::param | end | ||
) | const |
Definition at line 76 of file ClockPin.cc.
References begin(), end(), and openmsx::EmuDuration::zero().
EmuDuration::param openmsx::ClockPin::getTotalDuration | ( | ) | const |
Definition at line 64 of file ClockPin.cc.
Referenced by openmsx::I8251::recvByte(), and openmsx::Counter::setGateStatus().
|
inline |
Definition at line 34 of file ClockPin.hh.
Referenced by openmsx::I8251::recvByte(), and openmsx::Counter::setGateStatus().
void openmsx::ClockPin::serialize | ( | Archive & | ar, |
unsigned | version | ||
) |
Definition at line 136 of file ClockPin.cc.
void openmsx::ClockPin::setPeriodicState | ( | EmuDuration::param | total, |
EmuDuration::param | hi, | ||
EmuTime::param | time | ||
) |
Definition at line 33 of file ClockPin.cc.
References openmsx::ClockPinListener::signal().
Referenced by openmsx::MSXFacMidiInterface::MSXFacMidiInterface(), openmsx::MSXMidi::MSXMidi(), openmsx::MSXRS232::MSXRS232(), and openmsx::Counter::setGateStatus().
void openmsx::ClockPin::setState | ( | bool | status, |
EmuTime::param | time | ||
) |
Definition at line 13 of file ClockPin.cc.
References openmsx::ClockPinListener::signal(), and openmsx::ClockPinListener::signalPosEdge().
Referenced by openmsx::MSXMidi::MSXMidi(), openmsx::Counter::setGateStatus(), and openmsx::Counter::writeControlWord().