hades.models.pic
Interface PicReg

All Known Implementing Classes:
PicByteReg, PicEecon1Reg, PicIndfReg, PicIntConReg, PicNoReg, PicPcReg, PicPortReg, PicTimerReg, PicWordReg, TurboPicCore.PicRegAdapter

public interface PicReg

PicReg - interface for a register, Pic*Reg implement this interface.


Method Summary
 boolean getBit(int selectedBit)
          Get one specified bit
 int getBreakPoint()
          Get BreakPoint returns the value that has been set by setBreakPoint
 int getSize()
          How many bits are accessable with read() and write() ?
 int getSizeAll()
          How many bits are accessable with readAll() and writeAll() ?
 void por()
          Power-on-reset
 int read()
          Read the normal content of the register
 int readAll()
          Read the extended content of the register
 void reset()
          Normal reset, often this will be the same as por()
 void setBit(int selectedBit, boolean newValue)
          Set one specified bit
 void setBreakPoint(int value)
          Set BreakPoint: value >= 0 : break if content equals value value = -1 : no breakpoint value = -2 : break if content has changed
 void write(int newValue)
          Write the normal content of the register
 void writeAll(int newValue)
          Write the extended content of the register
 

Method Detail

getSize

public int getSize()
How many bits are accessable with read() and write() ?


getSizeAll

public int getSizeAll()
How many bits are accessable with readAll() and writeAll() ?


por

public void por()
Power-on-reset


reset

public void reset()
Normal reset, often this will be the same as por()


read

public int read()
Read the normal content of the register


readAll

public int readAll()
Read the extended content of the register


write

public void write(int newValue)
Write the normal content of the register


writeAll

public void writeAll(int newValue)
Write the extended content of the register


setBit

public void setBit(int selectedBit,
                   boolean newValue)
Set one specified bit


getBit

public boolean getBit(int selectedBit)
Get one specified bit


setBreakPoint

public void setBreakPoint(int value)
Set BreakPoint: value >= 0 : break if content equals value value = -1 : no breakpoint value = -2 : break if content has changed


getBreakPoint

public int getBreakPoint()
Get BreakPoint returns the value that has been set by setBreakPoint