hades.models.pic
Class PicBitReg

java.lang.Object
  extended byhades.models.pic.PicBitReg

public class PicBitReg
extends java.lang.Object

PicBitReg - Register to store one Bit (like flip-flop)


Field Summary
static int _0
           
static int _1
           
static int _U
           
static int _Z
           
(package private)  int intValue
           
(package private)  boolean readOnly
           
 
Constructor Summary
PicBitReg()
           
 
Method Summary
 void changeReadOnly(boolean newReadOnly)
          Change the readOnly-flag
 boolean getBit()
          test a specified bit
 void por()
          Power-on-reset, do nothing
 int read()
          read the value of the register
 void reset()
          Reset, do nothing with a normal register
 void setBit(boolean newValue)
          set a specified bit with a boolean value
 void write(int newValue)
          write a new value into the register
 void writeForbidden(int newValue)
          write a new value into the register, work with readOnly-registers
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

intValue

int intValue

readOnly

boolean readOnly

_U

public static final int _U
See Also:
Constant Field Values

_0

public static final int _0
See Also:
Constant Field Values

_1

public static final int _1
See Also:
Constant Field Values

_Z

public static final int _Z
See Also:
Constant Field Values
Constructor Detail

PicBitReg

public PicBitReg()
Method Detail

por

public void por()
Power-on-reset, do nothing


reset

public void reset()
Reset, do nothing with a normal register


changeReadOnly

public void changeReadOnly(boolean newReadOnly)
Change the readOnly-flag


read

public int read()
read the value of the register


write

public void write(int newValue)
write a new value into the register


writeForbidden

public void writeForbidden(int newValue)
write a new value into the register, work with readOnly-registers


setBit

public void setBit(boolean newValue)
set a specified bit with a boolean value


getBit

public boolean getBit()
test a specified bit