Show / Hide Table of Contents

Interface IHidDevice

Inherited Members
IDevice.IsInitialized
IDevice.ReadAsync(CancellationToken)
IDevice.WriteAsync(Byte[], CancellationToken)
IDevice.InitializeAsync(CancellationToken)
IDevice.WriteAndReadAsync(Byte[], CancellationToken)
IDevice.DeviceId
IDevice.ConnectedDeviceDefinition
IDevice.Close()
IDevice.Flush(CancellationToken)
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>
In This Article
Back to top Generated by DocFX