avrora.sim.mcu
Class ATMega128L.SimImpl.Timer16Bit.OCRnxPairedRegister

java.lang.Object
  extended byavrora.sim.State.RWIOReg
      extended byavrora.sim.mcu.ATMega128L.SimImpl.Timer16Bit.PairedRegister
          extended byavrora.sim.mcu.ATMega128L.SimImpl.Timer16Bit.OCRnxPairedRegister
All Implemented Interfaces:
State.IOReg
Enclosing class:
ATMega128L.SimImpl.Timer16Bit

protected class ATMega128L.SimImpl.Timer16Bit.OCRnxPairedRegister
extends ATMega128L.SimImpl.Timer16Bit.PairedRegister

The normal 16-bit read behavior described in the doc for PairedRegister does not apply for the OCRnx registers. Reads on the OCRnxH registers are direct.


Field Summary
 
Fields inherited from class avrora.sim.State.RWIOReg
value
 
Method Summary
 byte read()
          The read() method reads the 8-bit value of the IO register as a byte.
 boolean readBit(int bit)
          The readBit() method reads a single bit from the IO register.
 
Methods inherited from class avrora.sim.mcu.ATMega128L.SimImpl.Timer16Bit.PairedRegister
write, writeBit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

read

public byte read()
Description copied from class: State.RWIOReg
The read() method reads the 8-bit value of the IO register as a byte. For simple RWIOReg instances, this simply returns the internally stored value.

Specified by:
read in interface State.IOReg
Overrides:
read in class ATMega128L.SimImpl.Timer16Bit.PairedRegister

readBit

public boolean readBit(int bit)
Description copied from class: State.RWIOReg
The readBit() method reads a single bit from the IO register.

Specified by:
readBit in interface State.IOReg
Overrides:
readBit in class ATMega128L.SimImpl.Timer16Bit.PairedRegister