Enum SCPCommand
- All Implemented Interfaces:
Serializable
,Comparable<SCPCommand>
,CommandCode
public enum SCPCommand extends Enum<SCPCommand> implements CommandCode
The SCP Command codes.
-
Enum Constant Summary
Enum Constants Enum Constant Description CMD_ALLOC
Allocate or Free SDRAM or Routing entries.CMD_APLX
Deprecated, for removal: This API element is subject to removal in a future version.seeCMD_AS
, which has a superior APICMD_AR
Application core reset.CMD_AS
Application core APLX start.CMD_BMP_EE
Deprecated.This message is under-documented.CMD_BMP_I2C
Deprecated.This message is under-documented.CMD_BMP_INFO
Get BMP info structures.CMD_BMP_POWER
Turns on or off the machine via BMP.CMD_BMP_PWM
Deprecated.This message is under-documented.CMD_BMP_SF
Serial flash access.CMD_DPRI
Dropped Packet Reinjection setup.CMD_FFD
Send Flood-Fill Data.CMD_FILL
Fill memory.CMD_FLASH_COPY
Copy working buffer to flash memory.CMD_FLASH_ERASE
Erase part of flash memory.CMD_FLASH_WRITE
Write to flash memory.CMD_INFO
Get Chip Summary Information.CMD_IPTAG
Set an IP tag.CMD_LED
Control the LEDs.CMD_LINK_READ
Read neighbouring chip's memory.CMD_LINK_WRITE
Write neighbouring chip's memory.CMD_NNP
Send a broadcast Nearest-Neighbour packet.CMD_READ
Read SDRAM.CMD_REMAP
Remap application core.CMD_RESET
BMP-only operation.CMD_RTR
Initialise the router.CMD_RUN
Deprecated, for removal: This API element is subject to removal in a future version.seeCMD_AS
, which has a superior APICMD_SIG
Send a Signal.CMD_SROM
Read/write/erase serial ROM.CMD_VER
Get SCAMP Version.CMD_WRITE
Write SDRAM.CMD_XILINX
FPGA control. -
Field Summary
Fields Modifier and Type Field Description static SCPCommand
CMD_FPGA_READ
Read FPGA's memory/registers.static SCPCommand
CMD_FPGA_WRITE
Write FPGA's memory/registers.short
value
The SCAMP encoding. -
Method Summary
Modifier and Type Method Description static SCPCommand
get(short value)
Convert an encoded value into an enum element.short
getValue()
Get the value of this command.static SCPCommand
valueOf(String name)
Returns the enum constant of this type with the specified name.static SCPCommand[]
values()
Returns an array containing the constants of this enum type, 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 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
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.
-