|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ch.aplu.util.LptPort
Constructor Summary | |
LptPort()
|
Method Summary | |
void |
close()
Close port Does nothing, if port is not open. |
boolean |
isOpen()
Return true if port is open, false otherwise. |
int |
open(int address)
Open LPT port at specified base address, e.g. 0x378. |
int |
readData()
Return content of data port (at base address) in lower byte. |
int |
readStatus()
Return content of status port (at base address + 1) in lower byte. |
int |
writeControl(int data)
Write lower byte of data into control port (at base address + 2). |
int |
writeData(int data)
Write lower byte of data into data port (at base address). |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LptPort()
Method Detail |
public void close()
public boolean isOpen()
public int open(int address)
public int readData()
public int readStatus()
public int writeControl(int data)
public int writeData(int data)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |