8#include "dawn/io/common.hxx"
9#include "dawn/io/timerfd.hxx"
45 LTE_SIGNAL_CFG_FIRST = 0,
47 LTE_SIGNAL_CFG_LAST = 31
55#ifdef CONFIG_DAWN_OBJECT_HAS_NAME
56 const char *getClassNameStr()
const override
67 int getDataImpl(IODataCmn &data,
size_t len)
override;
72#ifdef CONFIG_DAWN_IO_NOTIFY
73 int getFd()
const override;
88#ifdef CONFIG_DAWN_IO_NOTIFY
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_LTE_SIGNAL
LTE signal quality (RSRP/RSRQ/SINR/RSSI)
LTE modem signal-quality I/O (read-only, timer-driven).
size_t getDataDim() const
Get data vector dimension.
int getDataImpl(IODataCmn &data, size_t len)
Get data implementation (override in derived classes).
size_t getDataSize() const
Get data size in bytes.
bool isNotify() const
Check if IO supports notifications.
bool isRead() const
Check if IO supports read operations.
@ LTE_SIGNAL_CFG_INTERVAL
Poll interval, microseconds (DTYPE_UINT32)
int configure()
Configure object from descriptor data.
int doStop()
Stop implementation hook.
bool isBatch() const
Check if IO supports batch operations.
bool isWrite() const
Check if IO supports write operations.
int doStart()
Start implementation hook.
int deinit()
De-initialize object.
int init()
One-time initialize object after bindings are resolved.
Internal helper for timer-based I/O notifications.
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.
@ DAWN_LTE_SIGNAL_DIM
Number of metrics in the vector.
@ DAWN_LTE_SIGNAL_RSRP
Reference Signal Received Power (dBm)
@ DAWN_LTE_SIGNAL_SINR
Signal to Interference + Noise Ratio (dB)
@ DAWN_LTE_SIGNAL_RSRQ
Reference Signal Received Quality (dB)
@ DAWN_LTE_SIGNAL_BAND
Serving E-UTRA band number.
@ OBJTYPE_IO
Input/Output object type.
@ DTYPE_UINT32
Unsigned 32-bit integer (0 to 4294967295).
uint32_t ObjectId
ObjectID type - single 32-bit value.