public enum UsbGpioCommand extends java.lang.Enum<UsbGpioCommand>
| Enum Constant and Description |
|---|
AdcRead
Read analog input value as value in the range 0 - 1023.
|
GpioClear
Clear a GPIO.
|
GpioIoDirection
Set all GPIO directions as input (1) or output (0) via hex-encoded
bitmask.
|
GpioIoMask
Set the GPIO mask for future writeall or
iodir
commands. |
GpioRead
Clear a GPIO.
|
GpioReadAll
Read all GPIO values as a hex-encoded bitmask (the iodir command must be
sent prior).
|
GpioSet
Clear a GPIO.
|
GpioWriteAll
Write all GPIO values as a hex-encoded bitmask (the iodir command must be
sent prior).
|
IdGet
Get the user-configurable 8-character ID.
|
IdSet
Set the user-configurable 8-character ID.
|
Version
Get the version firmware.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCommand()
Get the command text value.
|
static UsbGpioCommand |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static UsbGpioCommand[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UsbGpioCommand Version
public static final UsbGpioCommand IdGet
public static final UsbGpioCommand IdSet
public static final UsbGpioCommand GpioClear
public static final UsbGpioCommand GpioRead
public static final UsbGpioCommand GpioSet
public static final UsbGpioCommand GpioIoMask
iodir
commands.public static final UsbGpioCommand GpioIoDirection
public static final UsbGpioCommand GpioReadAll
public static final UsbGpioCommand GpioWriteAll
public static final UsbGpioCommand AdcRead
public static UsbGpioCommand[] values()
for (UsbGpioCommand c : UsbGpioCommand.values()) System.out.println(c);
public static UsbGpioCommand 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 java.lang.String getCommand()