PowerMeterUSBExtra

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"}", ))

Properties

Link copied to clipboard

Driver dependent bus path

Link copied to clipboard
open override val describe: List<String>
Link copied to clipboard
val devicePath: String? = null

Driver dependent device file path

Link copied to clipboard
val maxPower: Int? = null

Max power draw (mA)

Link copied to clipboard

Port configuration data for serial power meters

Link copied to clipboard

USB device product id

Link copied to clipboard
val serial: String? = null

Serial number

Link copied to clipboard
val speed: String? = null

USB bus speed

Link copied to clipboard

USB device vendor id