com.inscoper.api.UsbInfo¶
UsbInfo class contains all USB devices information connected to the device controller. More...
Public Functions¶
| Name | |
|---|---|
| synchronized void | delete() |
| UsbInfo() Default constructor. |
|
| int | getVid() Get the current VID. |
| void | setVid(int vid) Set the current VID. |
| int | getPid() Get the current PID. |
| void | setPid(int pid) Set the current PID. |
| String | getManufacturer() Get the current manufacturer. |
| void | setManufacturer(String manufacturer) Set the current manufacturer. |
| String | getProduct() Get the current product. |
| void | setProduct(String product) Set the current product. |
| String | getSerialNumber() Get the current serial number. |
| void | setSerialNumber(String serialNumber) Set the current serial number. |
| short | getNumInterface() Get the current interface number. |
| void | setNumInterface(short numInterface) Set the current interface number. |
| String | getAssociateDriver() Get the current associated driver. |
| void | setAssociateDriver(String associateDriver) Set the current associated driver. |
| short | getHub() Get the current hub number. |
| void | setHub(short hub) Set the current hub number. |
| short | getPort() Get the current port number. |
| void | setPort(short port) Set the current port number. |
Protected Functions¶
| Name | |
|---|---|
| UsbInfo(long cPtr, boolean cMemoryOwn) | |
| void | finalize() |
| long | getCPtr(UsbInfo obj) |
| long | swigRelease(UsbInfo obj) |
Protected Attributes¶
| Name | |
|---|---|
| transient boolean | swigCMemOwn |
Detailed Description¶
UsbInfo class contains all USB devices information connected to the device controller.
This class stores detailed information about a USB device, including its identification (VID/PID), description (Manufacturer/Product), and location (Hub/Port).
Public Functions Documentation¶
function delete¶
function UsbInfo¶
Default constructor.
Initializes a new instance of the UsbInfo class.
function getVid¶
Get the current VID.
Return: The current VID
Retrieves the Vendor ID of the USB device.
function setVid¶
Set the current VID.
Parameters:
- vid : The current VID
Sets the Vendor ID of the USB device.
function getPid¶
Get the current PID.
Return: The current PID
Retrieves the Product ID of the USB device.
function setPid¶
Set the current PID.
Parameters:
- pid : The current PID
Sets the Product ID of the USB device.
function getManufacturer¶
Get the current manufacturer.
Return: The current manufacturer
Retrieves the manufacturer string of the USB device.
function setManufacturer¶
Set the current manufacturer.
Parameters:
- manufacturer : The current manufacturer
Sets the manufacturer string of the USB device.
function getProduct¶
Get the current product.
Return: The current product
Retrieves the product string of the USB device.
function setProduct¶
Set the current product.
Parameters:
- product : The current product
Sets the product string of the USB device.
function getSerialNumber¶
Get the current serial number.
Return: The current serial number
Retrieves the serial number of the USB device.
function setSerialNumber¶
Set the current serial number.
Parameters:
- serialNumber : The current serial number
Sets the serial number of the USB device.
function getNumInterface¶
Get the current interface number.
Return: The current interface number
Retrieves the interface number of the USB device.
function setNumInterface¶
Set the current interface number.
Parameters:
- numInterface : The current interface number
Sets the interface number of the USB device.
function getAssociateDriver¶
Get the current associated driver.
Return: The current associated driver
Retrieves the name of the driver associated with this USB device.
function setAssociateDriver¶
Set the current associated driver.
Parameters:
- associateDriver : The current associated driver
Sets the name of the driver associated with this USB device.
function getHub¶
Get the current hub number.
Return: The current hub number
Retrieves the USB hub number where the device is connected.
function setHub¶
Set the current hub number.
Parameters:
- hub : The current hub number
Sets the USB hub number where the device is connected.
function getPort¶
Get the current port number.
Return: The current port number
Retrieves the port number on the hub where the device is connected.
function setPort¶
Set the current port number.
Parameters:
- port : The current port number
Sets the port number on the hub where the device is connected.
Protected Functions Documentation¶
function UsbInfo¶
function finalize¶
function getCPtr¶
function swigRelease¶
Protected Attributes Documentation¶
variable swigCMemOwn¶
Updated on 2026-04-02 at 10:55:38 +0200