Class WriteLink
java.lang.Object
uk.ac.manchester.spinnaker.messages.sdp.SpinnakerRequest
uk.ac.manchester.spinnaker.messages.scp.SCPRequest<EmptyResponse>
uk.ac.manchester.spinnaker.messages.scp.WriteLink
- All Implemented Interfaces:
SerializableMessage
public class WriteLink extends SCPRequest<EmptyResponse>
A request to write memory on a neighbouring chip. There is no response
payload.
Calls cmd_link_write()
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, scpRequestHeader
-
Constructor Summary
Constructors Constructor Description WriteLink(HasCoreLocation core, Direction link, 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
-
WriteLink
public WriteLink(HasCoreLocation core, Direction link, MemoryLocation baseAddress, ByteBuffer data)- Parameters:
core
- the core to write vialink
- The ID of the link down which to send the writebaseAddress
- The positive base address to start the write atdata
- The data to write (up to 256 bytes); the position of the buffer must be the point where the data starts. 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
-