Show / Hide Table of Contents

Interface IHidDeviceHandler

Namespace: Hid.Net
Assembly: Hid.Net.dll
Syntax
public interface IHidDeviceHandler

Properties

ConnectedDeviceDefinition

Declaration
ConnectedDeviceDefinition ConnectedDeviceDefinition { get; }
Property Value
Type Description
ConnectedDeviceDefinition

DeviceId

Declaration
string DeviceId { get; }
Property Value
Type Description
System.String

IsInitialized

Declaration
bool IsInitialized { get; }
Property Value
Type Description
System.Boolean

IsReadOnly

Declaration
bool? IsReadOnly { get; }
Property Value
Type Description
System.Nullable<System.Boolean>

ReadBufferSize

Declaration
ushort? ReadBufferSize { get; }
Property Value
Type Description
System.Nullable<System.UInt16>

WriteBufferSize

Declaration
ushort? WriteBufferSize { get; }
Property Value
Type Description
System.Nullable<System.UInt16>

Methods

Close()

Declaration
void Close()

InitializeAsync(CancellationToken)

Declaration
Task InitializeAsync(CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type Name Description
System.Threading.CancellationToken cancellationToken
Returns
Type Description
System.Threading.Tasks.Task

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