|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.cesys.cebo.cebomsr.Counter
public final class Counter
Offers functionality for counter periphery. Instances can be retrieved calling
getCounters() of the respective Device
instance.
Nested Class Summary | |
---|---|
static class |
Counter.CounterConfig
The possible trigger configuration values. |
Method Summary | |
---|---|
Counter.CounterConfig |
getConfig()
Request configuration of the counter. |
java.lang.String |
getName()
Returns name of the component. |
boolean |
isEnabled()
Get current counter state. |
long |
read()
Read current counter value. |
void |
reset()
Reset counter to 0. |
void |
setConfig(Counter.CounterConfig counterConfig)
Define behavior of the counter. |
void |
setEnabled(boolean enable)
Enable or disable counter. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public void reset() throws java.io.IOException
java.io.IOException
public void setEnabled(boolean enable) throws java.io.IOException
enable
- State to set.
java.io.IOException
public boolean isEnabled() throws java.io.IOException
java.io.IOException
public void setConfig(Counter.CounterConfig counterConfig) throws java.io.IOException
counterConfig
- Use one of the values from Counter::CounterConfig.
java.io.IOException
public Counter.CounterConfig getConfig() throws java.io.IOException
java.io.IOException
public long read() throws java.io.IOException
java.io.IOException
public java.lang.String getName()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |