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).

See also

Constructors

Link copied to clipboard
constructor(    name: String,     vendor: String,     vendorId: String,     productId: String,     serialNumber: String,     uniqueDeviceId: String,     connectedDevices: List<UsbDevice>)

Properties

Link copied to clipboard
open override val connectedDevices: List<UsbDevice>
Link copied to clipboard
open override val name: String
Link copied to clipboard
open override val productId: String
Link copied to clipboard
open override val serialNumber: String
Link copied to clipboard
open override val uniqueDeviceId: String
Link copied to clipboard
open override val vendor: String
Link copied to clipboard
open override val vendorId: String