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.
| Parameter | Type | Description |
|---|---|---|
api | NativeApi |
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)
| Parameter | Type | Description |
|---|---|---|
captureRate | CaptureRate | |
horizontalSyncPolarity | bool | |
verticalSyncPolarity | bool | |
pixelClockPolarity | bool | |
synchronizationMode | SynchronizationMode | |
extendedDataMode | ExtendedDataMode | |
sourceClock | uint |
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)
| Parameter | Type | Description |
|---|---|---|
data | byte[] | |
offset | int | |
count | int | |
timeoutMillisecond | int |
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)