Inheritance Hierarchy
HidSharpDevice
HidSharp.ExperimentalBleDevice
HidSharpHidDevice
HidSharpSerialDevice
Namespace: HidSharp
Assembly: HidSharp (in HidSharp.dll) Version: 2.6.3
Syntax
The Device type exposes the following members.
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.
|
Methods
| Name | Description | |
|---|---|---|
| GetFileSystemName |
Returns the file system path of the device.
This can be used to check permissions on Linux hidraw, for instance.
| |
| GetFriendlyName |
Returns a name appropriate for display.
| |
| GetManufacturer |
Returns the manufacturer name.
| |
| GetManufacturer(GetStringFlags) |
Returns the manufacturer name.
| |
| GetProductName |
Returns the product name.
| |
| GetProductName(GetStringFlags) |
Returns the product name.
| |
| GetSerialNumber |
Returns the device serial number.
| |
| GetSerialNumber(GetStringFlags) |
Returns the device serial number.
| |
| HasImplementationDetail |
Checks if a particular implementation detail, such as the use of the Linux hidraw API, applies to this device.
See ImplementationDetail for a list of possible details.
| |
| Open |
Makes a connection to the device, or throws an exception if the connection cannot be made.
| |
| Open(OpenConfiguration) | ||
| TryOpen(DeviceStream) |
Tries to make a connection to the device.
| |
| TryOpen(OpenConfiguration, DeviceStream) | ||
| TryOpen(OpenConfiguration, DeviceStream, Exception) |
See Also