跳转到主内容

HID设备对象

  • deviceId string - 设备唯一标识符
  • name string - 设备名称
  • vendorId Integer - USB 供应商 ID
  • productId Integer - USB 产品 ID
  • serialNumber string (可选) - USB 设备序列号
  • guid string (可选) - HID 接口唯一标识符。 一个设备可以有多个 HID 接口
  • collections Object[] - an array of report formats. See MDN documentation for more.
    • usage Integer - An integer representing the usage ID component of the HID usage associated with this collection.
    • usagePage Integer - An integer representing the usage page component of the HID usage associated with this collection.
    • type Integer - An 8-bit value representing the collection type, which describes a different relationship between the grouped items.
    • children Object[] - An array of sub-collections which takes the same format as a top-level collection.
    • inputReports Object[] - An array of inputReport items which represent individual input reports described in this collection.
    • outputReports Object[] - An array of outputReport items which represent individual output reports described in this collection.
    • featureReports Object[] - An array of featureReport items which represent individual feature reports described in this collection.