Class FastDataIn
java.lang.Object
uk.ac.manchester.spinnaker.protocols.FastDataIn
- All Implemented Interfaces:
AutoCloseable
public class FastDataIn extends Object implements AutoCloseable
-
Constructor Summary
Constructors Constructor Description FastDataIn(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 Type Method Description void
close()
void
fastWrite(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, InterruptedExceptionCreate 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:
close
in interfaceAutoCloseable
- Throws:
IOException
-
fastWrite
public void fastWrite(HasChipLocation boardLocalDestination, MemoryLocation baseAddress, ByteBuffer data) throws IOException, InterruptedExceptionWrite 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.
-