10#include "dawn/io/common.hxx"
11#include "dawn/porting/config.hxx"
26 IO_LEDS_CFG_FIRST = 0,
27 IO_LEDS_CFG_INITVAL = 1,
40#ifdef CONFIG_DAWN_OBJECT_HAS_NAME
41 const char *getClassNameStr()
const override
94 char path[PATH_MAX] = {};
97#ifdef CONFIG_DAWN_IO_TIMESTAMP
101 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.
@ IO_CLASS_LEDS
LED output.
LED output I/O type for controlling LED indicators.
bool isBatch() const
Check if IO supports batch operations.
int init()
One-time initialize object after bindings are resolved.
int setDataImpl(IODataCmn &data)
Set data implementation (override in derived classes).
bool isNotify() const
Check if IO supports notifications.
int getDataImpl(IODataCmn &data, size_t len)
Get data implementation (override in derived classes).
bool isWrite() const
Check if IO supports write operations.
int deinit()
De-initialize object.
size_t getDataDim() const
Get data vector dimension.
int configure()
Configure object from descriptor data.
size_t getDataSize() const
Get data size in bytes.
bool isRead() const
Check if IO supports read operations.
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.
Base interface for I/O data buffers (static and dynamic).
@ OBJTYPE_IO
Input/Output object type.
@ DTYPE_UINT32
Unsigned 32-bit integer (0 to 4294967295).
uint32_t ObjectId
ObjectID type - single 32-bit value.