|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdioscuri.module.AbstractModule
dioscuri.module.ModuleRTC
dioscuri.module.rtc.RTC
public class RTC
An implementation of a Real Time module. This component takes care of updating the date and time settings of the computer.
Metadata module ********************************************
general.type : rtc general.name : Real Time Clock (RTC)
general.architecture : Von Neumann general.description : Implements an
Intel RTC (part of Intel 82801DB I/O Controller Hub 4, ICH4) and is
compatible with the Motorola MC146818. Includes 256 bytes of CMOS
memory. general.creator : Tessella Support Services, Koninklijke
Bibliotheek, Nationaal Archief of the Netherlands general.version : 1.0
general.keywords : rtc, clock, date, time, cmos general.relations :
motherboard, pit general.yearOfIntroduction : general.yearOfEnding :
general.ancestor : general.successor : rtc.ramsize : 256 bytes| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface dioscuri.interfaces.Module |
|---|
Module.Type |
| Field Summary | |
|---|---|
protected int |
lookupRegister
|
| Fields inherited from class dioscuri.module.AbstractModule |
|---|
type |
| Constructor Summary | |
|---|---|
RTC(Emulator owner)
Class constructor |
|
| Method Summary | |
|---|---|
byte |
getCMOSRegister(int register)
Return requested CMOS register |
java.lang.String |
getDump()
Return a dump of module status |
byte |
getIOPortByte(int portAddress)
|
byte[] |
getIOPortDoubleWord(int portAddress)
|
byte[] |
getIOPortWord(int portAddress)
|
int |
getUpdateInterval()
Retrieve the interval between subsequent updates |
boolean |
reset()
Reset all parameters of module. |
void |
setCMOSRegister(int register,
byte value)
Set given CMOS register with value |
void |
setIOPortByte(int portAddress,
byte data)
|
void |
setIOPortDoubleWord(int portAddress,
byte[] dataDoubleWord)
|
void |
setIOPortWord(int portAddress,
byte[] dataWord)
|
void |
setUpdateInterval(int interval)
Defines the interval between subsequent updates |
void |
update()
Update device |
void |
updateClock()
Update clock Increment the clock value |
| Methods inherited from class dioscuri.module.AbstractModule |
|---|
getConnection, getConnections, getDebugMode, getExpectedConnections, getType, isConnected, setConnection, setDebugMode, start, stop |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface dioscuri.interfaces.Module |
|---|
getConnection, getConnections, getDebugMode, getExpectedConnections, getType, isConnected, setConnection, setDebugMode, start, stop |
| Field Detail |
|---|
protected int lookupRegister
| Constructor Detail |
|---|
public RTC(Emulator owner)
owner - | Method Detail |
|---|
public boolean reset()
reset in interface Modulereset in class AbstractModuleAbstractModulepublic java.lang.String getDump()
getDump in interface ModulegetDump in class AbstractModuleAbstractModulepublic int getUpdateInterval()
public void setUpdateInterval(int interval)
public void update()
public byte getIOPortByte(int portAddress)
throws UnknownPortException,
WriteOnlyPortException
UnknownPortException
WriteOnlyPortExceptionAddressable
public void setIOPortByte(int portAddress,
byte data)
throws UnknownPortException
UnknownPortExceptionAddressable
public byte[] getIOPortWord(int portAddress)
throws ModuleException,
WriteOnlyPortException
ModuleException
WriteOnlyPortExceptionAddressable
public void setIOPortWord(int portAddress,
byte[] dataWord)
throws ModuleException
ModuleExceptionAddressable
public byte[] getIOPortDoubleWord(int portAddress)
throws ModuleException,
WriteOnlyPortException
ModuleException
WriteOnlyPortExceptionAddressable
public void setIOPortDoubleWord(int portAddress,
byte[] dataDoubleWord)
throws ModuleException
ModuleExceptionAddressablepublic byte getCMOSRegister(int register)
getCMOSRegister in class ModuleRTCModuleRTC
public void setCMOSRegister(int register,
byte value)
setCMOSRegister in class ModuleRTCModuleRTCpublic void updateClock()
updateClock in class ModuleRTCModuleRTC
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||