Class BMPReadMemory
java.lang.Object
uk.ac.manchester.spinnaker.messages.sdp.SpinnakerRequest
uk.ac.manchester.spinnaker.messages.scp.SCPRequest<T>
uk.ac.manchester.spinnaker.messages.bmp.BMPRequest<BMPReadMemory.Response>
uk.ac.manchester.spinnaker.messages.bmp.BMPReadMemory
- All Implemented Interfaces:
SerializableMessage
public class BMPReadMemory extends BMPRequest<BMPReadMemory.Response>
A request to read a region of memory from a BMP. The response payload is
a read-only little-endian
ByteBuffer
intended to be read once.
Calls cmd_read()
in bmp_cmd.c
.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
BMPReadMemory.Response
An SCP response to a request to read a region of memory on a chip.Nested classes/interfaces inherited from class uk.ac.manchester.spinnaker.messages.bmp.BMPRequest
BMPRequest.BMPResponse, BMPRequest.PayloadedResponse<T>
-
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 BMPReadMemory(BMPBoard board, MemoryLocation address, int size)
-
Method Summary
Modifier and Type Method Description BMPReadMemory.Response
getSCPResponse(ByteBuffer buffer)
Parse the response to this message.Methods inherited from class uk.ac.manchester.spinnaker.messages.sdp.SpinnakerRequest
getMessageData
-
Constructor Details
-
BMPReadMemory
- Parameters:
board
- which board to read the memory ofaddress
- 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<BMPReadMemory.Response>
- Parameters:
buffer
- The buffer to parse.- Returns:
- The message response.
- Throws:
Exception
- If anything goes wrong with parsing.
-