public static enum Event.Register extends java.lang.Enum<Event.Register> implements Register
Enum Constant and Description |
---|
ADD_ENTRY
Add a command to
|
EVENT_COMMAND
Set the bytes of the command
|
EVENT_ENABLE
Enable the module
|
REMOVE_ALL_ENTRIES |
REMOVE_ENTRY
Remove a command entry
|
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 Event.Register |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Event.Register[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Event.Register EVENT_ENABLE
public static final Event.Register ADD_ENTRY
public static final Event.Register EVENT_COMMAND
public static final Event.Register REMOVE_ENTRY
public static final Event.Register REMOVE_ALL_ENTRIES
public static Event.Register[] values()
for (Event.Register c : Event.Register.values()) System.out.println(c);
public static Event.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