Package com.galil
Enum Class Gclib.Interrupt.Type
- All Implemented Interfaces:
Serializable,Comparable<Gclib.Interrupt.Type>,Constable
- Enclosing class:
- Gclib.Interrupt
Flags that can be combined to select which interrupts should be enabled by
set_interrupts().
Also used to categorize interrupts such as MotionComplete which correspond to a range of status bytes.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionMust be reenabled withset_interrupts()after each occurrence.Must be reenabled withset_interrupts()after occurrence.Must be reenabled withset_interrupts()after each occurrence.If multiple threads are running, this interrupt is only triggered when all threads are finished. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionintern()toString()static Gclib.Interrupt.TypeReturns the enum constant of this class with the specified name.static Gclib.Interrupt.Type[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NoInterrupts
-
UserInterrupt
-
MotionComplete
-
AllAxesMotionComplete
-
ExcessPositionError
Must be reenabled withset_interrupts()after occurrence. -
LimitSwitch
Must be reenabled withset_interrupts()after each occurrence. -
WatchdogTimer
-
ProgramStopped
If multiple threads are running, this interrupt is only triggered when all threads are finished. -
CommandDone
-
DigitalInputLow
Must be reenabled withset_interrupts()after each occurrence. -
AllInterrupts
-
-
Field Details
-
value
public final int value
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
intern
-
toString
- Overrides:
toStringin classEnum<Gclib.Interrupt.Type>
-