Class ReadLink
java.lang.Object
uk.ac.manchester.spinnaker.messages.sdp.SpinnakerRequest
uk.ac.manchester.spinnaker.messages.scp.SCPRequest<ReadLink.Response>
uk.ac.manchester.spinnaker.messages.scp.ReadLink
- All Implemented Interfaces:
SerializableMessage
A request to read a region of memory via a link on a chip. The response
payload is a read-only little-endian
ByteBuffer
intended to be read
once.
Calls cmd_link_read()
in scamp-cmd.c
.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected final class
An SCP response to a request to read a region of memory via a link on a chip. -
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
Fields inherited from class uk.ac.manchester.spinnaker.messages.sdp.SpinnakerRequest
sdpHeader
-
Constructor Summary
ConstructorsConstructorDescriptionReadLink
(HasChipLocation chip, Direction link, MemoryLocation baseAddress, int size) ReadLink
(HasCoreLocation core, Direction link, MemoryLocation baseAddress, int size) -
Method Summary
Modifier and TypeMethodDescriptiongetSCPResponse
(ByteBuffer buffer) Parse the response to this message.Methods inherited from class uk.ac.manchester.spinnaker.messages.scp.SCPRequest
addToBuffer
Methods inherited from class uk.ac.manchester.spinnaker.messages.sdp.SpinnakerRequest
getMessageData
-
Constructor Details
-
ReadLink
- Parameters:
core
- the core to read vialink
- The direction of the link down which to send the querybaseAddress
- The positive base address to start the read fromsize
- The number of bytes to read, between 1 and 256
-
ReadLink
- Parameters:
chip
- the chip to read vialink
- The direction of the link down which to send the querybaseAddress
- The positive base address to start the read fromsize
- The number of bytes to read, between 1 and 256
-
-
Method Details
-
getSCPResponse
Description copied from class:SCPRequest
Parse the response to this message.- Specified by:
getSCPResponse
in classSCPRequest<ReadLink.Response>
- Parameters:
buffer
- The buffer to parse.- Returns:
- The message response.
- Throws:
UnexpectedResponseCodeException
-