Class BMPSetLED
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.BMPSetLED
- All Implemented Interfaces:
SerializableMessage
public class BMPSetLED extends BMPRequest<BMPRequest.BMPResponse>
A request to alter the LEDs on a board managed by a BMP. There is no response
payload. Note that these LEDs are different to those managed by sending
a request to SCAMP.
Handled by cmp_led()
in bmp_cmd.c
.
-
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 BMPSetLED(Collection<Integer> leds, LEDAction action, Collection<BMPBoard> boards)
Make a request. -
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
-
BMPSetLED
Make a request.- Parameters:
leds
- What LEDs to alteraction
- What operation to apply to themboards
- The boards to talk to
-
-
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.
-