Class WriteFlashBuffer

All Implemented Interfaces:
SerializableMessage

public class WriteFlashBuffer extends BMPRequest<BMPRequest.BMPResponse>
A request to write memory to flash on a BMP. Must have already been prepared with EraseFlash. There is no response payload.

Calls cmd_flash_write() in bmp_cmd.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

    • WriteFlashBuffer

      public WriteFlashBuffer(BMPBoard board, MemoryLocation baseAddress, boolean erase)
      Parameters:
      board - the board with the BMP to write the flash of
      baseAddress - The positive base address where the chunk is located
      erase - Whether to erase first
  • Method Details