Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## avrora.sim.mcu
Class ATMega128L.SimImpl.PowerManagement

    java.lang.Object
      avrora.sim.mcu.ATMega128L.SimImpl.PowerManagement

Enclosing class:
  ATMega128L.SimImpl

protected class ATMega128L.SimImpl.PowerManagement
extends java.lang.Object

Implementation of MCU Power Managment, e.g. MCUCR register

Nested Class Summary
`protected class` | `ATMega128L.SimImpl.PowerManagement.ControlRegister` implementation of the MCUCR control register

Field Summary
`static byte` | `ACTIVE`
`static java.lang.String` | `activeModeName`
`static byte` | `ADC_NOISE`
`static byte` | `EXTENDED_STANDBY`
`static byte` | `IDLE`
`static byte` | `POWER_DOWN`
`static byte` | `POWER_SAVE`
`static byte` | `RESERVED1`
`static byte` | `RESERVED2`
`java.lang.String[]` | `sleepModeName`
`static byte` | `STANDBY`

Method Summary
`protected byte` | `getMode()` get the mode, the system is in
`protected java.lang.String` | `getModeName()` get the name of the current mode
`protected void` | `sleep()` called when the sleep opcode gets executed
`protected int` | `wakeup()` called, when the system wakes up commonly the system wakes up via interrupt ;-) Do not call this method, when the system is not sleeping.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### ACTIVE

    public static final byte ACTIVE

See Also:
  Constant Field Values

### IDLE

    public static final byte IDLE

See Also:
  Constant Field Values

### RESERVED1

    public static final byte RESERVED1

See Also:
  Constant Field Values

### ADC_NOISE

    public static final byte ADC_NOISE

See Also:
  Constant Field Values

### RESERVED2

    public static final byte RESERVED2

See Also:
  Constant Field Values

### POWER_DOWN

    public static final byte POWER_DOWN

See Also:
  Constant Field Values

### STANDBY

    public static final byte STANDBY

See Also:
  Constant Field Values

### POWER_SAVE

    public static final byte POWER_SAVE

See Also:
  Constant Field Values

### EXTENDED_STANDBY

    public static final byte EXTENDED_STANDBY

See Also:
  Constant Field Values

### sleepModeName

    public final java.lang.String[] sleepModeName

### activeModeName

    public static final java.lang.String activeModeName

See Also:
  Constant Field Values

Method Detail

### sleep

    protected void sleep()

  called when the sleep opcode gets executed

### wakeup

    protected int wakeup()

  called, when the system wakes up commonly the system wakes up via interrupt ;-) Do not call this method, when the system is not sleeping. Such a check is not done, to provide high performace.

  Returns:
    the cycles it takes to wake up

### getMode

    protected byte getMode()

  get the mode, the system is in

  Returns:
    mode

### getModeName

    protected java.lang.String getModeName()

  get the name of the current mode

  Returns:
    mode name

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD