Class ReadSerialFlash
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<ReadSerialFlash.Response>
uk.ac.manchester.spinnaker.messages.bmp.ReadSerialFlash
- All Implemented Interfaces:
SerializableMessage
A request to read a region of serial flash from a BMP. The response payload
is a read-only little-endian
ByteBuffer
intended to be read once.
Calls sf_read()
in bmp_ssp.c
.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected final class
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
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
-
ReadSerialFlash
- Parameters:
board
- which board to read the flash 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<ReadSerialFlash.Response>
- Parameters:
buffer
- The buffer to parse.- Returns:
- The message response.
- Throws:
Exception
- If anything goes wrong with parsing.
-