Enum Class UsbGpioCommand
- All Implemented Interfaces:
Serializable,Comparable<UsbGpioCommand>,Constable
A USB GPIO serial command verb.
- Version:
- 1.0
- Author:
- matt
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRead analog input value as value in the range 0 - 1023.Clear a GPIO.Set all GPIO directions as input (1) or output (0) via hex-encoded bitmask.Set the GPIO mask for future writeall oriodircommands.Clear a GPIO.Read all GPIO values as a hex-encoded bitmask (the iodir command must be sent prior).Clear a GPIO.Write all GPIO values as a hex-encoded bitmask (the iodir command must be sent prior).Get the user-configurable 8-character ID.Set the user-configurable 8-character ID.Get the version firmware. -
Method Summary
Modifier and TypeMethodDescriptionGet the command text value.static UsbGpioCommandReturns the enum constant of this class with the specified name.static UsbGpioCommand[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Version
Get the version firmware. -
IdGet
Get the user-configurable 8-character ID. -
IdSet
Set the user-configurable 8-character ID. -
GpioClear
Clear a GPIO. -
GpioRead
Clear a GPIO. -
GpioSet
Clear a GPIO. -
GpioIoMask
Set the GPIO mask for future writeall oriodircommands. -
GpioIoDirection
Set all GPIO directions as input (1) or output (0) via hex-encoded bitmask. -
GpioReadAll
Read all GPIO values as a hex-encoded bitmask (the iodir command must be sent prior). -
GpioWriteAll
Write all GPIO values as a hex-encoded bitmask (the iodir command must be sent prior). -
AdcRead
Read analog input value as value in the range 0 - 1023.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getCommand
Get the command text value.- Returns:
- the command text value
-