Class RouterInit
java.lang.Object
uk.ac.manchester.spinnaker.messages.sdp.SpinnakerRequest
uk.ac.manchester.spinnaker.messages.scp.SCPRequest<EmptyResponse>
uk.ac.manchester.spinnaker.messages.scp.RouterInit
- All Implemented Interfaces:
SerializableMessage
A request to initialise the router on a chip. There is no response payload.
Ultimately handled by rtr_mc_load() in sark_hw.c (via
cmd_rtr() in scamp-cmd.c).
-
Field Summary
Fields inherited from class uk.ac.manchester.spinnaker.messages.scp.SCPRequest
argument1, argument2, argument3, BOOT_CHIP, BOOT_MONITOR_CORE, data, NO_DATA, scpRequestHeaderFields inherited from class uk.ac.manchester.spinnaker.messages.sdp.SpinnakerRequest
sdpHeader -
Constructor Summary
ConstructorsConstructorDescriptionRouterInit(HasChipLocation chip, int numEntries, MemoryLocation tableAddress, int baseIndex, AppID appID) -
Method Summary
Modifier and TypeMethodDescriptiongetSCPResponse(ByteBuffer buffer) Parse the response to this message.Methods inherited from class uk.ac.manchester.spinnaker.messages.scp.SCPRequest
addToBufferMethods inherited from class uk.ac.manchester.spinnaker.messages.sdp.SpinnakerRequest
getMessageData
-
Constructor Details
-
RouterInit
public RouterInit(HasChipLocation chip, int numEntries, MemoryLocation tableAddress, int baseIndex, AppID appID) - Parameters:
chip- The coordinates of the chip to clear the router ofnumEntries- The number of entries in the table (more than 0)tableAddress- The allocated address containing the data to init the router from.baseIndex- The base index in the router table where the entries are to be placed.appID- The ID of the application with which to associate the routes.- Throws:
IllegalArgumentException- If a bad address or entry count is given
-
-
Method Details
-
getSCPResponse
Description copied from class:SCPRequestParse the response to this message.- Specified by:
getSCPResponsein classSCPRequest<EmptyResponse>- Parameters:
buffer- The buffer to parse.- Returns:
- The message response.
- Throws:
UnexpectedResponseCodeException
-