33#ifndef TTA_PORT_CODE_HH
34#define TTA_PORT_CODE_HH
virtual ObjectState * saveState() const
static const std::string OSNAME_PORT_CODE
ObjectState name for PortCode.
std::string unitName_
Name of the unit.
void setMaxIndex(unsigned regIndex)
unsigned int encoding_
The encoding.
static const std::string OSKEY_INDEX_WIDTH
ObjectState attribute key for the widht of register index.
static const std::string OSKEY_EXTRA_BITS
ObjectState attribute key for the number of extra bits.
unsigned int extraBits_
The number of extra bits in the encoding.
std::string unitName() const
static const std::string OSKEY_ENCODING
ObjectState attribute key for the encoding.
bool hasEncoding_
Tells whether the port code has an encoding.
SocketCodeTable * parent() const
int encodingWidth() const
static const std::string OSKEY_UNIT_NAME
ObjectState attribute key for the name of the unit.
unsigned int extraBits() const
bool isMaxIndexSet() const
unsigned maxRegIndex_
In case this is set to non-zero, the whole width of the index field is not used because the number of...
void setParent(SocketCodeTable *parent)
SocketCodeTable * parent_
The parent socket code table.
int indexWidth_
The width of the register index in the port code.
static const std::string OSKEY_MAX_INDEX
ObjectState attribute key for the max-index attribute.
unsigned int encoding() const
unsigned maxIndex() const