Package be.lmenten.avr.core.descriptor
Class CoreRegisterDescriptor
java.lang.Object
be.lmenten.avr.core.descriptor.CoreRegisterDescriptor
- Author:
- lmenten
-
Constructor Summary
ConstructorDescriptionCoreRegisterDescriptor(org.json.simple.JSONObject o)
CoreRegisterDescriptor(org.json.simple.JSONObject o, ResourceBundle res)
-
Method Summary
Modifier and TypeMethodDescriptionint
int
getBitByName(String name)
getBitDescription(int bit)
getBitName(int bit)
boolean
getDefaultBitValue(int bit)
byte
byte
getMask()
getName()
boolean
boolean
boolean
boolean
hasName()
boolean
isBitUsed(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)
-