public static enum Macro.Register extends java.lang.Enum<Macro.Register> implements Register
Enum Constant and Description |
---|
ADD_COMMAND
Adds a command under the current macro
|
ADD_MACRO
Start point for adding a macro
|
ENABLE
Enable / Disable the module
|
END_MACRO
End point for adding a macro
|
ERASE_ALL
Erases all the stored macros
|
EXEC_MACRO
Executes a macro
|
MACRO_NOTIFY
Signals a macro has finished
|
MACRO_NOTIFY_ENABLE
Enables / Disables completed notifications
|
PARTIAL_COMMAND
For commands that are longer than 18 bytes
|
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 Macro.Register |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Macro.Register[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Macro.Register ENABLE
public static final Macro.Register ADD_MACRO
public static final Macro.Register ADD_COMMAND
public static final Macro.Register END_MACRO
public static final Macro.Register EXEC_MACRO
public static final Macro.Register MACRO_NOTIFY_ENABLE
public static final Macro.Register MACRO_NOTIFY
public static final Macro.Register ERASE_ALL
public static final Macro.Register PARTIAL_COMMAND
public static Macro.Register[] values()
for (Macro.Register c : Macro.Register.values()) System.out.println(c);
public static Macro.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