Show / Hide Table of Contents

Class LibUsbInterfaceManager

Inheritance
System.Object
UsbInterfaceManager
LibUsbInterfaceManager
Implements
IUsbInterfaceManager
System.IDisposable
Inherited Members
UsbInterfaceManager.Logger
UsbInterfaceManager.LoggerFactory
UsbInterfaceManager.RegisterDefaultInterfaces()
UsbInterfaceManager.UsbInterfaces
UsbInterfaceManager.ReadUsbInterface
UsbInterfaceManager.WriteUsbInterface
UsbInterfaceManager.ReadInterruptUsbInterface
UsbInterfaceManager.WriteInterruptUsbInterface
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()
Namespace: Device.Net.LibUsb
Assembly: Device.Net.LibUsb.dll
Syntax
public class LibUsbInterfaceManager : UsbInterfaceManager, IUsbInterfaceManager, IDisposable

Constructors

LibUsbInterfaceManager(UsbDevice, Int32, ILoggerFactory, Nullable<UInt16>, Nullable<UInt16>)

Declaration
public LibUsbInterfaceManager(UsbDevice usbDevice, int timeout, ILoggerFactory loggerFactory, ushort? writeBufferSize, ushort? readBufferSize)
Parameters
Type Name Description
LibUsbDotNet.UsbDevice usbDevice
System.Int32 timeout
Microsoft.Extensions.Logging.ILoggerFactory loggerFactory
System.Nullable<System.UInt16> writeBufferSize
System.Nullable<System.UInt16> readBufferSize

Properties

IsInitialized

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

ProductId

Declaration
public int ProductId { get; }
Property Value
Type Description
System.Int32

ReadBufferSize

Declaration
public ushort ReadBufferSize { get; }
Property Value
Type Description
System.UInt16

Timeout

Declaration
public int Timeout { get; }
Property Value
Type Description
System.Int32

UsbDevice

Declaration
public UsbDevice UsbDevice { get; }
Property Value
Type Description
LibUsbDotNet.UsbDevice

VendorId

Declaration
public int VendorId { get; }
Property Value
Type Description
System.Int32

WriteBufferSize

Declaration
public ushort WriteBufferSize { get; }
Property Value
Type Description
System.UInt16

Methods

Close()

Declaration
public override void Close()
Overrides
UsbInterfaceManager.Close()

Dispose()

Declaration
public sealed override void Dispose()
Overrides
UsbInterfaceManager.Dispose()

GetConnectedDeviceDefinitionAsync(CancellationToken)

Declaration
public Task<ConnectedDeviceDefinition> GetConnectedDeviceDefinitionAsync(CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type Name Description
System.Threading.CancellationToken cancellationToken
Returns
Type Description
System.Threading.Tasks.Task<ConnectedDeviceDefinition>

GetProductId(UsbDevice)

Declaration
public static int GetProductId(UsbDevice usbDevice)
Parameters
Type Name Description
LibUsbDotNet.UsbDevice usbDevice
Returns
Type Description
System.Int32

GetVendorId(UsbDevice)

Declaration
public static int GetVendorId(UsbDevice usbDevice)
Parameters
Type Name Description
LibUsbDotNet.UsbDevice usbDevice
Returns
Type Description
System.Int32

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

ReadAsync()

Declaration
public async Task<TransferResult> ReadAsync()
Returns
Type Description
System.Threading.Tasks.Task<TransferResult>

WriteAsync(Byte[])

Declaration
public async Task WriteAsync(byte[] data)
Parameters
Type Name Description
System.Byte[] data
Returns
Type Description
System.Threading.Tasks.Task

Implements

IUsbInterfaceManager
System.IDisposable
In This Article
Back to top Generated by DocFX