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
Modifier and TypeClassDescriptionstatic interface
static interface
static interface
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
bit(int bit)
Get the state of a single bit.void
bit(int bit, boolean state)
Set the state of a single bit.boolean
bit0()
void
bit0(boolean state)
boolean
bit1()
void
bit1(boolean state)
boolean
bit10()
void
bit10(boolean state)
boolean
bit11()
void
bit11(boolean state)
boolean
bit12()
void
bit12(boolean state)
boolean
bit13()
void
bit13(boolean state)
boolean
bit14()
void
bit14(boolean state)
boolean
bit15()
void
bit15(boolean state)
boolean
bit2()
void
bit2(boolean state)
boolean
bit3()
void
bit3(boolean state)
boolean
bit4()
void
bit4(boolean state)
boolean
bit5()
void
bit5(boolean state)
boolean
bit6()
void
bit6(boolean state)
boolean
bit7()
void
bit7(boolean state)
boolean
bit8()
void
bit8(boolean state)
boolean
bit9()
void
bit9(boolean state)
compute(Value.Operation0 operation)
compute(Value.Operation1 operation, Value operand)
compute(Value.Operation2 operation, Value operand, boolean c)
byte
int
int
int
getValue()
toString()
boolean
zero()
-
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
-