Device Class

HIDSharp
Inheritance Hierarchy

SystemObject
  HidSharpDevice
    HidSharp.ExperimentalBleDevice
    HidSharpHidDevice
    HidSharpSerialDevice

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

public abstract class Device

The Device type exposes the following members.

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.
Top
Methods

  NameDescription
Public methodGetFileSystemName
Returns the file system path of the device. This can be used to check permissions on Linux hidraw, for instance.
Public methodGetFriendlyName
Returns a name appropriate for display.
Public methodGetManufacturer
Returns the manufacturer name.
Public methodGetManufacturer(GetStringFlags)
Returns the manufacturer name.
Public methodGetProductName
Returns the product name.
Public methodGetProductName(GetStringFlags)
Returns the product name.
Public methodGetSerialNumber
Returns the device serial number.
Public methodGetSerialNumber(GetStringFlags)
Returns the device serial number.
Public methodHasImplementationDetail
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.
Public methodOpen
Makes a connection to the device, or throws an exception if the connection cannot be made.
Public methodOpen(OpenConfiguration)
Public methodTryOpen(DeviceStream)
Tries to make a connection to the device.
Public methodTryOpen(OpenConfiguration, DeviceStream)
Public methodTryOpen(OpenConfiguration, DeviceStream, Exception)
Top
See Also

Reference