Class EraseFlash

All Implemented Interfaces:
SerializableMessage

public final class EraseFlash extends BMPRequest<EraseFlash.Response>
A request to erase flash memory on a BMP. The response payload is the location of the flash buffer.

Handled by cmd_flash_erase() in bmp_cmd.c.

  • Constructor Details

    • EraseFlash

      public EraseFlash(BMPBoard board, MemoryLocation baseAddress, int size)
      Parameters:
      board - the board with the BMP to write the memory of
      baseAddress - The positive base address to start the erase at
      size - The number of bytes to erase
      Throws:
      IllegalArgumentException - If the baseAddress or size make no sense
  • Method Details