InscoperAPI/Build/Java/com.inscoper.api/com/inscoper/api/UsbInfo.java¶
Packages¶
| Name |
|---|
| com.inscoper.api |
Classes¶
| Name | |
|---|---|
| class | com.inscoper.api.UsbInfo UsbInfo class contains all USB devices information connected to the device controller. |
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 UsbInfo {
private transient long swigCPtr;
protected transient boolean swigCMemOwn;
protected UsbInfo(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(UsbInfo obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
protected static long swigRelease(UsbInfo obj) {
long ptr = 0;
if (obj != null) {
if (!obj.swigCMemOwn)
throw new RuntimeException("Cannot release ownership as memory is not owned");
ptr = obj.swigCPtr;
obj.swigCMemOwn = false;
obj.delete();
}
return ptr;
}
@SuppressWarnings({"deprecation", "removal"})
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
InscoperJNI.delete_UsbInfo(swigCPtr);
}
swigCPtr = 0;
}
}
public UsbInfo() {
this(InscoperJNI.new_UsbInfo(), true);
}
public int getVid() {
return InscoperJNI.UsbInfo_getVid(swigCPtr, this);
}
public void setVid(int vid) {
InscoperJNI.UsbInfo_setVid(swigCPtr, this, vid);
}
public int getPid() {
return InscoperJNI.UsbInfo_getPid(swigCPtr, this);
}
public void setPid(int pid) {
InscoperJNI.UsbInfo_setPid(swigCPtr, this, pid);
}
public String getManufacturer() {
return InscoperJNI.UsbInfo_getManufacturer(swigCPtr, this);
}
public void setManufacturer(String manufacturer) {
InscoperJNI.UsbInfo_setManufacturer(swigCPtr, this, manufacturer);
}
public String getProduct() {
return InscoperJNI.UsbInfo_getProduct(swigCPtr, this);
}
public void setProduct(String product) {
InscoperJNI.UsbInfo_setProduct(swigCPtr, this, product);
}
public String getSerialNumber() {
return InscoperJNI.UsbInfo_getSerialNumber(swigCPtr, this);
}
public void setSerialNumber(String serialNumber) {
InscoperJNI.UsbInfo_setSerialNumber(swigCPtr, this, serialNumber);
}
public short getNumInterface() {
return InscoperJNI.UsbInfo_getNumInterface(swigCPtr, this);
}
public void setNumInterface(short numInterface) {
InscoperJNI.UsbInfo_setNumInterface(swigCPtr, this, numInterface);
}
public String getAssociateDriver() {
return InscoperJNI.UsbInfo_getAssociateDriver(swigCPtr, this);
}
public void setAssociateDriver(String associateDriver) {
InscoperJNI.UsbInfo_setAssociateDriver(swigCPtr, this, associateDriver);
}
public short getHub() {
return InscoperJNI.UsbInfo_getHub(swigCPtr, this);
}
public void setHub(short hub) {
InscoperJNI.UsbInfo_setHub(swigCPtr, this, hub);
}
public short getPort() {
return InscoperJNI.UsbInfo_getPort(swigCPtr, this);
}
public void setPort(short port) {
InscoperJNI.UsbInfo_setPort(swigCPtr, this, port);
}
}
Updated on 2026-09-03 at 12:14:19 +0200