Class DriverBase

java.lang.Object
be.lmenten.avr.core.driver.DriverBase
All Implemented Interfaces:
Driver
Direct Known Subclasses:
EepromDriver

public abstract class DriverBase extends Object implements Driver
  • Field Details

    • core

      protected final Core core
  • Constructor Details

  • Method Details

    • getId

      public final String getId()

      Returns the unique ID for this driver instance.

      This ID is defined in the CoreDescriptor data file's "simulator" section.

      Specified by:
      getId in interface Driver
      Returns:
    • onTick

      public void onTick(long ticksCount)
      After every instruction simulation, this method is called.
      Specified by:
      onTick in interface Driver
    • onReset

      public void onReset()
      Every time the core is reset, this method is called. Default values for I/O register is normal set by the core itself but may be set here.
      Specified by:
      onReset in interface Driver