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
public class ReadSerialFlash extends BMPRequest<ReadSerialFlash.Response>
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 Classes Modifier and Type Class Description protected class
ReadSerialFlash.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 ReadSerialFlash(BMPBoard board, MemoryLocation address, int size)
-
Method Summary
Modifier and Type Method Description ReadSerialFlash.Response
getSCPResponse(ByteBuffer buffer)
Parse the response to this message.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.
-