Table of Contents

Class HighResTimer

Namespace
nanoFramework.Hardware.Esp32
Assembly
nanoFramework.Hardware.Esp32.dll

The class encapsulates the ESP32 High Resolution Timer API.

public class HighResTimer : IDisposable
Inheritance
HighResTimer
Implements
Inherited Members
Extension Methods

Constructors

HighResTimer()

Create a High Resolution Timer. A maximum of 10 timers can be created.

public HighResTimer()

Methods

Dispose()

Dispose HighResTimer

public void Dispose()

Dispose(bool)

Dispose(bool disposing)

protected virtual void Dispose(bool disposing)

Parameters

disposing bool

Finalize()

Finalizer

protected override void Finalize()

GetCurrent()

Returns the number of micro seconds since boot

public static ulong GetCurrent()

Returns

ulong

StartOnePeriodic(ulong)

Start a periodic timer.

public void StartOnePeriodic(ulong period_us)

Parameters

period_us ulong

Period between firing timer events.

StartOneShot(ulong)

Start a one shot timer. Once the timer has expired the timer event will be fired.

public void StartOneShot(ulong timeout_us)

Parameters

timeout_us ulong

Timeout in mirco seconds

Stop()

Stop the Timer.

public void Stop()

Events

OnHighResTimerExpired

Event raised when a HighRes timer expires.

public event HighResTimerExpiredEventHandler OnHighResTimerExpired

Event Type

HighResTimerExpiredEventHandler