Skip to main content

CameraControllerApiWrapper Class

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

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.

ParameterTypeDescription
apiNativeApi

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)

ParameterTypeDescription
captureRateCaptureRate
horizontalSyncPolaritybool
verticalSyncPolaritybool
pixelClockPolaritybool
synchronizationModeSynchronizationMode
extendedDataModeExtendedDataMode
sourceClockuint

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

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

Capture timestamps of count edges on the pin. (inherited)

ParameterTypeDescription
databyte[]
offsetint
countint
timeoutMillisecondint

Returns int

Enable()

public void Enable()

Re-enables interrupts after a matching Disable. (inherited)

Disable()

public void Disable()

Disables interrupts on the current core. Always pair with Enable. (inherited)