org.halfdog.io.parport
Class LinuxParPort

java.lang.Object
  extended byorg.halfdog.io.parport.ParPort
      extended byorg.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


Field Summary
 
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
 
Constructor Summary
LinuxParPort(java.lang.String device)
           
 
Method Summary
 Sequence createSequence()
           
 byte[] doSequence(Sequence seq)
          Execute a sequence.
 byte read()
           
 byte readStatus()
           
 void write(byte b)
           
 void writeControl(byte b)
           
 
Methods inherited from class org.halfdog.io.parport.ParPort
createPort
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinuxParPort

public LinuxParPort(java.lang.String device)
             throws java.io.IOException
Method Detail

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