public abstract class CounterBase extends java.lang.Object implements CounterSource
| Modifier and Type | Class and Description |
|---|---|
static class |
CounterBase.EncodingType
Possible Encoding types
|
| Modifier and Type | Field and Description |
|---|---|
protected int |
m_index |
| Constructor and Description |
|---|
CounterBase() |
| Modifier and Type | Method and Description |
|---|---|
int |
get()
Read the current counter value.
|
abstract int |
getCount()
Read the current counter value.
|
(package private) abstract boolean |
getDirection()
Determine which direction the counter is going
|
int |
getFPGAIndex() |
(package private) abstract double |
getPeriod()
Get the time between the last two edges counted
|
(package private) abstract boolean |
getStopped()
Determine if the counter is not moving
|
abstract void |
reset()
Reset the count to zero
|
(package private) abstract void |
setMaxPeriod(double max)
Set the maximum time between edges to be considered stalled
|
public int getFPGAIndex()
public int get()
public abstract int getCount()
getCount in interface CounterSourcepublic abstract void reset()
reset in interface CounterSourceabstract double getPeriod()
abstract void setMaxPeriod(double max)
max - the maximum period in secondsabstract boolean getStopped()
abstract boolean getDirection()