de.wagner_ibw.iow
Class Iow40
java.lang.Object
|
+--de.wagner_ibw.iow.AbstractIowDevcie
|
+--de.wagner_ibw.iow.Iow40
- All Implemented Interfaces:
- java.lang.Runnable
- public class Iow40
- extends AbstractIowDevcie
This class represents the iow 40 device.
- Author:
- Thomas Wagner
Fields inherited from class de.wagner_ibw.iow.AbstractIowDevcie |
autonomous, currentPinStatus, handle, id, IOW24ID, IOW24NAME, IOW40ID, IOW40NAME, monitor, portCount, ports, rev, serial, smfImplementations, specialMode |
Constructor Summary |
Iow40(long handle,
int id,
java.lang.String serial,
int rev)
|
Methods inherited from class de.wagner_ibw.iow.AbstractIowDevcie |
addSpecialModeFunctionImpl, autonomous, checkPort, clearBit, close, getCurrentPinStatus, getHandle, getId, getMonitor, getPort, getRev, getSerial, getSpecialModeFunctionImpl, hashCode, readReport, removeSpecialModeFunctionImpl, run, setBit, setDirection, setPort, setTimeout, setWriteTimeout, writeReport |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Iow40
public Iow40(long handle,
int id,
java.lang.String serial,
int rev)
readIOPorts
public long readIOPorts()
- Specified by:
readIOPorts
in class AbstractIowDevcie
- Since:
- 0.9.3 with long return value
readIOPortsImmediate
public long readIOPortsImmediate()
- Specified by:
readIOPortsImmediate
in class AbstractIowDevcie
- Since:
- 0.9.3 with long return value
scanPorts
public long scanPorts()
throws java.lang.UnsupportedOperationException
- Gets the current pin status.
- Specified by:
scanPorts
in class AbstractIowDevcie
- Returns:
- Count of written bytes to iow device.
java.lang.UnsupportedOperationException
- Since:
- 0.9.3
writeIOPorts
public void writeIOPorts()
- Specified by:
writeIOPorts
in class AbstractIowDevcie
getName
public java.lang.String getName()
- Specified by:
getName
in class AbstractIowDevcie
toString
public java.lang.String toString()
- Returns a
String
object representing this Iow40 object.
It contains information about device handle, id , revision,
serial number and the status of port 0 ... port 3.
- Specified by:
toString
in class AbstractIowDevcie
equals
public boolean equals(java.lang.Object o)
- Indicates whether some other Iow40 object is "equal to" this one.
Criteria is the serial number.
- Specified by:
equals
in class AbstractIowDevcie
- Returns:
- True if this object is the same as the obj argument; false otherwise.
- Since:
- 0.9.4