Class SetPower
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.SetPower
- All Implemented Interfaces:
SerializableMessage
public class SetPower extends BMPRequest<BMPRequest.BMPResponse>
A request for the BMP to power on or power off some boards. There is no
response payload.
Note: There is currently a bug in the BMP that means some boards don't respond to power commands not sent to BMP 0. Because of this, this message should always be sent to BMP 0!
Handled by cmd_power()
in bmp_cmd.c
, which in turn calls
proc_power()
in the same file.
-
Nested Class Summary
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 SetPower(PowerCommand powerCommand, Collection<BMPBoard> boards, double delay)
-
Method Summary
Modifier and Type Method Description BMPRequest.BMPResponse
getSCPResponse(ByteBuffer buffer)
Parse the response to this message.Methods inherited from class uk.ac.manchester.spinnaker.messages.sdp.SpinnakerRequest
getMessageData
-
Constructor Details
-
SetPower
- Parameters:
powerCommand
- The power command being sentboards
- The boards on the same backplane to power on or offdelay
- Number of seconds delay between power state changes of the different boards.
-
-
Method Details
-
getSCPResponse
Description copied from class:SCPRequest
Parse the response to this message.- Specified by:
getSCPResponse
in classSCPRequest<BMPRequest.BMPResponse>
- Parameters:
buffer
- The buffer to parse.- Returns:
- The message response.
- Throws:
Exception
- If anything goes wrong with parsing.
-