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 RegisterSet.Field

    java.lang.Object
      avrora.sim.mcu.RegisterSet.Field

Enclosing class:
  RegisterSet

public static class RegisterSet.Field
extends java.lang.Object

The `Field` class represents a collection of bits that represent a quantity used by a device. The bits that make up this quantity might be spread over multiple IO registers or mixed up among one IO register. Also, a field might be in different IO registers depending on the microcontroller model. For this reason, the `Field` class offers convenience to the device implementer by collecting all of the individual bit updates in different registers into one coherent, contiguous value.

Device implementations can simply get a reference to the `Field` object (such as a timer mode, prescaler value, etc) by calling `getField()` in `RegisterSet`.

Field Summary
`int` | `value`

Constructor Summary
`RegisterSet.Field()`

Method Summary
`void` | `set(int nval)`
`void` | `update()`
`void` | `write(int nval)`
`void` | `write(int nval, int wmask)`

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

Field Detail

### value

    public int value

Constructor Detail

### RegisterSet.Field

    public RegisterSet.Field()

Method Detail

### write

    public void write(int nval,
                      int wmask)

### write

    public void write(int nval)

### set

    public void set(int nval)

### update

    public void update()

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