Class JniAdeptDepp.dmgr

java.lang.Object
cbsw.adept.JniAdeptDepp.dmgr
Enclosing class:
JniAdeptDepp

public static class JniAdeptDepp.dmgr extends Object

Native interface wrappers to Digilent Adept DMGR API.

  • Constructor Details

    • dmgr

      public dmgr()
  • Method Details

    • open

      public static int open(String dev)

      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

      public static String getEnumeratedDevice(int idx)

      Gets the connection name of an enumerated device.

      Native wrapper.

      Parameters:
      idx - Enumeration index
      Returns:
      The connection name
    • getCapabilities

      public static String getCapabilities(int idx)

      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

      public static String getLastErrorName(int erc)

      Gets the last error name.

      Native wrapper.

      Parameters:
      erc - Numeric code of message name
      Returns:
      Error name
    • getLastErrorDescription

      public static String getLastErrorDescription(int erc)

      Gets the last error description.

      Native wrapper.

      Parameters:
      erc - Numeric code of message name
      Returns:
      Error description