Class WriteSerialFlash
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.WriteSerialFlash
- All Implemented Interfaces:
SerializableMessage
A request to write to serial flash on a BMP. There is no response payload.
Calls sf_write() in bmp_ssp.c.
-
Nested Class Summary
Nested classes/interfaces inherited from class uk.ac.manchester.spinnaker.messages.bmp.BMPRequest
BMPRequest.BMPResponse, BMPRequest.PayloadedResponse<T> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe size of chunk that will be transferred.Fields inherited from class uk.ac.manchester.spinnaker.messages.scp.SCPRequest
argument1, argument2, argument3, BOOT_CHIP, BOOT_MONITOR_CORE, data, NO_DATA, scpRequestHeaderFields inherited from class uk.ac.manchester.spinnaker.messages.sdp.SpinnakerRequest
sdpHeader -
Constructor Summary
ConstructorsConstructorDescriptionWriteSerialFlash(BMPBoard board, MemoryLocation baseAddress, ByteBuffer data) -
Method Summary
Modifier and TypeMethodDescriptiongetSCPResponse(ByteBuffer buffer) Parse the response to this message.Methods inherited from class uk.ac.manchester.spinnaker.messages.bmp.BMPRequest
toStringMethods inherited from class uk.ac.manchester.spinnaker.messages.scp.SCPRequest
addToBufferMethods inherited from class uk.ac.manchester.spinnaker.messages.sdp.SpinnakerRequest
getMessageData
-
Field Details
-
FLASH_CHUNK_SIZE
public static final int FLASH_CHUNK_SIZEThe size of chunk that will be transferred. Fixed.- See Also:
-
-
Constructor Details
-
WriteSerialFlash
- Parameters:
board- the board with the BMP to write the flash ofbaseAddress- The positive base address where the chunk is locateddata- The data to transfer; up toFLASH_CHUNK_SIZEbytes. The position and limit of the buffer will not be updated by this constructor.
-
-
Method Details
-
getSCPResponse
Description copied from class:SCPRequestParse the response to this message.- Specified by:
getSCPResponsein classSCPRequest<BMPRequest.BMPResponse>- Parameters:
buffer- The buffer to parse.- Returns:
- The message response.
- Throws:
Exception- If anything goes wrong with parsing.
-