USBDevice

data class USBDevice(val vid: Short, val pid: Short, val bus: Int, val address: Int, val maxPower: Int? = null, val type: USBType? = null, val properties: Map<String, String> = mapOf(), val deviceFiles: List<String> = listOf())

Low level structure returned by the USB/HID enumerator.

Constructors

Link copied to clipboard
constructor(vid: Short, pid: Short, bus: Int, address: Int, maxPower: Int? = null, type: USBType? = null, properties: Map<String, String> = mapOf(), deviceFiles: List<String> = listOf())

Properties

Link copied to clipboard

USB address

Link copied to clipboard
val bus: Int

USB bus

Link copied to clipboard

Associated device files

Link copied to clipboard
val maxPower: Int? = null

Max power draw (mA)

Link copied to clipboard
val pid: Short

Product id

Link copied to clipboard

Misc properties

Link copied to clipboard
val type: USBType? = null

USB device class

Link copied to clipboard
val vid: Short

Vendor id

Functions

Link copied to clipboard
open override fun toString(): String