org.halfdog.io.parport
Class LinuxParPort
java.lang.Object
org.halfdog.io.parport.ParPort
org.halfdog.io.parport.LinuxParPort
- public class LinuxParPort
- extends ParPort
Write to data to the pport device. The device just writes
the data into the registers.
The current version of this driver is in project 7
Fields inherited from class org.halfdog.io.parport.ParPort |
CTRL_AUTOFEED, CTRL_DIRECTION, CTRL_INIT, CTRL_INVERT, CTRL_SELECT, CTRL_STROBE, PPORT_RDATA, PPORT_RSTATUS, PPORT_SEQUENCE, PPORT_WCTRL, PPORT_WDATA, STATUS_ACKN, STATUS_BUSY, STATUS_ERROR, STATUS_INVERT, STATUS_NOPAPER, STATUS_SELECT |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LinuxParPort
public LinuxParPort(java.lang.String device)
throws java.io.IOException
read
public byte read()
throws java.io.IOException
- Specified by:
read
in class ParPort
- Throws:
java.io.IOException
write
public void write(byte b)
throws java.io.IOException
- Specified by:
write
in class ParPort
- Throws:
java.io.IOException
readStatus
public byte readStatus()
throws java.io.IOException
- Specified by:
readStatus
in class ParPort
- Throws:
java.io.IOException
writeControl
public void writeControl(byte b)
throws java.io.IOException
- Specified by:
writeControl
in class ParPort
- Throws:
java.io.IOException
createSequence
public Sequence createSequence()
- Specified by:
createSequence
in class ParPort
doSequence
public byte[] doSequence(Sequence seq)
throws java.io.IOException
- Execute a sequence. This feature is used to execute timing
critical commands in a very fast way.
- Specified by:
doSequence
in class ParPort
- Throws:
java.io.IOException