|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--de.wagner_ibw.iow.AbstractIowDevice | +--de.wagner_ibw.iow.Iow24
This class represents the IO-Warrior 24 device.
Field Summary |
Fields inherited from class de.wagner_ibw.iow.AbstractIowDevice |
IOW24_SMF_REPORT_LENGTH, IOW24ID, IOW24NAME, IOW40_SMF_REPORT_LENGTH, IOW40ID, IOW40NAME, IOW56_SMF_REPORT_LENGTH, IOW56ID, IOW56NAME |
Constructor Summary | |
Iow24(long handle,
java.lang.String serial,
int rev)
Constructor. |
Method Summary | |
boolean |
equals(java.lang.Object obj)
Indicates whether some other Iow24 object is "equal to" this one.
|
java.lang.String |
getName()
Returns the name of this IO-Warrior device. |
long |
readIOPortsImmediate()
Reads the iow ports and store them in the internal port array (none blocking). |
long |
scanPorts()
Gets the current pin status. |
java.lang.String |
toString()
Returns a String object representing this Iow24 object.
|
void |
writeIOPorts()
Writes the presetted ports to this IO-Warrior device. |
void |
writeIOPorts(long value)
Writes the value to this IO-Warrior device's ports. |
Methods inherited from class de.wagner_ibw.iow.AbstractIowDevice |
addIowChangeListener, addSpecialModeFunctionImpl, autonomous, clearBit, close, getHandle, getId, getMonitor, getPort, getPortCount, getRev, getSerial, getSmfReportLength, getSpecialModeFunctionImpl, hashCode, readIOPorts, readIOPortsNonBlocking, removeIowChangeListener, removeSpecialModeFunctionImpl, setBit, setDirection, setPort, setTimeout, setWriteTimeout, writeReport |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Iow24(long handle, java.lang.String serial, int rev)
handle
- device handle of this IO-Warrior 24 device .serial
- serial number of this IO-Warrior 24 device.rev
- revision of this IO-Warrior 24 device.Method Detail |
public long readIOPortsImmediate()
AbstractIowDevice
readIOPortsImmediate
in class AbstractIowDevice
public long scanPorts()
AbstractIowDevice
scanPorts
in class AbstractIowDevice
public void writeIOPorts()
AbstractIowDevice
writeIOPorts
in class AbstractIowDevice
public void writeIOPorts(long value)
AbstractIowDevice
writeIOPorts
in class AbstractIowDevice
value
- output patternpublic java.lang.String toString()
String
object representing this Iow24
object.
It contains information about device handle, id , revision,
serial number and the status of port 0 ... port 1.
toString
in class AbstractIowDevice
public java.lang.String getName()
AbstractIowDevice
getName
in class AbstractIowDevice
public boolean equals(java.lang.Object obj)
Iow24
object is "equal to" this one.
Criteria is the serial number.
equals
in class AbstractIowDevice
obj
- The reference object with which to compare.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |