11#include "dawn/io/ddata.hxx"
12#include "dawn/prog/common.hxx"
26 PROG_IOMUX_CFG_FIRST = 0,
27 PROG_IOMUX_CFG_CONTROL = 1,
28 PROG_IOMUX_CFG_INPUTS = 2,
29 PROG_IOMUX_CFG_OUTPUT = 3,
30 PROG_IOMUX_CFG_LAST = 31
36#ifdef CONFIG_DAWN_OBJECT_HAS_NAME
37 const char *getClassNameStr()
const override
64 return CProgIOMux::cfgId(
false, 1, PROG_IOMUX_CFG_CONTROL);
69 return CProgIOMux::cfgId(
false, size, PROG_IOMUX_CFG_INPUTS);
74 return CProgIOMux::cfgId(
false, 1, PROG_IOMUX_CFG_OUTPUT);
88 std::vector<SInput> inputs;
96 static int controlNotifierCb(
void *priv,
io_ddata_t *data);
97 static int inputNotifierCb(
void *priv,
io_ddata_t *data);
102 void routeIndex(uint32_t index);
Descriptor wrapper for individual object configuration.
Base class for all I/O objects.
Base class for all PROG (processing) objects.
IO multiplexer: routes selected input to one output.
bool hasThread() const
Check if a background thread is active.
int init()
One-time initialize object after bindings are resolved.
int configure()
Configure object from descriptor data.
int doStart()
Start implementation hook.
int deinit()
De-initialize object.
int doStop()
Stop implementation hook.
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.