Class FloodFillData
java.lang.Object
uk.ac.manchester.spinnaker.messages.sdp.SpinnakerRequest
uk.ac.manchester.spinnaker.messages.scp.SCPRequest<EmptyResponse>
uk.ac.manchester.spinnaker.messages.scp.FloodFillData
- All Implemented Interfaces:
SerializableMessage
public class FloodFillData extends SCPRequest<EmptyResponse>
A request to flood fill some data. There is no response payload.
Handled by cmd_ffd()
in scamp-cmd.c
(which sends many
messages to actually move the data, handled by nn_cmd_fbs()
,
nn_cmd_fbd()
and nn_cmd_fbe()
on their receiving cores).
- See Also:
FloodFillStart
,FloodFillEnd
-
Field Summary
Fields inherited from class uk.ac.manchester.spinnaker.messages.scp.SCPRequest
argument1, argument2, argument3, BOOT_CHIP, BOOT_MONITOR_CORE, data, NO_DATA, scpRequestHeader
-
Constructor Summary
Constructors Constructor Description FloodFillData(byte nearestNeighbourID, int blockNumber, MemoryLocation baseAddress, byte[] data)
FloodFillData(byte nearestNeighbourID, int blockNumber, MemoryLocation baseAddress, byte[] data, int offset, int length)
FloodFillData(byte nearestNeighbourID, int blockNumber, MemoryLocation baseAddress, ByteBuffer data)
-
Method Summary
Modifier and Type Method Description EmptyResponse
getSCPResponse(ByteBuffer buffer)
Parse the response to this message.Methods inherited from class uk.ac.manchester.spinnaker.messages.sdp.SpinnakerRequest
getMessageData
-
Constructor Details
-
FloodFillData
public FloodFillData(byte nearestNeighbourID, int blockNumber, MemoryLocation baseAddress, byte[] data)- Parameters:
nearestNeighbourID
- The ID of the packet, between 0 and 127blockNumber
- Which block this block is, between 0 and 255baseAddress
- The base address where the data is to be loadeddata
- The data to load, between 4 and 256 bytes and the size must be divisible by 4.
-
FloodFillData
public FloodFillData(byte nearestNeighbourID, int blockNumber, MemoryLocation baseAddress, byte[] data, int offset, int length)- Parameters:
nearestNeighbourID
- The ID of the packet, between 0 and 127blockNumber
- Which block this block is, between 0 and 255baseAddress
- The base address where the data is to be loadeddata
- The data to load, between 4 and 256 bytes and the size must be divisible by 4offset
- Where in the array the data starts at.length
- The length of the data; must be divisible by 4.
-
FloodFillData
public FloodFillData(byte nearestNeighbourID, int blockNumber, MemoryLocation baseAddress, ByteBuffer data)- Parameters:
nearestNeighbourID
- The ID of the packet, between 0 and 127blockNumber
- Which block this block is, between 0 and 255baseAddress
- The base address where the data is to be loadeddata
- The data to load, starting at the position and going to the limit. Must be between 4 and 256 bytes and the size must be divisible by 4. The position and limit of the buffer will not be updated by this constructor.
-
-
Method Details
-
getSCPResponse
Description copied from class:SCPRequest
Parse the response to this message.- Specified by:
getSCPResponse
in classSCPRequest<EmptyResponse>
- Parameters:
buffer
- The buffer to parse.- Returns:
- The message response.
- Throws:
UnexpectedResponseCodeException
-