6#include "dawn/common/descobject.hxx"
8#include "dawn/debug.hxx"
19 return cfgobj.objid.v;
24 return cfgobj.objid.s.cls;
29 return cfgobj.objid.s.type;
34 return cfgobj.objid.s.dtype;
46 (
reinterpret_cast<uint32_t *
>(&cfgobj.items)) + offset);
74 return (
reinterpret_cast<uint32_t *
>(&cfgobj))[offset];
size_t getSizeBytes() const
Get total size in bytes for this object definition.
size_t getSize() const
Get number of configuration items for this object.
SObjectCfg::SObjectCfgItem * objectCfgItemId(SObjectCfg::ObjectCfgId id) const
Get configuration item with specified ConfigID.
uint8_t getObjectType() const
Get object type field.
SObjectCfg::SObjectCfgItem * objectCfgItemAtOffset(size_t offset) const
Get configuration item at specified offset.
uint32_t getAtOffset(size_t offset) const
Get 32-bit word at specified offset.
SObjectCfg::SObjectCfgItem * objectCfgItemNext(size_t &offset) const
Get config item at current offset and advance past it.
uint16_t getObjectCls() const
Get object class field.
SObjectId::ObjectId getObjectIdV() const
Get object identifier as raw 32-bit value.
uint8_t getObjectDtype() const
Get data type field.
SObjectCfg::SObjectCfgData * getCfg() const
Get underlying descriptor data structure.
SObjectId::UObjectId & getObjectId() const
Get object identifier as union structure.
uint32_t ObjectCfgId
ConfigID type - single 32-bit value.
static SObjectCfgItem * objectCfgFromCfgId(const SObjectCfgData &cfg, ObjectCfgId id)
Get item from configuration ID.
Out-of-tree user-extension hooks for Dawn.
Object configuration data container.
Single configuration item within object.
UObjectCfgId cfgid
Configuration ID header (type, class, id, size, rw, dtype).
uint32_t ObjectId
ObjectID type - single 32-bit value.
struct dawn::SObjectCfg::UObjectCfgId::@334307326077356333363326153167141302007100111136 s
Bit-field structure for named member access.
uint32_t size
Configuration data size in 32-bit words (bits 5-14, max 1023).
32-bit encoded object identifier (union with bit field).