public static enum Logging.Register extends java.lang.Enum<Logging.Register> implements Register
Enum Constant and Description |
---|
ADD_TRIGGER
Adds a trigger to log
|
CIRCULAR_BUFFER |
ENABLE
Start and stops the logging
|
LENGTH
How many log entries are available
|
READOUT
Starts a log download
|
READOUT_NOTIFY
Receives log entries from the board
|
READOUT_PROGRESS
Indicates download progress
|
REMOVE_ALL_TRIGGERS |
REMOVE_ENTRIES |
REMOVE_TRIGGER
Removes a previously logged trigger
|
TIME
Internal tick counter in the MetaWear logging module
|
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 Logging.Register |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Logging.Register[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Logging.Register ENABLE
public static final Logging.Register ADD_TRIGGER
public static final Logging.Register REMOVE_TRIGGER
public static final Logging.Register TIME
public static final Logging.Register LENGTH
public static final Logging.Register READOUT
public static final Logging.Register READOUT_NOTIFY
public static final Logging.Register READOUT_PROGRESS
public static final Logging.Register REMOVE_ENTRIES
public static final Logging.Register REMOVE_ALL_TRIGGERS
public static final Logging.Register CIRCULAR_BUFFER
public static Logging.Register[] values()
for (Logging.Register c : Logging.Register.values()) System.out.println(c);
public static Logging.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