Skip to main content

WatchdogControllerApiWrapper Class

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

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.

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; }

True once the watchdog is running. (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)

Disable()

public extern void Disable()

Disables the watchdog where the hardware permits it. (inherited)

Reset()

public extern void Reset()

Re-arms the watchdog. (inherited)