Свойство | Type | Description | |
---|---|---|---|
DeviceFileHandle | SafeFileHandle | ||
DevicePath | string | ||
ProductID | short | ||
VendorID | short |
Méthode | Description | |
---|---|---|
CreateInputReport ( ) : |
Virtual method to create an input report for this device. Override to use.
|
|
Dispose ( ) : void |
Dispose method
|
|
GetDevices ( ) : IEnumerable |
||
GetVendorName ( short vendorId ) : string | ||
HidDevice ( string devicePathName ) : System | ||
Initialize ( string devicePathName ) : void | ||
ToString ( ) : string |
Méthode | Description | |
---|---|---|
Dispose ( bool bDisposing ) : void |
Disposer called by both dispose and finalise
|
|
HandleDataReceived ( |
virtual handler for any action to be taken when data is received. Override to use.
|
|
HandleDeviceRemoved ( ) : void |
Virtual handler for any action to be taken when a device is removed. Override to use.
|
|
ReadCompleted ( IAsyncResult iResult ) : void |
Callback for above. Care with this as it will be called on the background thread from the async read
|
|
Write ( |
Write an output report to the device.
|
Méthode | Description | |
---|---|---|
BeginAsyncRead ( ) : void |
Kicks off an asynchronous read which completes when data is read or when the device is disconnected. Uses a callback.
|
protected Dispose ( bool bDisposing ) : void | ||
bDisposing | bool | True if disposing |
Résultat | void |
public static GetVendorName ( short vendorId ) : string | ||
vendorId | short | |
Résultat | string |
protected HandleDataReceived ( |
||
oInRep | The input report that was received | |
Résultat | void |
public HidDevice ( string devicePathName ) : System | ||
devicePathName | string | |
Résultat | System |
public Initialize ( string devicePathName ) : void | ||
devicePathName | string | |
Résultat | void |
protected ReadCompleted ( IAsyncResult iResult ) : void | ||
iResult | IAsyncResult | Async result parameter |
Résultat | void |
protected Write ( |
||
oOutRep | Output report to write | |
Résultat | void |