Interface IHidDevice
Inherited Members
System.IDisposable.Dispose()
Namespace: Hid.Net
Assembly: Hid.Net.dll
Syntax
public interface IHidDevice : IDevice, IDisposable
Methods
ReadReportAsync(CancellationToken)
Reads data as a cref="ReadReport"
Declaration
Task<Report> ReadReportAsync(CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
System.Threading.CancellationToken | cancellationToken | Allows you to cancel the operation |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<Report> | The cref="ReadReport" |
WriteReportAsync(Byte[], Byte, CancellationToken)
Writes data and allows you to specify the report id
Declaration
Task<uint> WriteReportAsync(byte[] data, byte reportId, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | data | |
System.Byte | reportId | |
System.Threading.CancellationToken | cancellationToken | Allows you to cancel the operation |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.UInt32> |