Skip to main content

WatchdogControllerApiWrapper Class

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

Concrete IWatchdogControllerProvider backed by the native TinyCLR HAL.

public sealed class WatchdogControllerApiWrapper : IWatchdogControllerProvider

Constructors

WatchdogControllerApiWrapper(NativeApi api)

public WatchdogControllerApiWrapper(NativeApi api)

Wraps the given native API as a provider.

ParameterTypeDescription
apiNativeApi

Properties

Api

public NativeApi Api { get; }

The underlying native API descriptor.

GetMaxTimeout

public extern uint GetMaxTimeout { get; }

Largest legal timeout in milliseconds. (inherited)

IsEnabled

public extern bool IsEnabled { get; }

Fetches the value of the IsEnabled property (inherited)

Methods

Dispose()

public void Dispose()

Releases the native controller.

Enable(uint timeout)

public extern void Enable(uint timeout)

Starts the watchdog with the given timeout in milliseconds. (inherited)

ParameterTypeDescription
timeoutuint

Disable()

public extern void Disable()

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

Reset()

public extern void Reset()

Sets the enumerator to its initial position, which is before the first element in the collection. (inherited)