public static enum Settings.Register extends java.lang.Enum<Settings.Register> implements Register
Enum Constant and Description |
---|
ADVERTISING_INTERVAL
Advertisement parameters
|
DELETE_BOND
Sets bonding state on disconnect
|
DEVICE_NAME
Sets / Reads the device name
|
INIT_BOND
Initiates the Bluetooth bonding process
|
PARTIAL_SCAN_RESPONSE |
SCAN_RESPONSE |
START_ADVERTISEMENT
Starts an advertisement
|
TX_POWER
Tx Power
|
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 Settings.Register |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Settings.Register[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Settings.Register DEVICE_NAME
public static final Settings.Register ADVERTISING_INTERVAL
public static final Settings.Register TX_POWER
public static final Settings.Register DELETE_BOND
public static final Settings.Register START_ADVERTISEMENT
public static final Settings.Register INIT_BOND
public static final Settings.Register SCAN_RESPONSE
public static final Settings.Register PARTIAL_SCAN_RESPONSE
public static Settings.Register[] values()
for (Settings.Register c : Settings.Register.values()) System.out.println(c);
public static Settings.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