public enum ProgramBit extends Enum<ProgramBit>
| Enum Constant and Description |
|---|
PROGRAM_DWELLING
When set it indicates that the associated program is dwelling, that is,
sleeping for a specific time.
|
PROGRAM_INHIBITED
When set it indicates that the associated program is inhibited, that is,
executing an INH command.
|
PROGRAM_RUNNING
When set it indicates that the associated program is running, that is, execution
has not terminated.
|
| Modifier and Type | Method and Description |
|---|---|
ProgramUnsigned |
flagParameter()
Gets the 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(ProgramName program)
Gets the motor controller's index for the bit for the given program.
|
String |
reference(ProgramName program)
Gets the string used to refer to the bit for the given program in AcroBasic.
|
static ProgramBit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ProgramBit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ProgramBit PROGRAM_RUNNING
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 final ProgramBit PROGRAM_DWELLING
public static final ProgramBit PROGRAM_INHIBITED
public static ProgramBit[] values()
for (ProgramBit c : ProgramBit.values()) System.out.println(c);
public static ProgramBit 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(ProgramName program)
program - the program.public String reference(ProgramName program)
program - the program.public ProgramUnsigned flagParameter()
public long flagParameterMask()
Copyright © 2017 LSST. All rights reserved.