Represents a serial device.
Inheritance Hierarchy
HidSharpDevice
HidSharpSerialDevice
Namespace: HidSharp
Assembly: HidSharp (in HidSharp.dll) Version: 2.0.0
Syntax
The SerialDevice 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.) | |
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(SerialStream) | ||
TryOpen(OpenConfiguration, DeviceStream) | (Inherited from Device.) | |
TryOpen(OpenConfiguration, SerialStream) | ||
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.) |
See Also