Class ReadADC
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<ReadADC.Response>
uk.ac.manchester.spinnaker.messages.bmp.ReadADC
- All Implemented Interfaces:
SerializableMessage
public class ReadADC extends BMPRequest<ReadADC.Response>
A request for the board status data from the BMP including voltages,
temperatures and fan speeds. The response payload is the board status information structure from the hardware.
Handled in cmd_bmp_info()
(in bmp_cmd.c
) by reading from the
right element of board_stat
. The underlying data is synched from the
ADC approximately every 80ms by read_adc()
in bmp_hw.c
, and
from the on-board thermometers (LM75B chips) every second by
read_temp()
in bmp_hw.c
(which calls read_ts()
in
bmp_i2c.c
); fan speeds are monitored by counting rotations, under the
assumption they significantly less than 60k rpm. The BMP's internal
monitoring of these values is done in check_status()
in
bmp_main.c
.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
ReadADC.Response
An SCP response to a request for ADC information.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
-
Method Summary
Modifier and Type Method Description ReadADC.Response
getSCPResponse(ByteBuffer buffer)
Parse the response to this message.Methods inherited from class uk.ac.manchester.spinnaker.messages.sdp.SpinnakerRequest
getMessageData
-
Constructor Details
-
ReadADC
- Parameters:
board
- which board to request the ADC register from
-
-
Method Details
-
getSCPResponse
Description copied from class:SCPRequest
Parse the response to this message.- Specified by:
getSCPResponse
in classSCPRequest<ReadADC.Response>
- Parameters:
buffer
- The buffer to parse.- Returns:
- The message response.
- Throws:
Exception
- If anything goes wrong with parsing.
-