Class RouterInit

All Implemented Interfaces:
SerializableMessage

public class RouterInit extends SCPRequest<EmptyResponse>
A request to initialise the router on a chip. There is no response payload.

Ultimately handled by rtr_mc_load() in sark_hw.c (via cmd_rtr() in scamp-cmd.c).

  • Constructor Details

    • RouterInit

      public RouterInit(HasChipLocation chip, int numEntries, MemoryLocation tableAddress, int baseIndex, AppID appID)
      Parameters:
      chip - The coordinates of the chip to clear the router of
      numEntries - The number of entries in the table (more than 0)
      tableAddress - The allocated address containing the data to init the router from.
      baseIndex - The base index in the router table where the entries are to be placed.
      appID - The ID of the application with which to associate the routes.
      Throws:
      IllegalArgumentException - If a bad address or entry count is given
  • Method Details