public static enum LED.Register extends java.lang.Enum<LED.Register> implements Register
Enum Constant and Description |
---|
MODE
Stores data about a pulse pattern
|
PLAY
Controls playing and pausing an LED pattern
|
STOP
Stops a pattern, can also reset pattern settings
|
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 LED.Register |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static LED.Register[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LED.Register PLAY
public static final LED.Register STOP
public static final LED.Register MODE
public static LED.Register[] values()
for (LED.Register c : LED.Register.values()) System.out.println(c);
public static LED.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