Class GetChipInfo
java.lang.Object
uk.ac.manchester.spinnaker.messages.sdp.SpinnakerRequest
uk.ac.manchester.spinnaker.messages.scp.SCPRequest<GetChipInfo.Response>
uk.ac.manchester.spinnaker.messages.scp.GetChipInfo
- All Implemented Interfaces:
SerializableMessage
public class GetChipInfo extends SCPRequest<GetChipInfo.Response>
A request to read the chip information from a core. The response payload
is the summary information for the chip.
Calls cmd_info()
in scamp-cmd.c
.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
GetChipInfo.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 GetChipInfo(HasChipLocation chip)
GetChipInfo(HasChipLocation chip, boolean withSize)
-
Method Summary
Modifier and Type Method Description GetChipInfo.Response
getSCPResponse(ByteBuffer buffer)
Parse the response to this message.Methods inherited from class uk.ac.manchester.spinnaker.messages.sdp.SpinnakerRequest
getMessageData
-
Constructor Details
-
GetChipInfo
- Parameters:
chip
- the chip to read from
-
GetChipInfo
- Parameters:
chip
- the chip to read fromwithSize
- Whether the size should be included in the response. Might be ignored by SCAMP.
-
-
Method Details
-
getSCPResponse
public GetChipInfo.Response getSCPResponse(ByteBuffer buffer) throws UnexpectedResponseCodeExceptionDescription copied from class:SCPRequest
Parse the response to this message.- Specified by:
getSCPResponse
in classSCPRequest<GetChipInfo.Response>
- Parameters:
buffer
- The buffer to parse.- Returns:
- The message response.
- Throws:
UnexpectedResponseCodeException
-