Class SetLED
java.lang.Object
uk.ac.manchester.spinnaker.messages.sdp.SpinnakerRequest
uk.ac.manchester.spinnaker.messages.scp.SCPRequest<EmptyResponse>
uk.ac.manchester.spinnaker.messages.scp.SetLED
- All Implemented Interfaces:
SerializableMessage
public class SetLED extends SCPRequest<EmptyResponse>
A request to change the state of an LED. There is no response payload.
Handled by sark_led_set()
in sark_hw.c
.
-
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 SetLED(HasCoreLocation core, Map<Integer,LEDAction> ledStates)
-
Method Summary
Modifier and Type Method Description EmptyResponse
getSCPResponse(ByteBuffer buffer)
Parse the response to this message.Methods inherited from class uk.ac.manchester.spinnaker.messages.sdp.SpinnakerRequest
getMessageData
-
Constructor Details
-
SetLED
- Parameters:
core
- The SpiNNaker core that will set the BMPSetLEDledStates
- A mapping of BMPSetLED index to operation to apply.
-
-
Method Details
-
getSCPResponse
Description copied from class:SCPRequest
Parse the response to this message.- Specified by:
getSCPResponse
in classSCPRequest<EmptyResponse>
- Parameters:
buffer
- The buffer to parse.- Returns:
- The message response.
- Throws:
UnexpectedResponseCodeException
-