Interface PIC

All Known Subinterfaces:
DebuggablePIC
All Known Implementing Classes:
PIC_std

public interface PIC
extends DigitalComponent

An interface describing which services a PIC (which is a DigitalComponent) must offer.
You can read the source of this interface here.


Method Summary
 void addComponentToNotify(DigitalComponent c)
          Tells the PIC to notify c at each instruction cycle.
 void ExecInstruction()
          Executes one instruction.
 void ReprogramFlash(CompiledProgram prog)
          Reprograms the PIC.
 void Reset()
          Resets the PIC.
 void Run()
          Runs the PIC.
 
Methods inherited from interface DigitalComponent
connectPin, getState, isPinConnected, notifyOneCycle, setPinState, setPinStateDontNotify
 

Method Detail

ReprogramFlash

public void ReprogramFlash(CompiledProgram prog)
Reprograms the PIC.
Parameters:
prog - The new program.

Run

public void Run()
Runs the PIC.

Reset

public void Reset()
Resets the PIC.

ExecInstruction

public void ExecInstruction()
Executes one instruction.

addComponentToNotify

public void addComponentToNotify(DigitalComponent c)
Tells the PIC to notify c at each instruction cycle.