Class GetVersion
java.lang.Object
uk.ac.manchester.spinnaker.messages.sdp.SpinnakerRequest
uk.ac.manchester.spinnaker.messages.scp.SCPRequest<GetVersion.Response>
uk.ac.manchester.spinnaker.messages.scp.GetVersion
- All Implemented Interfaces:
SerializableMessage
public class GetVersion extends SCPRequest<GetVersion.Response>
A request to read the version of software running on a core. The
response payload is the version descriptor.
Calls cmd_ver()
in scamp-cmd.c
or sark_cmd_ver()
in
sark_base.c
, depending on which core the message is sent to.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GetVersion.Response
An SCP response to a request for the version of software running. -
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 GetVersion(HasCoreLocation core)
-
Method Summary
Modifier and Type Method Description GetVersion.Response
getSCPResponse(ByteBuffer buffer)
Parse the response to this message.Methods inherited from class uk.ac.manchester.spinnaker.messages.sdp.SpinnakerRequest
getMessageData
-
Constructor Details
-
GetVersion
- Parameters:
core
- The location of the core to read from.
-
-
Method Details
-
getSCPResponse
public GetVersion.Response getSCPResponse(ByteBuffer buffer) throws UnexpectedResponseCodeExceptionDescription copied from class:SCPRequest
Parse the response to this message.- Specified by:
getSCPResponse
in classSCPRequest<GetVersion.Response>
- Parameters:
buffer
- The buffer to parse.- Returns:
- The message response.
- Throws:
UnexpectedResponseCodeException
-