Class RecordingRegion
java.lang.Object
uk.ac.manchester.spinnaker.front_end.download.RecordingRegion
A descriptor about a channel of recording data.
Must match recording_region_t
in recording.h
in
SpiNNFrontEndCommon.
Do not use as a hash key.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal uk.ac.manchester.spinnaker.machine.MemoryLocation
The data memory address. (32-bits; unsigned)final boolean
If there is any missing information. (1-bit)final long
The size of the recording in bytes. (31-bits; unsigned)static final int
Size of the channel data on the machine.final long
The size of the space available. (32-bits; unsigned) -
Method Summary
Modifier and TypeMethodDescriptionstatic List<RecordingRegion>
getRecordingRegionDescriptors
(TransceiverInterface txrx, Placement placement) Reads the recording regions from the machine.toString()
-
Field Details
-
SIZE
public static final int SIZESize of the channel data on the machine.4 for
space
, 4 formissing_flag + size
, 4 fordata
- See Also:
-
space
public final long spaceThe size of the space available. (32-bits; unsigned)Not currently used significantly by the Java code
-
missing
public final boolean missingIf there is any missing information. (1-bit) -
size
public final long sizeThe size of the recording in bytes. (31-bits; unsigned) -
data
public final uk.ac.manchester.spinnaker.machine.MemoryLocation dataThe data memory address. (32-bits; unsigned)
-
-
Method Details
-
toString
-
getRecordingRegionDescriptors
public static List<RecordingRegion> getRecordingRegionDescriptors(TransceiverInterface txrx, Placement placement) throws IOException, ProcessException, InterruptedException Reads the recording regions from the machine.- Parameters:
txrx
- Transceiver to read withplacement
- The core to read the data from- Returns:
- A list of recording region descriptors read from the machine, one per channel that the recording subsystem there knows about.
- Throws:
IOException
- If the reading goes wrongProcessException
- If the data in the read goes wrongInterruptedException
- If communications are interrupted.
-