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

#include <ClockPin.hh>

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

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
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

- Protected Member Functions inherited from openmsx::Schedulable
 Schedulable (Scheduler &scheduler)
 
virtual ~Schedulable ()
 
void setSyncPoint (EmuTime::param timestamp, int userData=0)
 
bool removeSyncPoint (int userData=0)
 
void removeSyncPoints ()
 
bool pendingSyncPoint (int userData=0) const
 

Detailed Description

Definition at line 21 of file ClockPin.hh.

Constructor & Destructor Documentation

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

Definition at line 9 of file ClockPin.cc.

Member Function Documentation

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

Definition at line 97 of file ClockPin.cc.

EmuDuration::param openmsx::ClockPin::getHighDuration ( ) const
bool openmsx::ClockPin::getState ( EmuTime::param  time) const
int openmsx::ClockPin::getTicksBetween ( EmuTime::param  begin,
EmuTime::param  end 
) const

Definition at line 79 of file ClockPin.cc.

References openmsx::EmuDuration::zero.

EmuDuration::param openmsx::ClockPin::getTotalDuration ( ) const
bool openmsx::ClockPin::isPeriodic ( ) const
inline
template<typename Archive >
void openmsx::ClockPin::serialize ( Archive &  ar,
unsigned  version 
)

Definition at line 139 of file ClockPin.cc.

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: