HidStream ClassHIDSharp
Communicates with a USB HID class device.
Inheritance Hierarchy

SystemObject
  SystemMarshalByRefObject
    System.IOStream
      HidSharpDeviceStream
        HidSharpHidStream

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

public abstract class HidStream : DeviceStream

The HidStream type exposes the following members.

Methods

  NameDescription
Public methodBeginRead
Begins an asynchronous read operation.
(Inherited from DeviceStream.)
Public methodBeginWrite
Begins an asynchronous write operation.
(Inherited from DeviceStream.)
Public methodEndRead
Waits for the pending asynchronous read to complete.
(Inherited from DeviceStream.)
Public methodEndWrite
Ends an asynchronous write operation.
(Inherited from DeviceStream.)
Public methodGetFeature(Byte)
Sends a Get Feature setup request.
Public methodGetFeature(Byte, Int32, Int32)
Sends a Get Feature setup request.
Public methodRead
Reads HID Input Reports.
Public methodRead(Byte)
Reads HID Input Reports.
Public methodSetFeature(Byte)
Sends a Set Feature setup request.
Public methodSetFeature(Byte, Int32, Int32)
Sends a Set Feature setup request.
Public methodWrite
Writes an HID Output Report to the device.
Top
Properties

  NameDescription
Public propertyDevice
Gets the HidDevice associated with this stream.
Public propertyReadTimeout
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.)
Public propertyTag
An object storing user-defined data about the stream.
(Inherited from DeviceStream.)
Public propertyWriteTimeout
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.)
Top
Events

  NameDescription
Public eventClosed
Occurs when the stream is closed.
(Inherited from DeviceStream.)
Public eventInterruptRequested
Occurs when Interruptible is true and another process or thread with higher priority would like to open the stream.
(Inherited from DeviceStream.)
Top
See Also

Reference