|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--de.wagner_ibw.iow.Iow
This is the base class of all the iow devices, based on the com.codemercs.iow.IowKit JNI wrapper class to the iowkit library (iowki.dll for Windows, libiowkit.so for Linux).
Field Summary | |
static long |
IOW24ID
A constant for iow 24 device id. |
static java.lang.String |
IOW24NAME
A constant for iow 24 device name. |
static long |
IOW40ID
A constant for iow 40 device id. |
static java.lang.String |
IOW40NAME
A constant for iow 40 device name. |
Constructor Summary | |
Iow()
Sole constructor. |
Method Summary | |
void |
close()
Close this iow device (Used by subclasses Iow40 and Iow24 only.) |
void |
closeAllDevices()
Close all the iow devices. |
void |
exit(int code)
Closes all open devices and terminates the jvm. |
int[] |
getCurrentPinStatus()
Gets the current pin status. |
long |
getHandle()
Implementation for IowInterface method getHandle. |
int |
getId()
Implementation for IowInterface method getId. |
Iow24 |
getIow24Device()
Returns the first connected iow 24 device. |
Iow24 |
getIow24Device(java.lang.String serial)
Returns the iow 24 device according to the specified serial number. |
Iow40 |
getIow40Device()
Returns the first connected iow 40 device. |
Iow40 |
getIow40Device(java.lang.String serial)
Returns the iow40 device according to the specified serial number. |
long |
getNumDevices()
Returns the number of connected iow devices. |
int |
getRev()
Implementation for IowInterface method getRev. |
java.lang.String |
getSerial()
Implementation for IowInterface method getSerial. |
java.lang.String |
getVersion()
Returns the version of the loaded iowkit library. |
long |
openAllDevices()
Open all connected iow devices. |
void |
openAllDevices(boolean debug)
Deprecated. |
int[] |
readReport(int pipe)
Implementation for IowInterface method readReport. |
void |
setTimeout(long timeout)
Set timeout for read operations. |
void |
setWriteTimeout(long timeout)
Set timeout for write operations. |
java.lang.String |
toString()
Returns a string representation of the object. |
long |
writeReport(int pipe,
int[] wbuf)
Implementation for IowInterface method writeReport. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final long IOW40ID
public static final long IOW24ID
public static final java.lang.String IOW40NAME
public static final java.lang.String IOW24NAME
Constructor Detail |
public Iow()
Method Detail |
public void openAllDevices(boolean debug)
debug
- public long openAllDevices()
public void setTimeout(long timeout)
timeout
- Timeout value in ms.public void setWriteTimeout(long timeout)
timeout
- Timeout value in ms.public long getNumDevices()
public Iow40 getIow40Device() throws java.util.NoSuchElementException
java.util.NoSuchElementException
- If no connected iow 40 device was found.public Iow40 getIow40Device(java.lang.String serial) throws java.util.NoSuchElementException
serial
- Serial number of the desired iow 40 device.
java.util.NoSuchElementException
- If no iow 40 device with desired serial number was found.public Iow24 getIow24Device() throws java.util.NoSuchElementException
java.util.NoSuchElementException
- If no connected iow 24 device was found.public Iow24 getIow24Device(java.lang.String serial) throws java.util.NoSuchElementException
serial
- Serial number of the desired iow 24 device.
java.util.NoSuchElementException
- If no iow 24 device with desired serial number was found.public void closeAllDevices()
public void close()
public int[] readReport(int pipe)
pipe
-
public long writeReport(int pipe, int[] wbuf)
pipe
- wbuf
- Write buffer.
public int[] getCurrentPinStatus() throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException
public long getHandle()
public java.lang.String getSerial()
public int getId()
public int getRev()
public java.lang.String toString()
toString
in class java.lang.Object
public void exit(int code)
public java.lang.String getVersion()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |