Skip to main content

Class Counter

Represents a class that counts edges on an interrupt-capable input port

Assembly: Meadow.dll
View Source
Declaration
public class Counter : ICounter, IDisposable

Implements:
Meadow.Hardware.ICounter, System.IDisposable

Properties

Enabled

Enables or disables the counter

View Source
Declaration
public bool Enabled { get; set; }

Count

Returns the current Counter value

View Source
Declaration
public long Count { get; }

TransitionType

The transition type(s) to count

View Source
Declaration
public InterruptMode TransitionType { get; }

Methods

Reset()

Resets the Count to zero

View Source
Declaration
public void Reset()

Dispose(bool)

Releases disposable resources

View Source
Declaration
protected virtual void Dispose(bool disposing)
Parameters
TypeName
System.Booleandisposing

Dispose()

Disposes the current instance

View Source
Declaration
public void Dispose()

Implements