Enum CPUState
- All Implemented Interfaces:
Serializable
,Comparable<CPUState>
public enum CPUState extends Enum<CPUState>
SARK CPU States.
-
Enum Constant Summary
Enum Constants Enum Constant Description C_MAIN
Core is doing something withc_main()
entry point.DEAD
Core is dead.FINISHED
Core has finished.IDLE
Core is idle.INITIALISING
Core is preparing to enter service.PAUSED
Core is paused.POWERED_DOWN
Core is powered down.READY
Core is ready for service.RUN_TIME_EXCEPTION
Core has had an RTE and not yet been reset.RUNNING
Core is running user code.SYNC0
Core is waiting forSignal.SYNC0
.SYNC1
Core is waiting forSignal.SYNC1
.WATCHDOG
Core was unresponsive and so was shutdown by the watchdog timer. -
Field Summary
Fields Modifier and Type Field Description int
value
The canonical SARK value for the state. -
Method Summary
Modifier and Type Method Description static CPUState
get(int value)
Get the element for a value.static CPUState
valueOf(String name)
Returns the enum constant of this type with the specified name.static CPUState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
DEAD
Core is dead. -
POWERED_DOWN
Core is powered down. -
RUN_TIME_EXCEPTION
Core has had an RTE and not yet been reset. -
WATCHDOG
Core was unresponsive and so was shutdown by the watchdog timer. -
INITIALISING
Core is preparing to enter service. -
READY
Core is ready for service. -
C_MAIN
Core is doing something withc_main()
entry point. -
RUNNING
Core is running user code. -
SYNC0
Core is waiting forSignal.SYNC0
. -
SYNC1
Core is waiting forSignal.SYNC1
. -
PAUSED
Core is paused. -
FINISHED
Core has finished. -
IDLE
Core is idle. User code may be run on it.
-
-
Field Details
-
value
public final int valueThe canonical SARK value for the state.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
get
Get the element for a value.- Parameters:
value
- The value to look up- Returns:
- The enumeration item it represents
-