public static enum Gpio.PinConfig extends java.lang.Enum<Gpio.PinConfig>
Enum Constant and Description |
---|
INPUT_NO_PULL
Port is configured as input, no pull-up resistor enabled (high impedance).
|
INPUT_PULL_DOWN
Port is configured as input, pull-down resistor enabled.
|
INPUT_PULL_UP
Port is configured as input, pull-up resistor enabled.
|
OUTPUT
Port is configured as output, no pull-us here.
|
Modifier and Type | Method and Description |
---|---|
static Gpio.PinConfig |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Gpio.PinConfig[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Gpio.PinConfig INPUT_NO_PULL
public static final Gpio.PinConfig INPUT_PULL_DOWN
public static final Gpio.PinConfig INPUT_PULL_UP
public static final Gpio.PinConfig OUTPUT
public static Gpio.PinConfig[] values()
for (Gpio.PinConfig c : Gpio.PinConfig.values()) System.out.println(c);
public static Gpio.PinConfig 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 null