Class EraseFlash
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<EraseFlash.Response>
uk.ac.manchester.spinnaker.messages.bmp.EraseFlash
- All Implemented Interfaces:
SerializableMessage
public final class EraseFlash extends BMPRequest<EraseFlash.Response>
A request to erase flash memory on a BMP. The response payload is the
location of the flash buffer.
Handled by cmd_flash_erase()
in bmp_cmd.c
.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
EraseFlash.Response
The response from a request to erase flash.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 EraseFlash(BMPBoard board, MemoryLocation baseAddress, int size)
-
Method Summary
Modifier and Type Method Description EraseFlash.Response
getSCPResponse(ByteBuffer buffer)
Parse the response to this message.Methods inherited from class uk.ac.manchester.spinnaker.messages.sdp.SpinnakerRequest
getMessageData
-
Constructor Details
-
EraseFlash
- Parameters:
board
- the board with the BMP to write the memory ofbaseAddress
- The positive base address to start the erase atsize
- The number of bytes to erase- Throws:
IllegalArgumentException
- If the baseAddress or size make no sense
-
-
Method Details
-
getSCPResponse
Description copied from class:SCPRequest
Parse the response to this message.- Specified by:
getSCPResponse
in classSCPRequest<EraseFlash.Response>
- Parameters:
buffer
- The buffer to parse.- Returns:
- The message response.
- Throws:
Exception
- If anything goes wrong with parsing.
-