Class FastDataIn
java.lang.Object
uk.ac.manchester.spinnaker.protocols.FastDataIn
- All Implemented Interfaces:
AutoCloseable
-
Constructor Summary
ConstructorsConstructorDescriptionFastDataIn(CoreLocation gathererCore, IPTag iptag) Create an instance of the protocol for talking to a particular extra monitor core on a particular board. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidfastWrite(HasChipLocation boardLocalDestination, MemoryLocation baseAddress, ByteBuffer data) Write data to a given memory location.
-
Constructor Details
-
FastDataIn
@MustBeClosed public FastDataIn(CoreLocation gathererCore, IPTag iptag) throws ProcessException, IOException, InterruptedException Create an instance of the protocol for talking to a particular extra monitor core on a particular board.- Parameters:
gathererCore- The gatherer core on the board that messages will be routed via.iptag- The IPTag to use for communications.- Throws:
IOException- If IO fails.ProcessException- If SpiNNaker rejects the reprogramming of the tag.InterruptedException- If communications are interrupted.
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
IOException
-
fastWrite
public void fastWrite(HasChipLocation boardLocalDestination, MemoryLocation baseAddress, ByteBuffer data) throws IOException, InterruptedException Write data to a given memory location.- Parameters:
boardLocalDestination- The target chip of the write.baseAddress- Whether the data will be written.data- The data to be written.- Throws:
IOException- If IO fails.InterruptedException- If communications are interrupted.
-