public static enum CANSD540.StopMode extends java.lang.Enum<CANSD540.StopMode>
Enum Constant and Description |
---|
Brake
Motor resist motion when it is stopped.
|
Coast
Allow the motor to freely turn once stopped.
|
Modifier and Type | Method and Description |
---|---|
static int |
valueOf(CANSD540.StopMode stopMode) |
static CANSD540.StopMode |
valueOf(int value) |
static CANSD540.StopMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CANSD540.StopMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CANSD540.StopMode Coast
public static final CANSD540.StopMode Brake
public static CANSD540.StopMode[] values()
for (CANSD540.StopMode c : CANSD540.StopMode.values()) System.out.println(c);
public static CANSD540.StopMode 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 int valueOf(CANSD540.StopMode stopMode)
public static CANSD540.StopMode valueOf(int value)