public static enum GPIO.Register extends java.lang.Enum<GPIO.Register> implements Register
Enum Constant and Description |
---|
CLEAR_DIGITAL_OUTPUT
Clears a digital output pin
|
PIN_CHANGE_NOTIFY |
PIN_CHANGE_NOTIFY_ENABLE |
READ_ANALOG_INPUT_ABS_VOLTAGE
Reads the analog input voltage as an absolute reference
|
READ_ANALOG_INPUT_SUPPLY_RATIO
Reads the analog input voltage as a ratio to the supply voltage
|
READ_DIGITAL_INPUT
Reads the value from a digital input pin
|
SET_DIGITAL_IN_NO_PULL
Clears a digital input pin in with no pull mode
|
SET_DIGITAL_IN_PULL_DOWN
Sets a digital input pin in pull down mode
|
SET_DIGITAL_IN_PULL_UP
Sets a digital input pin in pull up mode
|
SET_DIGITAL_OUTPUT
Sets a digital output pin
|
SET_PIN_CHANGE |
Modifier and Type | Field and Description |
---|---|
static GPIO.Register[] |
values |
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 GPIO.Register |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static GPIO.Register[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GPIO.Register SET_DIGITAL_OUTPUT
public static final GPIO.Register CLEAR_DIGITAL_OUTPUT
public static final GPIO.Register SET_DIGITAL_IN_PULL_UP
public static final GPIO.Register SET_DIGITAL_IN_PULL_DOWN
public static final GPIO.Register SET_DIGITAL_IN_NO_PULL
public static final GPIO.Register READ_ANALOG_INPUT_ABS_VOLTAGE
public static final GPIO.Register READ_ANALOG_INPUT_SUPPLY_RATIO
public static final GPIO.Register READ_DIGITAL_INPUT
public static final GPIO.Register SET_PIN_CHANGE
public static final GPIO.Register PIN_CHANGE_NOTIFY
public static final GPIO.Register PIN_CHANGE_NOTIFY_ENABLE
public static GPIO.Register[] values
public static GPIO.Register[] values()
for (GPIO.Register c : GPIO.Register.values()) System.out.println(c);
public static GPIO.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