public static enum Timer.Register extends java.lang.Enum<Timer.Register> implements Register
Enum Constant and Description |
---|
ENABLE
Enables / Disables the module
|
REMOVE
Removes a timer from the board
|
START
Starts a timer
|
STOP
Stops a timer
|
TIMER_ENTRY
Timer configuration
|
TIMER_NOTIFY
Receives timer notifications
|
TIMER_NOTIFY_ENABLE
Enables / Disables notifications from a timer
|
Modifier and Type | Method and Description |
---|---|
Module |
module()
Get the module the register belongs to
|
void |
notifyCallbacks(java.util.Collection<MetaWearController.ModuleCallbacks> callbacks,
byte[] data)
Trigger the appropriate callback when a read or value change occurs on
the register
|
static Timer.Register |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Timer.Register[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Timer.Register ENABLE
public static final Timer.Register TIMER_ENTRY
public static final Timer.Register START
public static final Timer.Register STOP
public static final Timer.Register REMOVE
public static final Timer.Register TIMER_NOTIFY
public static final Timer.Register TIMER_NOTIFY_ENABLE
public static Timer.Register[] values()
for (Timer.Register c : Timer.Register.values()) System.out.println(c);
public static Timer.Register valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic Module module()
Register
public void notifyCallbacks(java.util.Collection<MetaWearController.ModuleCallbacks> callbacks, byte[] data)
Register
notifyCallbacks
in interface Register
callbacks
- Callbacks to triggerdata
- Data received from the register