Class Counter
Represents a class that counts edges on an interrupt-capable input port
Assembly: Meadow.dll
View Source
public class Counter : ICounter, IDisposable
Implements:
Meadow.Hardware.ICounter, System.IDisposable
Properties
Enabled
Enables or disables the counter
View Source
public bool Enabled { get; set; }
Count
Returns the current Counter value
View Source
public long Count { get; }
TransitionType
The transition type(s) to count
View Source
public InterruptMode TransitionType { get; }
Methods
Reset()
Resets the Count to zero
View Source
public void Reset()
Dispose(bool)
Releases disposable resources
View Source
protected virtual void Dispose(bool disposing)
Parameters
Type | Name |
---|---|
System.Boolean | disposing |
Dispose()
Disposes the current instance
View Source
public void Dispose()
Implements
- Meadow.Hardware.ICounter
System.IDisposable