Communicates with a USB HID class device.
Inheritance Hierarchy
SystemMarshalByRefObject
System.IOStream
HidSharpDeviceStream
HidSharpHidStream
Namespace: HidSharp
Assembly: HidSharp (in HidSharp.dll) Version: 2.0.0
Syntax
The HidStream type exposes the following members.
Methods
Name | Description | |
---|---|---|
BeginRead | Begins an asynchronous read operation. (Inherited from DeviceStream.) | |
BeginWrite | Begins an asynchronous write operation. (Inherited from DeviceStream.) | |
EndRead | Waits for the pending asynchronous read to complete. (Inherited from DeviceStream.) | |
EndWrite | Ends an asynchronous write operation. (Inherited from DeviceStream.) | |
GetFeature(Byte) |
Sends a Get Feature setup request.
| |
GetFeature(Byte, Int32, Int32) |
Sends a Get Feature setup request.
| |
Read |
Reads HID Input Reports.
| |
Read(Byte) |
Reads HID Input Reports.
| |
SetFeature(Byte) |
Sends a Set Feature setup request.
| |
SetFeature(Byte, Int32, Int32) |
Sends a Set Feature setup request.
| |
Write |
Writes an HID Output Report to the device.
|
Properties
Name | Description | |
---|---|---|
Device |
Gets the HidDevice associated with this stream.
| |
ReadTimeout |
The maximum amount of time, in milliseconds, to wait for the device to send some data.
The default is 3000 milliseconds.
To disable the timeout, set this to Infinite.
(Inherited from DeviceStream.) | |
Tag |
An object storing user-defined data about the stream.
(Inherited from DeviceStream.) | |
WriteTimeout |
The maximum amount of time, in milliseconds, to wait for the device to receive the data.
The default is 3000 milliseconds.
To disable the timeout, set this to Infinite.
(Inherited from DeviceStream.) |
Events
Name | Description | |
---|---|---|
Closed |
Occurs when the stream is closed.
(Inherited from DeviceStream.) | |
InterruptRequested |
Occurs when Interruptible is true and another process or thread with higher priority
would like to open the stream.
(Inherited from DeviceStream.) |
See Also