Enum Constant | Description |
---|---|
HIGH |
Indicates that GPIO value is high.
|
LOW |
Indicates that GPIO value is low.
|
Modifier and Type | Method | Description |
---|---|---|
static GPIOValue |
getById(int id) |
Returns the
GPIOValue associated to the provided mode ID. |
java.lang.String |
getDescription() |
Returns the GPIO value description.
|
int |
getValue() |
Returns the value of the
GPIOValue . |
static GPIOValue |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static GPIOValue[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GPIOValue LOW
public static final GPIOValue HIGH
public static GPIOValue[] values()
for (GPIOValue c : GPIOValue.values()) System.out.println(c);
public static GPIOValue 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 getValue()
GPIOValue
.GPIOValue
.public java.lang.String getDescription()
public static GPIOValue getById(int id)
GPIOValue
associated to the provided mode ID.id
- The ID of the GPIOValue
to retrieve.GPIOValue
associated to the provided mode ID.