Package be.lmenten.avr.core.data
Class Value
java.lang.Object
be.lmenten.avr.core.data.Value
- Since:
- 1.0
- Author:
- Laurent Menten
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interfacestatic interface -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbit(int bit)Get the state of a single bit.voidbit(int bit, boolean state)Set the state of a single bit.booleanbit0()voidbit0(boolean state)booleanbit1()voidbit1(boolean state)booleanbit10()voidbit10(boolean state)booleanbit11()voidbit11(boolean state)booleanbit12()voidbit12(boolean state)booleanbit13()voidbit13(boolean state)booleanbit14()voidbit14(boolean state)booleanbit15()voidbit15(boolean state)booleanbit2()voidbit2(boolean state)booleanbit3()voidbit3(boolean state)booleanbit4()voidbit4(boolean state)booleanbit5()voidbit5(boolean state)booleanbit6()voidbit6(boolean state)booleanbit7()voidbit7(boolean state)booleanbit8()voidbit8(boolean state)booleanbit9()voidbit9(boolean state)compute(Value.Operation0 operation)compute(Value.Operation1 operation, Value operand)compute(Value.Operation2 operation, Value operand, boolean c)byteintintintgetValue()toString()booleanzero()
-
Constructor Details
-
Value
public Value(int value) -
Value
-
Value
public Value(int hValue, int lValue) -
Value
-
-
Method Details
-
compute
-
compute
-
compute
-
getValue
public int getValue()- Returns:
-
getHValue
public int getHValue()- Returns:
-
getLValue
public int getLValue()- Returns:
-
getByteValue
public byte getByteValue()- Returns:
-
zero
public boolean zero()- Returns:
-
bit
public boolean bit(int bit)Get the state of a single bit.- Parameters:
bit-- Returns:
-
bit0
public boolean bit0() -
bit1
public boolean bit1() -
bit2
public boolean bit2() -
bit3
public boolean bit3() -
bit4
public boolean bit4() -
bit5
public boolean bit5() -
bit6
public boolean bit6() -
bit7
public boolean bit7() -
bit8
public boolean bit8() -
bit9
public boolean bit9() -
bit10
public boolean bit10() -
bit11
public boolean bit11() -
bit12
public boolean bit12() -
bit13
public boolean bit13() -
bit14
public boolean bit14() -
bit15
public boolean bit15() -
bit
public void bit(int bit, boolean state)Set the state of a single bit.- Parameters:
bit-state-
-
bit0
public void bit0(boolean state) -
bit1
public void bit1(boolean state) -
bit2
public void bit2(boolean state) -
bit3
public void bit3(boolean state) -
bit4
public void bit4(boolean state) -
bit5
public void bit5(boolean state) -
bit6
public void bit6(boolean state) -
bit7
public void bit7(boolean state) -
bit8
public void bit8(boolean state) -
bit9
public void bit9(boolean state) -
bit10
public void bit10(boolean state) -
bit11
public void bit11(boolean state) -
bit12
public void bit12(boolean state) -
bit13
public void bit13(boolean state) -
bit14
public void bit14(boolean state) -
bit15
public void bit15(boolean state) -
toString
-