public static enum Accelerometer.Register extends java.lang.Enum<Accelerometer.Register> implements Register
Enum Constant and Description |
---|
DATA_ENABLE
Checks motion polling status and enables/disables motion polling
|
DATA_SETTINGS
Sets or retrieves motion polling configuration
|
DATA_VALUE
Stores XYZ motion data.
|
FREE_FALL_ENABLE
Checks and sets movement detection status
|
FREE_FALL_SETTINGS
Sets or retrieves movement detection configuration
|
FREE_FALL_VALUE
Stores movement state, enables/disables movement detection
|
GLOBAL_ENABLE
Checks module enable status and enables/disables module notifications
|
ORIENTATION_ENABLE
Sets or retrieves orientation detection status
|
ORIENTATION_SETTING
Sets or retrieves the configuration for orientation notifications
|
ORIENTATION_VALUE
Stores current orientation, and enables/disables orientation notifications
|
PULSE_ENABLE
Sets or retrieves tap detection status
|
PULSE_SETTING
Sets or retrieves the configuration for tap detection
|
PULSE_STATUS
Stores current tap information and enables/disables tap notifications
|
TRANSIENT_ENABLE
Sets or retrieves shake detection status
|
TRANSIENT_SETTING
Sets or retrieves the configuration for shake detection
|
TRANSIENT_STATUS
Stores current shake information and enables/disables shake notifications
|
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 Accelerometer.Register |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Accelerometer.Register[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Accelerometer.Register GLOBAL_ENABLE
public static final Accelerometer.Register DATA_ENABLE
public static final Accelerometer.Register DATA_SETTINGS
public static final Accelerometer.Register DATA_VALUE
public static final Accelerometer.Register FREE_FALL_ENABLE
public static final Accelerometer.Register FREE_FALL_SETTINGS
public static final Accelerometer.Register FREE_FALL_VALUE
public static final Accelerometer.Register ORIENTATION_ENABLE
public static final Accelerometer.Register ORIENTATION_SETTING
public static final Accelerometer.Register ORIENTATION_VALUE
public static final Accelerometer.Register PULSE_ENABLE
public static final Accelerometer.Register PULSE_SETTING
public static final Accelerometer.Register PULSE_STATUS
public static final Accelerometer.Register TRANSIENT_ENABLE
public static final Accelerometer.Register TRANSIENT_SETTING
public static final Accelerometer.Register TRANSIENT_STATUS
public static Accelerometer.Register[] values()
for (Accelerometer.Register c : Accelerometer.Register.values()) System.out.println(c);
public static Accelerometer.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