Class ReadSerialFlashCRC
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<ReadSerialFlashCRC.Response>
uk.ac.manchester.spinnaker.messages.bmp.ReadSerialFlashCRC
- All Implemented Interfaces:
SerializableMessage
public class ReadSerialFlashCRC extends BMPRequest<ReadSerialFlashCRC.Response>
A request to get the CRC of serial flash memory from a BMP. The response
payload is the 32-bit CRC of the given region of flash.
Calls sf_crc32()
in bmp_ssp.c
.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
ReadSerialFlashCRC.Response
An SCP response to a request to get the CRC of serial 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 ReadSerialFlashCRC(BMPBoard board, MemoryLocation baseAddress, int size)
-
Method Summary
Modifier and Type Method Description ReadSerialFlashCRC.Response
getSCPResponse(ByteBuffer buffer)
Parse the response to this message.Methods inherited from class uk.ac.manchester.spinnaker.messages.sdp.SpinnakerRequest
getMessageData
-
Constructor Details
-
ReadSerialFlashCRC
- Parameters:
board
- which board's BMP's serial flash should be checkedbaseAddress
- The positive base address to start the check fromsize
- The number of bytes to check
-
-
Method Details
-
getSCPResponse
Description copied from class:SCPRequest
Parse the response to this message.- Specified by:
getSCPResponse
in classSCPRequest<ReadSerialFlashCRC.Response>
- Parameters:
buffer
- The buffer to parse.- Returns:
- The message response.
- Throws:
Exception
- If anything goes wrong with parsing.
-