|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpicmicrocontroller.Register
public class Register
This class reresents a 8-bit register of a PIC 16F877
Constructor Summary | |
---|---|
Register()
Main constructor of register class. |
|
Register(byte data,
byte prevData)
Constructor which initializes the fields to the given values. |
Method Summary | |
---|---|
void |
clear()
Clears the register. |
void |
clearBit(int index)
Clears the bit given the index number 0-7 |
int |
getBit(int index)
Returns the bit given the index number 0-7 |
boolean |
hasChanged()
Checks if the content of the register has been changed. |
byte |
read()
This method returns the content of a register. |
void |
setBit(int index)
Sets the bit given the index number 0-7 |
void |
updateBit(int index,
byte bit)
Updates the bit with a given value and index number 0-7 |
void |
write(byte data)
This method sets the data of the register. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Register()
public Register(byte data, byte prevData)
data
- prevData
- Method Detail |
---|
public byte read()
public void write(byte data)
public int getBit(int index)
index
-
public void setBit(int index)
index
- public void clearBit(int index)
index
- public void updateBit(int index, byte bit)
index
- bit
- public void clear()
public boolean hasChanged()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |