Class JniAdeptDepp.dmgr
java.lang.Object
cbsw.adept.JniAdeptDepp.dmgr
- Enclosing class:
JniAdeptDepp
Native interface wrappers to Digilent Adept DMGR API.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intclose(int hif) Closes the device.static intEnumerates devices.static StringgetCapabilities(int idx) Gets the capabilities of an enumerated device.static StringgetEnumeratedDevice(int idx) Gets the connection name of an enumerated device.static intGets the last error code.static StringgetLastErrorDescription(int erc) Gets the last error description.static StringgetLastErrorName(int erc) Gets the last error name.static intOpens a device by connection name.
-
Constructor Details
-
dmgr
public dmgr()
-
-
Method Details
-
open
Opens a device by connection name.
Native wrapper.
- Parameters:
dev- The connection name of the device- Returns:
- The device handle
-
close
public static int close(int hif) Closes the device.
Native wrapper.
- Parameters:
hif- Internal device handle- Returns:
- Return code (always 1)
-
enumerate
public static int enumerate()Enumerates devices.
Native wrapper.
- Returns:
- Number of devices found
-
getEnumeratedDevice
Gets the connection name of an enumerated device.
Native wrapper.
- Parameters:
idx- Enumeration index- Returns:
- The connection name
-
getCapabilities
Gets the capabilities of an enumerated device.
Native wrapper.
- Parameters:
idx- Enumeration index- Returns:
- Capabilities string
-
getLastError
public static int getLastError()Gets the last error code.
Native wrapper.
- Returns:
- Error code
-
getLastErrorName
Gets the last error name.
Native wrapper.
- Parameters:
erc- Numeric code of message name- Returns:
- Error name
-
getLastErrorDescription
Gets the last error description.
Native wrapper.
- Parameters:
erc- Numeric code of message name- Returns:
- Error description
-