Class WriteSerialFlash

All Implemented Interfaces:
SerializableMessage

public class WriteSerialFlash extends BMPRequest<BMPRequest.BMPResponse>
A request to write to serial flash on a BMP. There is no response payload.

Calls sf_write() in bmp_ssp.c.

  • Field Details

    • FLASH_CHUNK_SIZE

      public static final int FLASH_CHUNK_SIZE
      The size of chunk that will be transferred. Fixed.
      See Also:
  • Constructor Details

    • WriteSerialFlash

      public WriteSerialFlash(BMPBoard board, MemoryLocation baseAddress, ByteBuffer data)
      Parameters:
      board - the board with the BMP to write the flash of
      baseAddress - The positive base address where the chunk is located
      data - The data to transfer; up to FLASH_CHUNK_SIZE bytes. The position and limit of the buffer will not be updated by this constructor.
  • Method Details