Class BMPWriteMemory
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<BMPRequest.BMPResponse>
uk.ac.manchester.spinnaker.messages.bmp.BMPWriteMemory
- All Implemented Interfaces:
SerializableMessage
A request to write to memory on a BMP. There is no response payload.
Calls cmd_write()
in bmp_cmd.c
.
-
Nested Class Summary
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
Fields inherited from class uk.ac.manchester.spinnaker.messages.sdp.SpinnakerRequest
sdpHeader
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetSCPResponse
(ByteBuffer buffer) Parse the response to this message.Methods inherited from class uk.ac.manchester.spinnaker.messages.bmp.BMPRequest
toString
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
-
BMPWriteMemory
- Parameters:
board
- the board with the BMP to write the memory ofbaseAddress
- The positive base address to start the write atdata
- Between 1 and 256 bytes to write; the position of the buffer must be the point where the data starts, and the data must extend up to the limit. 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<BMPRequest.BMPResponse>
- Parameters:
buffer
- The buffer to parse.- Returns:
- The message response.
- Throws:
Exception
- If anything goes wrong with parsing.
-