Go to the documentation of this file.
33 #ifndef TTA_PORT_CODE_HH
34 #define TTA_PORT_CODE_HH
static const std::string OSKEY_EXTRA_BITS
ObjectState attribute key for the number of extra bits.
static const std::string OSKEY_UNIT_NAME
ObjectState attribute key for the name of the unit.
SocketCodeTable * parent_
The parent socket code table.
static const std::string OSKEY_ENCODING
ObjectState attribute key for the encoding.
std::string unitName() const
unsigned int extraBits_
The number of extra bits in the encoding.
unsigned int extraBits() const
int indexWidth_
The width of the register index in the port code.
bool isMaxIndexSet() const
static const std::string OSKEY_MAX_INDEX
ObjectState attribute key for the max-index attribute.
PortCode(const std::string &unitName, unsigned int encoding, unsigned int extraBits, int indexWidth)
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)
int encodingWidth() const
unsigned maxIndex() const
std::string unitName_
Name of the unit.
static const std::string OSKEY_INDEX_WIDTH
ObjectState attribute key for the widht of register index.
unsigned int encoding_
The encoding.
SocketCodeTable * parent() const
static const std::string OSNAME_PORT_CODE
ObjectState name for PortCode.
unsigned int encoding() const
virtual ObjectState * saveState() const
bool hasEncoding_
Tells whether the port code has an encoding.
void setMaxIndex(unsigned regIndex)