UsbDeviceImpl
class UsbDeviceImpl( val name: String, val vendor: String, val vendorId: String, val productId: String, val serialNumber: String, val uniqueDeviceId: String, val connectedDevices: List<UsbDevice>) : UsbDevice
UsbDeviceImpl
is the implementation of the UsbDevice
interface. It provides details about a USB device, such as its name, vendor, serial number, and connected devices.
Author
N7ghtm4r3
Parameters
name
The name of the USB device (e.g., "USB 3.0 Hub").
vendor
The vendor of the USB device (e.g., "Generic", "Logitech").
vendorId
The vendor ID of the USB device, typically a 4-character hexadecimal value.
productId
The product ID of the USB device, typically a 4-character hexadecimal value.
serialNumber
The serial number of the USB device.
uniqueDeviceId
A unique identifier for the USB device.
connectedDevices
A list of other USB devices that are connected to this device (if any).