|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnl.kbna.dioscuri.module.Module
nl.kbna.dioscuri.module.ModuleDevice
public abstract class ModuleDevice
Abstract class representing a generic hardware device module. This class defines all methods that are required for a device module, i.e. a module that is connected to the motherboard and requires I/O address space.
| Constructor Summary | |
|---|---|
ModuleDevice()
|
|
| Method Summary | |
|---|---|
abstract byte |
getIOPortByte(int portAddress)
Return a byte from I/O address space at given I/O port |
abstract byte[] |
getIOPortDoubleWord(int portAddress)
Return a double word from I/O address space at given port |
abstract byte[] |
getIOPortWord(int portAddress)
Return a word from I/O address space at given port |
abstract int |
getUpdateInterval()
Retrieve the interval between subsequent updates |
abstract void |
setIOPortByte(int portAddress,
byte data)
Set a byte in I/O address space at given port |
abstract void |
setIOPortDoubleWord(int portAddress,
byte[] dataDoubleWord)
Set a double word in I/O address space at given port |
abstract void |
setIOPortWord(int portAddress,
byte[] dataWord)
Set a word in I/O address space at given port |
abstract void |
setUpdateInterval(int interval)
Defines the interval between subsequent updates |
abstract void |
update()
Update device |
| Methods inherited from class nl.kbna.dioscuri.module.Module |
|---|
getConnection, getData, getDebugMode, getDump, getID, getName, getType, isConnected, isObserved, reset, setConnection, setData, setData, setDebugMode, setObserved, start, stop |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ModuleDevice()
| Method Detail |
|---|
public abstract int getUpdateInterval()
public abstract void setUpdateInterval(int interval)
int - interval in microsecondspublic abstract void update()
public abstract byte getIOPortByte(int portAddress)
throws ModuleException,
ModuleUnknownPort,
ModuleWriteOnlyPortException
int - portAddress containing the address of the I/O port
ModuleException, - ModuleUnknownPort, ModuleWriteOnlyPortException
ModuleException
ModuleUnknownPort
ModuleWriteOnlyPortException
public abstract void setIOPortByte(int portAddress,
byte data)
throws ModuleException,
ModuleUnknownPort
int - portAddress containing the address of the I/O portbyte - data
ModuleException, - ModuleUnknownPort, ModuleWriteOnlyPortException
ModuleException
ModuleUnknownPort
public abstract byte[] getIOPortWord(int portAddress)
throws ModuleException,
ModuleUnknownPort,
ModuleWriteOnlyPortException
int - portAddress containing the address of the I/O port
ModuleException, - ModuleWriteOnlyPortException
ModuleException
ModuleUnknownPort
ModuleWriteOnlyPortException
public abstract void setIOPortWord(int portAddress,
byte[] dataWord)
throws ModuleException,
ModuleUnknownPort
int - portAddress containing the address of the I/O portbyte[] - word
ModuleException, - ModuleWriteOnlyPortException
ModuleException
ModuleUnknownPort
public abstract byte[] getIOPortDoubleWord(int portAddress)
throws ModuleException,
ModuleUnknownPort,
ModuleWriteOnlyPortException
int - portAddress containing the address of the I/O port
ModuleException, - ModuleWriteOnlyPortException
ModuleException
ModuleUnknownPort
ModuleWriteOnlyPortException
public abstract void setIOPortDoubleWord(int portAddress,
byte[] dataDoubleWord)
throws ModuleException,
ModuleUnknownPort
int - portAddress containing the address of the I/O portbyte[] - double word
ModuleException, - ModuleWriteOnlyPortException
ModuleException
ModuleUnknownPort
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||