Skip to main content

UsbHostControllerApiWrapper Class

NuGet: GHIElectronics.TinyCLR.Devices.UsbHost
Assembly: GHIElectronics.TinyCLR.Devices.UsbHost
Namespace: GHIElectronics.TinyCLR.Devices.UsbHost.Provider

The native API wrapper that implements the USB host controller provider.

public sealed class UsbHostControllerApiWrapper : IUsbHostControllerProvider

Constructors

UsbHostControllerApiWrapper(NativeApi api)

public UsbHostControllerApiWrapper(NativeApi api)

Creates a new wrapper around the given native API.

Properties

Api

public NativeApi Api { get; }

The native API backing this provider.

Methods

Dispose()

public void Dispose()

Releases the native API and disposes the provider.

Enable()

public extern void Enable()

Enables the controller. (inherited)

Disable()

public extern void Disable()

Disables the controller. (inherited)

Events

OnConnectionChangedEvent

public event OnConnectionChanged OnConnectionChangedEvent

The event fired when a device's connection status changes.