public static enum Debug.Register extends java.lang.Enum<Debug.Register> implements Register
Enum Constant and Description |
---|
DELAYED_RESET
Reset after garbage collection has been performed
|
GAP_DISCONNECT
Have the board initiate a disconnect event
|
JUMP_TO_BOOTLOADER
Switch to bootloader mode
|
RESET_DEVICE
Used to restart the board
|
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 Debug.Register |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Debug.Register[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Debug.Register RESET_DEVICE
public static final Debug.Register JUMP_TO_BOOTLOADER
public static final Debug.Register DELAYED_RESET
public static final Debug.Register GAP_DISCONNECT
public static Debug.Register[] values()
for (Debug.Register c : Debug.Register.values()) System.out.println(c);
public static Debug.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