Power Meter USBExtra
data class PowerMeterUSBExtra(val busPath: String, val devicePath: String? = null, val productId: Short, val vendorId: Short, val portConfiguration: PortConfiguration? = null, val maxPower: Int? = null, val speed: String? = null, val serial: String? = null, val describe: List<String> = listOf(
"Bus path: $busPath",
"Device path: ${devicePath ?: "N/A"}",
"Vendor id: ${vendorId.toHexString()}:${productId.toHexString()}",
"Serial port: ${portConfiguration ?: "N/A"}",
"Max power: ${maxPower ?: "?"} mA",
"USB bus speed: ${speed ?: "?"} Mbps",
"Serial: ${serial ?: "N/A"}",
)) : PowerMeterData
Extra data fields for USB/TTY power meters.
Constructors
Link copied to clipboard
constructor(busPath: String, devicePath: String? = null, productId: Short, vendorId: Short, portConfiguration: PortConfiguration? = null, maxPower: Int? = null, speed: String? = null, serial: String? = null, describe: List<String> = listOf(
"Bus path: $busPath",
"Device path: ${devicePath ?: "N/A"}",
"Vendor id: ${vendorId.toHexString()}:${productId.toHexString()}",
"Serial port: ${portConfiguration ?: "N/A"}",
"Max power: ${maxPower ?: "?"} mA",
"USB bus speed: ${speed ?: "?"} Mbps",
"Serial: ${serial ?: "N/A"}",
))