public enum MasterBit extends Enum<MasterBit>
| Enum Constant and Description |
|---|
KILL_ALL_MOVES
When set stops all the master's motion immediately, ignoring any
programmed end-of-motion deceleration.
|
| Modifier and Type | Method and Description |
|---|---|
MasterUnsigned |
flagParameter()
Gets enumerator for the flag parameter containing this bit.
|
long |
flagParameterMask()
Gets the mask with a single 1 bit in the position assigned to this bit in the
associated flag parameter.
|
int |
index(MasterName master)
Gets the motor controller's index for the bit for the given master.
|
String |
reference(MasterName master)
Gets the string used to refer to the bit for the given master in AcroBasic.
|
static MasterBit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MasterBit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MasterBit KILL_ALL_MOVES
KILL_ALL_MOTION bits in
the slave axes.
The ACR binary comm protocol allows setting and clearing bits directly via their bit index numbers, but for some reason the only way you can get the value of a bit is to read the corresponding flag parameter word and examine the right bit.
public static MasterBit[] values()
for (MasterBit c : MasterBit.values()) System.out.println(c);
public static MasterBit valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic int index(MasterName master)
master - the master.public String reference(MasterName master)
master - the master.public MasterUnsigned flagParameter()
public long flagParameterMask()
Copyright © 2017 LSST. All rights reserved.