public static enum Haptic.Register extends java.lang.Enum<Haptic.Register> implements Register
Enum Constant and Description |
---|
PULSE
Starts pulsing a buzzer or motor
|
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 Haptic.Register |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Haptic.Register[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Haptic.Register PULSE
public static Haptic.Register[] values()
for (Haptic.Register c : Haptic.Register.values()) System.out.println(c);
public static Haptic.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