menu

HidDevice

import { HidDevice } from "destack:device/binding";

HID device descriptor.

language/library/src/device/binding/hid.ds:49:84
1export struct HidDevice {2    id: string;3    path: Path;4    name: string;5    bus: HidBus;6    vendorId: uint16;7    productId: uint16;8    manufacturer: string;9    product: string;10    serialNumber: string;11    usagePage: uint16;12    usage: uint16;13    maxInputReportBytes: uint32;14    maxOutputReportBytes: uint32;15    maxFeatureReportBytes: uint32;16    isConnected: boolean;17    isVirtual: boolean;18    isSystem: boolean;19}

Members

id: string

Stable HID device identifier.

path: Path

Host device path when available.

name: string

Host-visible device name.

bus: HidBus

Host bus kind.

vendorId: uint16

Vendor identifier when available.

productId: uint16

Product identifier when available.

manufacturer: string

Manufacturer string when available.

product: string

Product string when available.

serialNumber: string

Serial number when available.

usagePage: uint16

Primary HID usage page when available.

usage: uint16

Primary HID usage when available.

maxInputReportBytes: uint32

Maximum input report length in bytes when known.

maxOutputReportBytes: uint32

Maximum output report length in bytes when known.

maxFeatureReportBytes: uint32

Maximum feature report length in bytes when known.

isConnected: boolean

Whether this device is currently connected.

isVirtual: boolean

Whether this device is virtual or emulated.

isSystem: boolean

Whether this device is provided by the system stack.