|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jfrace.device.DummyDevice
Dummy device. Occupies one byte in the address space. Returns always 0.
Constructor Summary | |
DummyDevice()
|
Method Summary | |
byte |
getByte(int address)
Return 0. |
int |
getNumberOfBits()
Return 8. |
int |
getNumberOfUnits()
Return 1. |
int |
getValue(int address)
Return 0. |
void |
reset()
Reset the hardware. |
void |
setByte(int address,
byte value)
Does nothing. |
void |
setValue(int address,
int value)
Does nothing. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DummyDevice()
Method Detail |
public void reset()
Hardware
reset
in interface Hardware
public int getNumberOfBits()
getNumberOfBits
in interface Hardware
public int getNumberOfUnits()
getNumberOfUnits
in interface Device
public int getValue(int address)
getValue
in interface Device
jfrace.Device
address
- Memory address.public void setValue(int address, int value)
setValue
in interface Device
jfrace.Device
address
- Memory address.value
- the new value.public byte getByte(int address)
getByte
in interface Device
jfrace.Device
address
- Memory address.address
.public void setByte(int address, byte value)
setByte
in interface Device
jfrace.Device
address
- Memory address.value
- new value of the byte at address
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |