Skip to content

InscoperAPI/Build/Java/com.inscoper.api/com/inscoper/api/USBConnectionConfig.java

Packages

Name
com.inscoper.api

Classes

Name
class com.inscoper.api.USBConnectionConfig
USBConnectionConfig class provides required information for USB devices configuration.

Source code

/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (https://www.swig.org).
 * Version 4.3.1
 *
 * Do not make changes to this file unless you know what you are doing - modify
 * the SWIG interface file instead.
 * ----------------------------------------------------------------------------- */

package com.inscoper.api;
import com.inscoper.api.logging.*;

public class USBConnectionConfig extends ConnectionConfig {
  private transient long swigCPtr;
  private transient boolean swigCMemOwnDerived;

  protected USBConnectionConfig(long cPtr, boolean cMemoryOwn) {
    super(InscoperJNI.USBConnectionConfig_SWIGSmartPtrUpcast(cPtr), true);
    swigCMemOwnDerived = cMemoryOwn;
    swigCPtr = cPtr;
  }

  protected static long getCPtr(USBConnectionConfig obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  protected void swigSetCMemOwn(boolean own) {
    swigCMemOwnDerived = own;
    super.swigSetCMemOwn(own);
  }

  @SuppressWarnings({"deprecation", "removal"})
  protected void finalize() {
    delete();
  }

  public synchronized void delete() {
    if (swigCPtr != 0) {
      if (swigCMemOwnDerived) {
        swigCMemOwnDerived = false;
        InscoperJNI.delete_USBConnectionConfig(swigCPtr);
      }
      swigCPtr = 0;
    }
    super.delete();
  }

  public USBConnectionConfig() {
    this(InscoperJNI.new_USBConnectionConfig(), true);
  }

  public void fromXML(XMLNode connectionNode) throws com.inscoper.api.InscoperException {
    InscoperJNI.USBConnectionConfig_fromXML(swigCPtr, this, XMLNode.getCPtr(connectionNode), connectionNode);
  }

  public void toXML(XMLNode xmlParent) throws com.inscoper.api.InscoperException {
    InscoperJNI.USBConnectionConfig_toXML(swigCPtr, this, XMLNode.getCPtr(xmlParent), xmlParent);
  }

  public EConnectionType getType() {
    return EConnectionType.swigToEnum(InscoperJNI.USBConnectionConfig_getType(swigCPtr, this));
  }

  public long getMatchBitField() {
    return InscoperJNI.USBConnectionConfig_getMatchBitField(swigCPtr, this);
  }

  public void setMatchBitField(long matchBitField) {
    InscoperJNI.USBConnectionConfig_setMatchBitField(swigCPtr, this, matchBitField);
  }

  public int getVid() {
    return InscoperJNI.USBConnectionConfig_getVid(swigCPtr, this);
  }

  public void setVid(int vid) {
    InscoperJNI.USBConnectionConfig_setVid(swigCPtr, this, vid);
  }

  public int getPid() {
    return InscoperJNI.USBConnectionConfig_getPid(swigCPtr, this);
  }

  public void setPid(int pid) {
    InscoperJNI.USBConnectionConfig_setPid(swigCPtr, this, pid);
  }

  public String getManufacturer() {
    return InscoperJNI.USBConnectionConfig_getManufacturer(swigCPtr, this);
  }

  public void setManufacturer(String manufacturer) {
    InscoperJNI.USBConnectionConfig_setManufacturer(swigCPtr, this, manufacturer);
  }

  public String getProduct() {
    return InscoperJNI.USBConnectionConfig_getProduct(swigCPtr, this);
  }

  public void setProduct(String product) {
    InscoperJNI.USBConnectionConfig_setProduct(swigCPtr, this, product);
  }

  public String getSerialNumber() {
    return InscoperJNI.USBConnectionConfig_getSerialNumber(swigCPtr, this);
  }

  public void setSerialNumber(String serialNumber) {
    InscoperJNI.USBConnectionConfig_setSerialNumber(swigCPtr, this, serialNumber);
  }

  public String getWaitingAns() {
    return InscoperJNI.USBConnectionConfig_getWaitingAns(swigCPtr, this);
  }

  public void setWaitingAns(String waitingAns) {
    InscoperJNI.USBConnectionConfig_setWaitingAns(swigCPtr, this, waitingAns);
  }

  public short getNumInterface() {
    return InscoperJNI.USBConnectionConfig_getNumInterface(swigCPtr, this);
  }

  public void setNumInterface(short numInterface) {
    InscoperJNI.USBConnectionConfig_setNumInterface(swigCPtr, this, numInterface);
  }

  public int getSubDeviceTag() {
    return InscoperJNI.USBConnectionConfig_getSubDeviceTag(swigCPtr, this);
  }

  public void setSubDeviceTag(int subDeviceTag) {
    InscoperJNI.USBConnectionConfig_setSubDeviceTag(swigCPtr, this, subDeviceTag);
  }

}

Updated on 2026-09-03 at 12:14:19 +0200