Source code for spinnman.messages.scp.enums.scp_command

# Copyright (c) 2014 The University of Manchester
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

from enum import Enum


[docs]class SCPCommand(Enum): """ The SCP Commands. """ CMD_VER = (0, "Get SCAMP Version") CMD_RUN = 1 CMD_READ = (2, "Read SDRAM") CMD_WRITE = (3, "Write SDRAM") CMD_APLX = 4 CMD_FILL = 5 CMD_REMAP = 16 CMD_LINK_READ = (17, "Read neighbouring chip's memory.") CMD_LINK_WRITE = (18, "Write neighbouring chip's memory.") CMD_AR = 19 CMD_NNP = (20, "Send a Nearest-Neighbour packet") CMD_APP_COPY_RUN = (21, "Copy a binary from an adjacent chip and start it") CMD_SIG = (22, "Send a Signal") CMD_FFD = (23, "Send Flood-Fill Data") CMD_AS = 24 CMD_LED = (25, "Control the LEDs") CMD_IPTAG = (26, "Set an IPTAG") CMD_SROM = 27 CMD_ALLOC = (28, "Allocate or Free SDRAM or Routing entries") CMD_RTR = (29, "Initialise the router") CMD_DPRI = (30, "Dropped Packet Reinjection setup") CMD_INFO = (31, "Get Chip Summary Information") CMD_SYNC = (32, "Control sending of synchronization messages") CMD_BMP_INFO = (48, "Get BMP info structures") CMD_FLASH_COPY = 49 CMD_FLASH_ERASE = 50 CMD_FLASH_WRITE = 51 CMD_RESET = 55 CMD_BMP_POWER = (57, "Turns on or off the machine via BMP") CMD_TUBE = 64 def __new__(cls, value, doc=""): # pylint: disable=protected-access, unused-argument obj = object.__new__(cls) obj._value_ = value return obj def __init__(self, value, doc=""): self._value_ = value self.__doc__ = doc