HIDInfo()

Syntax

Result$ = HIDInfo(Type [, #HID])
Description
Get more information about the HID device.

Parameters

Type The type of information to retrieve. It can be one of the following value:
  #PB_HID_Path           : the platform-specific device path.
  #PB_HID_VendorId       : the device vendor ID.
  #PB_HID_ProductId      : the device product ID.
  #PB_HID_SerialNumber   : the serial number.
  #PB_HID_ReleaseNumber  : the device release number in binary-coded decimal, also known as device version number.
  #PB_HID_Manufacturer   : the manufacturer.
  #PB_HID_Product        : the product.
  #PB_HID_UsagePage      : the usage page this device.
  #PB_HID_Usage          : the usage for this device.
  #PB_HID_InterfaceNumber: the USB interface which this logical device represents (only valid for USB devices)
  #PB_HID_BusType        : the underlying bus type. Can be one of the following value:
                            0: Unknown
                            1: USB
                            2: Bluetooth
                            3: I2C
                            4: SPI
#HID (optional) The HID device to query. If not specified, uses the current device from enumeration started with ExamineHIDs().

Return value

Returns a string containing the requested HID information.
  If ExamineHIDs()
    While NextHID()
      Debug "Found HID device: " + HIDInfo(#PB_HID_Product)
      Debug "Found HID device: " + HIDInfo(#PB_HID_Manufacturer)
      Debug "Found HID device: " + HIDInfo(#PB_HID_Path)
      Debug "---------------------------------------------------"
    Wend
  EndIf

See Also

ExamineHIDs(), NextHID()

Supported OS

All

<- HIDError() - HID Index - IsHID() ->