HidDevice ClassHIDSharp
Represents a USB HID class device.
Inheritance Hierarchy

SystemObject
  HidSharpDevice
    HidSharpHidDevice

Namespace: HidSharp
Assembly: HidSharp (in HidSharp.dll) Version: 2.0.0
Syntax

public abstract class HidDevice : Device

The HidDevice type exposes the following members.

Methods

  NameDescription
Public methodGetFileSystemName
Returns the file system path of the device. This can be used to check permissions on Linux hidraw, for instance.
(Inherited from Device.)
Public methodGetFriendlyName
Returns a name appropriate for display.
(Overrides DeviceGetFriendlyName.)
Public methodGetManufacturer
Returns the manufacturer name.
Public methodGetMaxFeatureReportLength
Returns the maximum feature report length, including the Report ID byte. If the device does not use Report IDs, use 0 for the first byte.
Public methodGetMaxInputReportLength
Returns the maximum input report length, including the Report ID byte. If the device does not use Report IDs, the first byte will always be 0.
Public methodGetMaxOutputReportLength
Returns the maximum output report length, including the Report ID byte. If the device does not use Report IDs, use 0 for the first byte.
Public methodGetProductName
Returns the product name.
Public methodGetRawReportDescriptor
Returns the raw report descriptor of the USB device.
Public methodGetReportDescriptor
Retrieves and parses the report descriptor of the USB device.
Public methodGetSerialNumber
Returns the device serial number.
Public methodGetSerialPorts
Returns the serial ports of the composite USB device. Currently this is only supported on Windows.
Public methodHasImplementationDetail (Overrides DeviceHasImplementationDetail(Guid).)
Public methodOpen
Public methodOpen(OpenConfiguration)
Public methodToString
Returns a string that represents the current object.
(Overrides ObjectToString.)
Public methodTryOpen(DeviceStream)
Tries to make a connection to the device.
(Inherited from Device.)
Public methodTryOpen(HidStream)
Public methodTryOpen(OpenConfiguration, DeviceStream) (Inherited from Device.)
Public methodTryOpen(OpenConfiguration, HidStream)
Public methodTryOpen(OpenConfiguration, DeviceStream, Exception) (Inherited from Device.)
Top
Properties

  NameDescription
Public propertyDevicePath
The operating system's name for the device. If you have multiple devices with the same Vendor ID, Product ID, Serial Number, etc., this may be useful for differentiating them.
(Inherited from Device.)
Public propertyProductID
The USB product ID. These are listed at: http://usb-ids.gowdy.us
Public propertyReleaseNumber
The device release number.
Public propertyReleaseNumberBcd
The device release number, in binary-coded decimal.
Public propertyVendorID
The USB vendor ID. These are listed at: http://usb-ids.gowdy.us
Top
See Also

Reference