avrora.sim.mcu
Class AtmelInternalDevice
java.lang.Object
avrora.sim.mcu.AtmelInternalDevice
- Direct Known Subclasses:
- ADC, EEPROM, SPI, Timer16Bit, Timer8Bit, USART
- public abstract class AtmelInternalDevice
- extends java.lang.Object
The InteralDevice
class represents an internal device
on a microcontroller.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
name
public final java.lang.String name
microcontroller
protected final AtmelMicrocontroller microcontroller
simulator
protected final Simulator simulator
interpreter
protected final BaseInterpreter interpreter
devicePrinter
protected final Simulator.Printer devicePrinter
mainClock
protected final Clock mainClock
AtmelInternalDevice
public AtmelInternalDevice(java.lang.String n,
AtmelMicrocontroller m)
getIORegs
public java.util.Iterator getIORegs()
installIOReg
protected void installIOReg(java.lang.String name,
ActiveRegister reg)
read16
protected static int read16(RWRegister high,
RWRegister low)
- Helper function to get a 16 bit value from a pair of registers.
write16
protected static void write16(int val,
RWRegister high,
RWRegister low)
- Helper function to write a 16-bit value to a pair of registers.
getClock
public Clock getClock()