Enum Class SCPCommand
- All Implemented Interfaces:
Serializable
,Comparable<SCPCommand>
,Constable
,CommandCode
The SCP Command codes.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAllocate or Free SDRAM or Routing entries.Deprecated, for removal: This API element is subject to removal in a future version.Application core reset.Application core APLX start.Deprecated.This message is under-documented.Deprecated.This message is under-documented.Get BMP info structures.Turns on or off the machine via BMP.Deprecated.This message is under-documented.Serial flash access.Dropped Packet Reinjection setup.Send Flood-Fill Data.Fill memory.Copy working buffer to flash memory.Erase part of flash memory.Write to flash memory.Get Chip Summary Information.Set an IP tag.Control the LEDs.Read neighbouring chip's memory.Write neighbouring chip's memory.Send a broadcast Nearest-Neighbour packet.Read SDRAM.Remap application core.BMP-only operation.Initialise the router.Deprecated, for removal: This API element is subject to removal in a future version.seeCMD_AS
, which has a superior APISend a Signal.Read/write/erase serial ROM.Get SCAMP Version.Write SDRAM.FPGA control. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SCPCommand
Read FPGA's memory/registers.static final SCPCommand
Write FPGA's memory/registers.final short
The SCAMP encoding. -
Method Summary
Modifier and TypeMethodDescriptionstatic SCPCommand
get
(short value) Convert an encoded value into an enum element.short
getValue()
Get the value of this command.static SCPCommand
Returns the enum constant of this class with the specified name.static SCPCommand[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CMD_VER
Get SCAMP Version. -
CMD_RUN
Deprecated, for removal: This API element is subject to removal in a future version.seeCMD_AS
, which has a superior APIRun at PC. -
CMD_READ
Read SDRAM. -
CMD_WRITE
Write SDRAM. -
CMD_APLX
Deprecated, for removal: This API element is subject to removal in a future version.seeCMD_AS
, which has a superior APIRun via APLX. -
CMD_FILL
Fill memory. -
CMD_REMAP
Remap application core. -
CMD_LINK_READ
Read neighbouring chip's memory. -
CMD_LINK_WRITE
Write neighbouring chip's memory. -
CMD_AR
Application core reset. -
CMD_NNP
Send a broadcast Nearest-Neighbour packet. -
CMD_SIG
Send a Signal. -
CMD_FFD
Send Flood-Fill Data. -
CMD_AS
Application core APLX start. -
CMD_LED
Control the LEDs. -
CMD_IPTAG
Set an IP tag. -
CMD_SROM
Read/write/erase serial ROM. -
CMD_ALLOC
Allocate or Free SDRAM or Routing entries. -
CMD_RTR
Initialise the router. -
CMD_DPRI
Dropped Packet Reinjection setup. -
CMD_INFO
Get Chip Summary Information. -
CMD_BMP_INFO
Get BMP info structures. -
CMD_FLASH_COPY
Copy working buffer to flash memory. BMP-only operation. -
CMD_FLASH_ERASE
Erase part of flash memory. BMP-only operation. -
CMD_FLASH_WRITE
Write to flash memory. BMP-only operation. -
CMD_BMP_SF
Serial flash access. BMP-only operation. -
CMD_BMP_EE
Deprecated.This message is under-documented. Seecmd_ee()
inbmp_cmd.c
for what it does.EEPROM access. BMP-only operation. -
CMD_RESET
BMP-only operation. -
CMD_XILINX
FPGA control. BMP-only operation. -
CMD_BMP_POWER
Turns on or off the machine via BMP. -
CMD_BMP_I2C
Deprecated.This message is under-documented. Seecmd_i2c()
inbmp_cmd.c
for what it does.Access I2C bus. BMP-only operation. -
CMD_BMP_PWM
Deprecated.This message is under-documented. Seeconfigure_pwm()
inbmp_hw.c
for what it does.Configure pulse-width modulation hardware. BMP-only operation.
-
-
Field Details
-
CMD_FPGA_READ
Read FPGA's memory/registers. BMP-only operation.Same as
CMD_LINK_READ
but used differently. -
CMD_FPGA_WRITE
Write FPGA's memory/registers. BMP-only operation.Same as
CMD_LINK_WRITE
but used differently. -
value
public final short valueThe SCAMP encoding.
-
-
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
-
get
Convert an encoded value into an enum element.- Parameters:
value
- The value to convert- Returns:
- The enum element
-
getValue
public short getValue()Description copied from interface:CommandCode
Get the value of this command.- Specified by:
getValue
in interfaceCommandCode
- Returns:
- The encoded value.
-
CMD_AS
, which has a superior API