Package cbsw.adept
Class JniAdeptDepp.depp
- java.lang.Object
-
- cbsw.adept.JniAdeptDepp.depp
-
- Enclosing class:
- JniAdeptDepp
public static class JniAdeptDepp.depp extends java.lang.Object
Native interface wrappers to Digilent Adept DEPP API.
-
-
Constructor Summary
Constructors Constructor Description depp()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
disable(int hif)
Disables the DEPP channel on the opened device.static int
enable(int hif)
Enables the DEPP channel on the opened device.static int
getRepeat(int hif, byte addr, byte[] buf)
Reads repeatedly from the same address.static int
getSet(int hif, byte[] addr, byte[] data)
Reads a set of addresses.static int
putRepeat(int hif, byte addr, byte[] buf)
Writes repeatedly to the same address.static int
putSet(int hif, byte[] buf)
Writes a set of address/data pairs.static int
setTimeout(int hif, long set)
Sets the DEPP timeout.
-
-
-
Method Detail
-
enable
public static int enable(int hif)
Enables the DEPP channel on the opened device.
Native wrapper.
- Parameters:
hif
- Internal handle of device.- Returns:
- Return code, 1=success, 0=fail
-
disable
public static int disable(int hif)
Disables the DEPP channel on the opened device.
Native wrapper.
- Parameters:
hif
- Internal handle of device.- Returns:
- Return code, 1=success, 0=fail
-
getSet
public static int getSet(int hif, byte[] addr, byte[] data)
Reads a set of addresses.
Native wrapper.
- Parameters:
hif
- Internal handle of device.addr
- Array of addresses to readdata
- Data returned from the requested addresses- Returns:
- Return code, 1=success, 0=fail
-
getRepeat
public static int getRepeat(int hif, byte addr, byte[] buf)
Reads repeatedly from the same address.
Native wrapper.
- Parameters:
hif
- Internal handle of device.addr
- The address to readbuf
- Data returned- Returns:
- Return code, 1=success, 0=fail
-
putSet
public static int putSet(int hif, byte[] buf)
Writes a set of address/data pairs.
Native wrapper.
- Parameters:
hif
- Internal handle of device.buf
- Array of address/data pairs {addr0,data0,addr1,data1...}- Returns:
- Return code, 1=success, 0=fail
-
putRepeat
public static int putRepeat(int hif, byte addr, byte[] buf)
Writes repeatedly to the same address.
Native wrapper.
- Parameters:
hif
- Internal handle of device.addr
- The address to writebuf
- Data to write- Returns:
- Return code, 1=success, 0=fail
-
setTimeout
public static int setTimeout(int hif, long set)
Sets the DEPP timeout.
Native wrapper.
- Parameters:
hif
- Internal handle of device.set
- The timeout in nanoseconds- Returns:
- Return code, 1=success, 0=fail
-
-