Skip to main content

CameraControllerApiWrapper Class

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

Concrete ICameraControllerProvider backed by the native TinyCLR camera HAL.

public sealed class CameraControllerApiWrapper : ICameraControllerProvider

Constructors

CameraControllerApiWrapper(NativeApi api)

public CameraControllerApiWrapper(NativeApi api)

Wraps the given native API as a provider.

Properties

Api

public NativeApi Api { get; }

The underlying native API descriptor.

Methods

Dispose()

public void Dispose()

Releases the native controller.

SetActiveSettings(CaptureRate captureRate, bool horizontalSyncPolarity, bool verticalSyncPolarity, bool pixelClockPolarity, SynchronizationMode synchronizationMode, ExtendedDataMode extendedDataMode, uint sourceClock)

public void SetActiveSettings(CaptureRate captureRate, bool horizontalSyncPolarity, bool verticalSyncPolarity, bool pixelClockPolarity, SynchronizationMode synchronizationMode, ExtendedDataMode extendedDataMode, uint sourceClock)

Applies a complete set of camera timing/protocol settings. (inherited)

Capture(byte[] data, int offset, int count, int timeoutMillisecond)

public int Capture(byte[] data, int offset, int count, int timeoutMillisecond)

Captures one frame. (inherited)

Returns int

Enable()

public void Enable()

Powers on the capture engine. (inherited)

Disable()

public void Disable()

Powers off the capture engine. (inherited)