public static enum DcMotorController.DeviceMode extends java.lang.Enum<DcMotorController.DeviceMode>
Enum Constant and Description |
---|
READ_ONLY |
READ_WRITE |
SWITCHING_TO_READ_MODE |
SWITCHING_TO_WRITE_MODE |
WRITE_ONLY |
Modifier and Type | Method and Description |
---|---|
static DcMotorController.DeviceMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DcMotorController.DeviceMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DcMotorController.DeviceMode SWITCHING_TO_READ_MODE
public static final DcMotorController.DeviceMode SWITCHING_TO_WRITE_MODE
public static final DcMotorController.DeviceMode READ_ONLY
public static final DcMotorController.DeviceMode WRITE_ONLY
public static final DcMotorController.DeviceMode READ_WRITE
public static DcMotorController.DeviceMode[] values()
for (DcMotorController.DeviceMode c : DcMotorController.DeviceMode.values()) System.out.println(c);
public static DcMotorController.DeviceMode 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 null