Public Member Functions | List of all members
openmsx::ClockPin Class Referencefinal

#include <ClockPin.hh>

Inheritance diagram for openmsx::ClockPin:
Inheritance graph
Collaboration diagram for openmsx::ClockPin:
Collaboration graph

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
int 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
Schedulableoperator= (const Schedulable &)=delete
virtual void schedulerDeleted ()
 Just before the the Scheduler is deleted, it calls this method of all the Schedulables that are still registered. More...
SchedulergetScheduler () const
EmuTime::param getCurrentTime () const
 Convenience method: This is the same as getScheduler().getCurrentTime(). More...
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< SyncPointBWserializeBW (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

Detailed Description

Definition at line 22 of file ClockPin.hh.

Constructor & Destructor Documentation

openmsx::ClockPin::ClockPin ( Scheduler scheduler,
ClockPinListener listener = nullptr 

Definition at line 9 of file

Member Function Documentation

void openmsx::ClockPin::generateEdgeSignals ( bool  wanted,
EmuTime::param  time 

Definition at line 97 of file

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

EmuDuration::param openmsx::ClockPin::getHighDuration ( ) const

Definition at line 73 of file

bool openmsx::ClockPin::getState ( EmuTime::param  time) const

Definition at line 58 of file

Referenced by openmsx::Counter::latchStatus().

int openmsx::ClockPin::getTicksBetween ( EmuTime::param  begin,
EmuTime::param  end 
) const

Definition at line 79 of file

References openmsx::EmuDuration::zero.

EmuDuration::param openmsx::ClockPin::getTotalDuration ( ) const

Definition at line 67 of file

Referenced by openmsx::I8251::recvByte(), and openmsx::Counter::setGateStatus().

bool openmsx::ClockPin::isPeriodic ( ) const

Definition at line 34 of file ClockPin.hh.

Referenced by openmsx::I8251::recvByte(), and openmsx::Counter::setGateStatus().

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

Definition at line 139 of file

void openmsx::ClockPin::setPeriodicState ( EmuDuration::param  total,
EmuDuration::param  hi,
EmuTime::param  time 
void openmsx::ClockPin::setState ( bool  status,
EmuTime::param  time 

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