Represents a USB HID class device.
Inheritance Hierarchy
HidSharpDevice
HidSharpHidDevice
Namespace: HidSharp
Assembly: HidSharp (in HidSharp.dll) Version: 2.0.0
Syntax
The HidDevice type exposes the following members.
Methods
Name | Description | |
---|---|---|
GetFileSystemName |
Returns the file system path of the device.
This can be used to check permissions on Linux hidraw, for instance.
(Inherited from Device.) | |
GetFriendlyName |
Returns a name appropriate for display.
(Overrides DeviceGetFriendlyName.) | |
GetManufacturer |
Returns the manufacturer name.
| |
GetMaxFeatureReportLength |
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.
| |
GetMaxInputReportLength |
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.
| |
GetMaxOutputReportLength |
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.
| |
GetProductName |
Returns the product name.
| |
GetRawReportDescriptor |
Returns the raw report descriptor of the USB device.
| |
GetReportDescriptor |
Retrieves and parses the report descriptor of the USB device.
| |
GetSerialNumber |
Returns the device serial number.
| |
GetSerialPorts |
Returns the serial ports of the composite USB device.
Currently this is only supported on Windows.
| |
HasImplementationDetail | (Overrides DeviceHasImplementationDetail(Guid).) | |
Open | ||
Open(OpenConfiguration) | ||
ToString | Returns a string that represents the current object. (Overrides ObjectToString.) | |
TryOpen(DeviceStream) |
Tries to make a connection to the device.
(Inherited from Device.) | |
TryOpen(HidStream) | ||
TryOpen(OpenConfiguration, DeviceStream) | (Inherited from Device.) | |
TryOpen(OpenConfiguration, HidStream) | ||
TryOpen(OpenConfiguration, DeviceStream, Exception) | (Inherited from Device.) |
Properties
Name | Description | |
---|---|---|
DevicePath |
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.) | |
ProductID |
The USB product ID. These are listed at: http://usb-ids.gowdy.us
| |
ReleaseNumber |
The device release number.
| |
ReleaseNumberBcd |
The device release number, in binary-coded decimal.
| |
VendorID |
The USB vendor ID. These are listed at: http://usb-ids.gowdy.us
|
See Also