8#include "dawn/io/adc_base.hxx"
19 IO_ADC_STREAM_CFG_FIRST = 0,
20 IO_ADC_STREAM_CFG_BATCH_SIZE = 1,
21 IO_ADC_STREAM_CFG_LAST = 31
30#ifdef CONFIG_DAWN_OBJECT_HAS_NAME
31 const char *getClassNameStr()
const override
41 int trigger(uint8_t cmd)
override;
87 int configureDesc(
const CDescObject &desc);
Descriptor wrapper for individual object configuration.
Shared ADC base for fetch/sync/stream implementations.
High-throughput batched ADC stream I/O.
bool isBatch() const
Check if IO supports batch operations.
int onSetObjConfig(SObjectCfg::ObjectCfgId objcfg, uint32_t *data, size_t len)
Pre-update hook for runtime configuration writes.
bool isWrite() const
Check if IO supports write operations.
bool isNotify() const
Check if IO supports notifications.
int doStart()
Start implementation hook.
int getDataImpl(IODataCmn &data, size_t len)
Get data implementation (override in derived classes).
int configure()
Configure object from descriptor data.
int trigger(uint8_t cmd)
Execute a trigger command.
int doStop()
Stop implementation hook.
bool isRead() const
Check if IO supports read operations.
Template helper for creating ObjectIDs for I/O types.
static SObjectId::ObjectId create(bool ts, uint16_t inst)
Create ObjectID with default data type.
@ IO_CLASS_ADC_STREAM
ADC stream (batch/high-throughput)
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.