C# Class HidSharp.HidDevice

Show file Open project: arvydas/BlinkStickDotNet Class Usage Examples

Public Methods

Method Description
GetReportDescriptor ( ) : byte[]

Returns the raw report descriptor of the USB device. Currently this is only supported on Linux.

Open ( ) : HidStream

Makes a connection to the USB HID class device, or throws an exception if the connection cannot be made.

ToString ( ) : string
TryOpen ( HidStream &stream ) : bool

Tries to make a connection to the USB HID class device.

Method Details

GetReportDescriptor() public method

Returns the raw report descriptor of the USB device. Currently this is only supported on Linux.
public GetReportDescriptor ( ) : byte[]
return byte[]

Open() public abstract method

Makes a connection to the USB HID class device, or throws an exception if the connection cannot be made.
public abstract Open ( ) : HidStream
return HidStream

ToString() public method

public ToString ( ) : string
return string

TryOpen() public method

Tries to make a connection to the USB HID class device.
public TryOpen ( HidStream &stream ) : bool
stream HidStream The stream to use to communicate with the device.
return bool