12#include "dawn/io/ddata.hxx"
13#include "dawn/porting/config.hxx"
14#include "dawn/prog/common.hxx"
34 PROG_BITSPLIT_CFG_FIRST = 0,
35 PROG_BITSPLIT_CFG_IOBIND = 1,
36 PROG_BITSPLIT_CFG_BITS = 2,
37 PROG_BITSPLIT_CFG_LAST = 31
43#ifdef CONFIG_DAWN_OBJECT_HAS_NAME
44 const char *getClassNameStr()
const override
66 CProgCommon::PROG_CLASS_BITSPLIT,
75 return CProgBitSplit::cfgId(
false, size, PROG_BITSPLIT_CFG_IOBIND);
80 return CProgBitSplit::cfgId(
false, size, PROG_BITSPLIT_CFG_BITS);
96 std::vector<SBitSplitBind *> binds;
97 std::vector<uint32_t> bitPositions;
101 static int ioNotifierCb(
void *priv,
io_ddata_t *data);
106 void updateBind(SBitSplitBind *bind,
io_ddata_t *data);
Descriptor wrapper for individual object configuration.
Base class for all I/O objects.
Bit demultiplexer: extracts configurable bit slices from the input into separate outputs.
int configure()
Configure object from descriptor data.
int doStart()
Start implementation hook.
int doStop()
Stop implementation hook.
int init()
One-time initialize object after bindings are resolved.
int deinit()
De-initialize object.
bool hasThread() const
Check if a background thread is active.
Base class for all PROG (processing) objects.
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.
Out-of-tree user-extension hooks for Dawn.
@ OBJTYPE_PROG
Program/algorithm object type.
@ DTYPE_ANY
Wildcard data type (matches any actual type).
uint32_t ObjectId
ObjectID type - single 32-bit value.
static ObjectId objectId(uint8_t type, uint16_t cls, uint8_t dtype, uint8_t flags, uint16_t priv)
Construct 32-bit ObjectID from component fields.
Heap-allocated dynamic I/O data buffer.