Class WriteMemory

All Implemented Interfaces:
SerializableMessage

public class WriteMemory extends SCPRequest<EmptyResponse>
A request to write memory on a chip. There is no response payload.

Calls sark_cmd_write() in sark_base.c.

  • Constructor Details

    • WriteMemory

      public WriteMemory(HasCoreLocation core, MemoryLocation baseAddress, ByteBuffer data)
      Parameters:
      core - the core to write via
      baseAddress - The positive base address to start the write at
      data - Between 1 and 256 bytes to write; the position of the buffer must be the point where the data starts. The position and limit of the buffer will not be updated by this constructor.
    • WriteMemory

      public WriteMemory(HasChipLocation chip, MemoryLocation baseAddress, ByteBuffer data)
      Parameters:
      chip - the chip to write via
      baseAddress - The positive base address to start the read from
      data - Between 1 and 256 bytes to write; the position of the buffer must be the point where the data starts. The position and limit of the buffer will not be updated by this constructor.
  • Method Details