Package be.lmenten.avr.core.descriptor
Class CoreRegisterDescriptor
java.lang.Object
be.lmenten.avr.core.descriptor.CoreRegisterDescriptor
- Author:
- lmenten
-
Constructor Summary
ConstructorsConstructorDescriptionCoreRegisterDescriptor(org.json.simple.JSONObject o)CoreRegisterDescriptor(org.json.simple.JSONObject o, ResourceBundle res) -
Method Summary
Modifier and TypeMethodDescriptionintintgetBitByName(String name)getBitDescription(int bit)getBitName(int bit)booleangetDefaultBitValue(int bit)bytebytegetMask()getName()booleanbooleanbooleanbooleanhasName()booleanisBitUsed(int bit)
-
Constructor Details
-
CoreRegisterDescriptor
public CoreRegisterDescriptor(org.json.simple.JSONObject o) -
CoreRegisterDescriptor
-
-
Method Details
-
hasAddress
public boolean hasAddress() -
getAddress
public int getAddress() -
hasName
public boolean hasName() -
getName
-
getDescription
-
hasDefaultValue
public boolean hasDefaultValue() -
getDefaultValue
public byte getDefaultValue() -
getMask
public byte getMask() -
hasBitNames
public boolean hasBitNames() -
getBitName
-
getBitDescription
-
getBitByName
- Parameters:
name-- Returns:
-
getDefaultBitValue
public boolean getDefaultBitValue(int bit) -
isBitUsed
public boolean isBitUsed(int bit)
-