public static enum ModernRoboticsI2cGyro.Command extends java.lang.Enum<ModernRoboticsI2cGyro.Command>
Enum Constant and Description |
---|
CALIBRATE |
NORMAL |
RESET_Z_AXIS |
UNKNOWN |
WRITE_EEPROM |
Modifier and Type | Field and Description |
---|---|
byte |
bVal |
Modifier and Type | Method and Description |
---|---|
static ModernRoboticsI2cGyro.Command |
fromByte(byte bVal) |
static ModernRoboticsI2cGyro.Command |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ModernRoboticsI2cGyro.Command[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ModernRoboticsI2cGyro.Command NORMAL
public static final ModernRoboticsI2cGyro.Command CALIBRATE
public static final ModernRoboticsI2cGyro.Command RESET_Z_AXIS
public static final ModernRoboticsI2cGyro.Command WRITE_EEPROM
public static final ModernRoboticsI2cGyro.Command UNKNOWN
public static ModernRoboticsI2cGyro.Command[] values()
for (ModernRoboticsI2cGyro.Command c : ModernRoboticsI2cGyro.Command.values()) System.out.println(c);
public static ModernRoboticsI2cGyro.Command 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 static ModernRoboticsI2cGyro.Command fromByte(byte bVal)