openMSX
|
#include <I8254.hh>
Public Types | |
enum class | ByteOrder { LOW , HIGH } |
Public Member Functions | |
Counter (Scheduler &scheduler, ClockPinListener *listener, EmuTime::param time) | |
void | reset (EmuTime::param time) |
uint8_t | readIO (EmuTime::param time) |
uint8_t | peekIO (EmuTime::param time) const |
void | writeIO (uint8_t value, EmuTime::param time) |
void | setGateStatus (bool status, EmuTime::param time) |
void | writeControlWord (uint8_t value, EmuTime::param time) |
void | latchStatus (EmuTime::param time) |
void | latchCounter (EmuTime::param time) |
template<typename Archive > | |
void | serialize (Archive &ar, unsigned version) |
Friends | |
class | I8254 |
|
strong |
openmsx::Counter::Counter | ( | Scheduler & | scheduler, |
ClockPinListener * | listener, | ||
EmuTime::param | time | ||
) |
void openmsx::Counter::latchCounter | ( | EmuTime::param | time | ) |
void openmsx::Counter::latchStatus | ( | EmuTime::param | time | ) |
Definition at line 310 of file I8254.cc.
References openmsx::ClockPin::getState().
uint8_t openmsx::Counter::peekIO | ( | EmuTime::param | time | ) | const |
Definition at line 187 of file I8254.cc.
References LOW, and UNREACHABLE.
uint8_t openmsx::Counter::readIO | ( | EmuTime::param | time | ) |
Definition at line 156 of file I8254.cc.
References HIGH, LOW, and UNREACHABLE.
void openmsx::Counter::reset | ( | EmuTime::param | time | ) |
void openmsx::Counter::serialize | ( | Archive & | ar, |
unsigned | version | ||
) |
void openmsx::Counter::setGateStatus | ( | bool | status, |
EmuTime::param | time | ||
) |
Definition at line 330 of file I8254.cc.
References openmsx::ClockPin::getTotalDuration(), openmsx::ClockPin::isPeriodic(), openmsx::ClockPin::setPeriodicState(), openmsx::ClockPin::setState(), and UNREACHABLE.
void openmsx::Counter::writeControlWord | ( | uint8_t | value, |
EmuTime::param | time | ||
) |
Definition at line 279 of file I8254.cc.
References latchCounter(), LOW, openmsx::ClockPin::setState(), and UNREACHABLE.
void openmsx::Counter::writeIO | ( | uint8_t | value, |
EmuTime::param | time | ||
) |
Definition at line 214 of file I8254.cc.
References HIGH, LOW, and UNREACHABLE.