Enum Constant | Description |
---|---|
INPUT |
Indicates that GPIO will be used as input.
|
INTERRUPT_EDGE_BOTH |
Indicates that GPIO will be used as an interrupt on both rising and
falling edges.
|
INTERRUPT_EDGE_FALLING |
Indicates that GPIO will be used as an interrupt on falling edge.
|
INTERRUPT_EDGE_RISING |
Indicates that GPIO will be used as an interrupt on rising edge.
|
OUTPUT_HIGH |
Indicates that GPIO will be used as output and the output level will be
set high.
|
OUTPUT_LOW |
Indicates that GPIO will be used as output and the output level will be
set low.
|
Modifier and Type | Method | Description |
---|---|---|
static GPIOMode |
getById(int id) |
Returns the
GPIOMode associated to the provided mode ID. |
java.lang.String |
getDescription() |
Returns the GPIO mode description.
|
int |
getId() |
Returns the GPIO mode ID.
|
static GPIOMode |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static GPIOMode[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GPIOMode INPUT
public static final GPIOMode OUTPUT_HIGH
public static final GPIOMode OUTPUT_LOW
public static final GPIOMode INTERRUPT_EDGE_RISING
public static final GPIOMode INTERRUPT_EDGE_FALLING
public static final GPIOMode INTERRUPT_EDGE_BOTH
public static GPIOMode[] values()
for (GPIOMode c : GPIOMode.values()) System.out.println(c);
public static GPIOMode 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 int getId()
public java.lang.String getDescription()
public static GPIOMode getById(int id)
GPIOMode
associated to the provided mode ID.id
- The ID of the GPIOMode
to retrieve.GPIOMode
associated to the provided mode ID.