Interface IUsbInterfaceManager
Manages USB interfaces
Inherited Members
System.IDisposable.Dispose()
Namespace: Usb.Net
Assembly: Usb.Net.dll
Syntax
public interface IUsbInterfaceManager : IDisposable
Properties
IsInitialized
Whether or not the manager is initialized
Declaration
bool IsInitialized { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
ReadBufferSize
Maximum read buffer size
Declaration
ushort ReadBufferSize { get; }
Property Value
Type | Description |
---|---|
System.UInt16 |
ReadUsbInterface
Usb interface for reading from the device. Note: this will default to the first read Bulk interface. If this is incorrect, inspect the UsbInterfaces property.
Declaration
IUsbInterface ReadUsbInterface { get; set; }
Property Value
Type | Description |
---|---|
IUsbInterface |
UsbInterfaces
Declaration
IList<IUsbInterface> UsbInterfaces { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IList<IUsbInterface> |
WriteBufferSize
Maximum write buffer size
Declaration
ushort WriteBufferSize { get; }
Property Value
Type | Description |
---|---|
System.UInt16 |
WriteUsbInterface
Usb interface for writing to the device. Note: this will default to the first write Bulk interface. If this is incorrect, inspect the UsbInterfaces property.
Declaration
IUsbInterface WriteUsbInterface { get; set; }
Property Value
Type | Description |
---|---|
IUsbInterface |
Methods
Close()
Close the manager
Declaration
void Close()
GetConnectedDeviceDefinitionAsync(CancellationToken)
TODO: This shouldn't be here. Don't use this
Declaration
Task<ConnectedDeviceDefinition> GetConnectedDeviceDefinitionAsync(CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
System.Threading.CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<ConnectedDeviceDefinition> |
InitializeAsync(CancellationToken)
Initialize the manager
Declaration
Task InitializeAsync(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 |