HIDLib: A managed, general-purpose HID USB interface library for .NET.
HIDDevice Class
NamespacesBlueNinjaSoftware.HIDLibHIDDevice
Represents a single HID device.
Declaration Syntax
C#Visual BasicVisual C++
public class HIDDevice : IEquatable<HIDDevice>, 
	IDisposable
Public Class HIDDevice _
	Implements IEquatable(Of HIDDevice), IDisposable
public ref class HIDDevice : IEquatable<HIDDevice^>, 
	IDisposable
Members
All MembersConstructorsMethodsPropertiesEvents



IconMemberDescription
HIDDevice(String)
Public constructor to explicitly obtain a device by it's DevicePath. Device will be opened with async support enabled.

HIDDevice(String, Boolean)
Public constructor to explicitly obtain a device by it's DevicePath.

AbortAsyncRead()()()
AsyncEnabled
Attached
BeginAsyncRead()()()

Capabilities
Provides access to the device's capabilities information.

CreateFeatureReport()()()
Returns an empty Feature report.

CreateFeatureReport(Byte)
Returns an empty Feature report for the specified ReportID.

CreateFeatureReport(Byte, array<Byte>[]()[])
Returns a Feature report for the specified ReportID with the specified ReportData.

CreateFeatureReport(array<Byte>[]()[])
Creates a Feature report from the specified raw report buffer.

CreateOutputReport()()()
Returns an empty Output report.

CreateOutputReport(Byte)
Returns an empty Output report for the specified ReportID.

CreateOutputReport(Byte, array<Byte>[]()[])
Returns an Output report for the specified ReportID with the specified ReportData.

CreateOutputReport(array<Byte>[]()[])
Creates an Output report from the specified raw report buffer.

DataReceived
DevicePath
Returns the device path of the device.

Disconnected
Dispose()()()
Equals(HIDDevice)
Equals(Object) (Overrides Object.Equals(Object).)
Finalize()()() (Overrides Object.Finalize()()().)
FlushQueue()()()
GetHashCode()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetLastWin32Error()()()
Returns a Win32Exception containing the last Win32 error code and description.

GetStringDescriptor(UInt16)
Returns the string descriptor for the specified string index. If the string index is not supported by the device, null/Nothing is returned.

GetType()()()
Gets the Type of the current instance.
(Inherited from Object.)
HIDHandle
Returns the SafeFileHandle used for device communication.

InitializeFeatureReport(Byte)
Initializes a new Feature report for the specified ReportID. The ReportData will contain the current or default settings as specified in the specified report's descriptor.

InitializeOutputReport(Byte)
Initializes a new Output report for the specified ReportID. The ReportData will contain the current or default settings as specified in the specified report's descriptor.

Manufacturer
Returns the device's manufacturer name.

MemberwiseClone()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
OnDataReceived(HIDDataReceivedEventArgs)
OnDisconnected(HIDDeviceNotificationEventArgs)
OnReconnected(EventArgs)
OnReportReceived(HIDReportReceivedEventArgs)
PhysicalDescriptor
Returns the device's manufacturer-assigned physical descriptor.

ProductID
Returns the device's manufacturer-assigned ProductID.

ProductName
Returns the device's manufacturer-assigned product name.

ReadFeatureReport()()()
Requests a Feature report from the device.

ReadFeatureReport(Byte)
Requests a Feature report from the device, specifying the ReportID.

ReadInputReport(HIDDevice..::.TransferModesEnum)
Requests an Input report from the device.

ReadInputReport(Byte, HIDDevice..::.TransferModesEnum)
Requests an Input report from the device, specifying the ReportID.

Reconnected
ReportReceived
SerialNumber
Returns the device's manufacturer-assigned serial number.

ToString()()() (Overrides Object.ToString()()().)
VendorID
Returns the device's manufacturer-assigned VendorID.

VersionNumber
Returns the device's manufacturer-assigned product or firmware version number.

WriteReport(HIDFeatureReport)
Writes a feature report to the device.

WriteReport(HIDOutputReport, HIDDevice..::.TransferModesEnum)
Writes a report to the device.

Inheritance Hierarchy
Object
HIDDevice

Assembly: HIDLib (Module: HIDLib) Version: 0.2.0.1626