SerialDevice Class

HIDSharp
Represents a serial device.
Inheritance Hierarchy

SystemObject
  HidSharpDevice
    HidSharpSerialDevice

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

public abstract class SerialDevice : Device

The SerialDevice 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.
(Inherited from Device.)
Public propertyProductID
Public propertyVendorID
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.
(Inherited from Device.)
Public methodGetFriendlyName
Returns a name appropriate for display.
(Overrides DeviceGetFriendlyName.)
Public methodGetManufacturer
Returns the manufacturer name.
(Inherited from Device.)
Public methodGetManufacturer(GetStringFlags)
Returns the manufacturer name.
(Inherited from Device.)
Public methodGetProductName
Returns the product name.
(Inherited from Device.)
Public methodGetProductName(GetStringFlags)
Returns the product name.
(Inherited from Device.)
Public methodGetSerialNumber
Returns the device serial number.
(Inherited from Device.)
Public methodGetSerialNumber(GetStringFlags)
Returns the device serial number.
(Inherited from Device.)
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(SerialStream)
Public methodTryOpen(OpenConfiguration, DeviceStream) (Inherited from Device.)
Public methodTryOpen(OpenConfiguration, SerialStream)
Public methodTryOpen(OpenConfiguration, DeviceStream, Exception) (Inherited from Device.)
Top
See Also

Reference