Class JniAdeptDepp.depp
java.lang.Object
cbsw.adept.JniAdeptDepp.depp
- Enclosing class:
JniAdeptDepp
Native interface wrappers to Digilent Adept DEPP API.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intdisable(int hif) Disables the DEPP channel on the opened device.static intenable(int hif) Enables the DEPP channel on the opened device.static intgetRepeat(int hif, byte addr, byte[] buf) Reads repeatedly from the same address.static intgetSet(int hif, byte[] addr, byte[] data) Reads a set of addresses.static intputRepeat(int hif, byte addr, byte[] buf) Writes repeatedly to the same address.static intputSet(int hif, byte[] buf) Writes a set of address/data pairs.static intsetTimeout(int hif, long set) Sets the DEPP timeout.
-
Constructor Details
-
depp
public depp()
-
-
Method Details
-
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
-