dioscuri.module.clock
Class Timer
java.lang.Object
dioscuri.module.clock.Timer
public class Timer
- extends java.lang.Object
A single counter of the PIT based on the Intel 82C54 chipset.
This counter works following the convention rules of the PIT: 1. For each
counter, the control word must be written before the initial count is
written. 2. The initial count must follow the count format specified in the
Control Word (LSB, MSB, etc.)
Constructor Summary |
Timer(Updateable user,
int intervalLength,
boolean type)
|
Method Summary |
void |
reset()
|
protected void |
reset(int intervalLength)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
user
protected Updateable user
intervalLength
protected int intervalLength
currentCount
protected int currentCount
active
protected boolean active
typeContinuous
protected boolean typeContinuous
Timer
public Timer(Updateable user,
int intervalLength,
boolean type)
- Parameters:
user
- intervalLength
- type
-
reset
public void reset()
reset
protected void reset(int intervalLength)
- Parameters:
intervalLength
-