Class FillRequest
java.lang.Object
uk.ac.manchester.spinnaker.messages.sdp.SpinnakerRequest
uk.ac.manchester.spinnaker.messages.scp.SCPRequest<EmptyResponse>
uk.ac.manchester.spinnaker.messages.scp.FillRequest
- All Implemented Interfaces:
SerializableMessage
public final class FillRequest extends SCPRequest<EmptyResponse>
A request to fill a region of memory on a chip with repeated words of
data. There is no response payload.
Calls sark_cmd_fill()
in sark_base.c
, or cmd_fill()
in bmp_cmd.c
if sent to a BMP.
-
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 FillRequest(HasChipLocation chip, MemoryLocation baseAddress, int data, int size)
-
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
-
FillRequest
- Parameters:
chip
- The chip to read frombaseAddress
- The positive base address to start the fill from. Must be word-aligned.data
- The word of data to fill in the space with.size
- The number of bytes to fill in. Must be a multiple of 4.
-
-
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
-