10#include "dawn/io/common.hxx"
11#include "dawn/porting/config.hxx"
27 IO_DUMMY_CFG_FIRST = 0,
28 IO_DUMMY_CFG_INITVAL = 1,
30 IO_DUMMY_CFG_LAST = 31
42#ifdef CONFIG_DAWN_IO_TIMESTAMP
50#ifdef CONFIG_DAWN_OBJECT_HAS_NAME
51 const char *getClassNameStr()
const override
63#ifdef CONFIG_DAWN_IO_NOTIFY
64 int getFd()
const override;
124 const uint32_t *cfgval;
131#ifdef CONFIG_DAWN_IO_TIMESTAMP
135 int setVal(
const void *v,
size_t d);
137 int configureDesc(
const CDescObject &desc);
Descriptor wrapper for individual object configuration.
Template helper for creating ObjectIDs for I/O types.
static SObjectId::ObjectId create(bool ts, uint16_t inst)
Create ObjectID with default data type.
Base class for all I/O objects.
virtual int getFd() const
Get file descriptor for notifications.
@ IO_CLASS_DUMMY
Dummy I/O (for testing)
Dummy I/O type for testing and simulation.
int deinit()
De-initialize object.
int setDataImpl(IODataCmn &data)
Set data implementation (override in derived classes).
int init()
One-time initialize object after bindings are resolved.
bool isBatch() const
Check if IO supports batch operations.
int getDataImpl(IODataCmn &data, size_t len)
Get data implementation (override in derived classes).
size_t getDataSize() const
Get data size in bytes.
int configure()
Configure object from descriptor data.
bool isWrite() const
Check if IO supports write operations.
bool isNotify() const
Check if IO supports notifications.
size_t getDataDim() const
Get data vector dimension.
bool isRead() const
Check if IO supports read operations.
size_t getDtypeSize() const
Get size of this object's data type.
static ObjectCfgId objectCfg(uint8_t type, uint16_t cls, uint8_t dtype, bool rw, uint16_t size, uint8_t id)
Construct 32-bit ConfigID from component fields.
uint32_t ObjectCfgId
ConfigID type - single 32-bit value.
static size_t ID_MAX
Configuration ID field constants and bit shift positions.
Out-of-tree user-extension hooks for Dawn.
Base interface for I/O data buffers (static and dynamic).
@ OBJTYPE_IO
Input/Output object type.
EObjectDataType
Data types supported by Dawn framework.
@ DTYPE_UINT64
Unsigned 64-bit integer.
@ DTYPE_DOUBLE
IEEE 754 double-precision floating point (64-bit).
@ DTYPE_INT64
Signed 64-bit integer.
@ DTYPE_UINT32
Unsigned 32-bit integer (0 to 4294967295).
uint32_t ObjectId
ObjectID type - single 32-bit value.