Class WindowsUsbInterfaceManager
Inheritance
System.Object
WindowsUsbInterfaceManager
Implements
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: Usb.Net.dll
Syntax
public class WindowsUsbInterfaceManager : UsbInterfaceManager, IUsbInterfaceManager, IDisposable
Constructors
WindowsUsbInterfaceManager(String, ILoggerFactory, Nullable<UInt16>, Nullable<UInt16>)
Declaration
public WindowsUsbInterfaceManager(string deviceId, ILoggerFactory loggerFactory = null, ushort? readBufferLength = null, ushort? writeBufferLength = null)
Parameters
Type |
Name |
Description |
System.String |
deviceId |
|
Microsoft.Extensions.Logging.ILoggerFactory |
loggerFactory |
|
System.Nullable<System.UInt16> |
readBufferLength |
|
System.Nullable<System.UInt16> |
writeBufferLength |
|
Properties
DeviceId
Declaration
public string DeviceId { get; }
Property Value
Type |
Description |
System.String |
|
IsInitialized
Declaration
public bool IsInitialized { get; }
Property Value
Type |
Description |
System.Boolean |
|
ReadBufferSize
Declaration
public ushort ReadBufferSize { get; }
Property Value
Type |
Description |
System.UInt16 |
|
ReadBufferSizeProtected
Declaration
protected ushort? ReadBufferSizeProtected { get; set; }
Property Value
Type |
Description |
System.Nullable<System.UInt16> |
|
WriteBufferSize
Declaration
public ushort WriteBufferSize { get; }
Property Value
Type |
Description |
System.UInt16 |
|
WriteBufferSizeProtected
Declaration
protected ushort? WriteBufferSizeProtected { get; set; }
Property Value
Type |
Description |
System.Nullable<System.UInt16> |
|
Methods
Close()
Declaration
public override void Close()
Overrides
Dispose()
Declaration
public override void Dispose()
Overrides
GetConnectedDeviceDefinitionAsync(CancellationToken)
Declaration
public Task<ConnectedDeviceDefinition> GetConnectedDeviceDefinitionAsync(CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type |
Name |
Description |
System.Threading.CancellationToken |
cancellationToken |
|
Returns
InitializeAsync(CancellationToken)
Declaration
public async Task InitializeAsync(CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type |
Name |
Description |
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
Implements
System.IDisposable