6#include "dawn/io/uuid.hxx"
8#include <nuttx/board.h>
16 DAWNERR(
"UUID requires DTYPE_UINT8\n");
25 return CONFIG_BOARDCTL_UNIQUEID_SIZE;
42 uuid_buf =
static_cast<uint8_t *
>(data.
getDataPtr());
46 ret = board_uniqueid(uuid_buf);
66 return CONFIG_BOARDCTL_UNIQUEID_SIZE *
sizeof(uint8_t);
int getDataImpl(IODataCmn &data, size_t len)
Get data implementation (override in derived classes).
int init()
One-time initialize object after bindings are resolved.
size_t getDataSize() const
Get data size in bytes.
int setDataImpl(IODataCmn &data)
Set data implementation (override in derived classes).
size_t getDataDim() const
Get data vector dimension.
uint8_t getDtype() const
Get data type field.
Out-of-tree user-extension hooks for Dawn.
Base interface for I/O data buffers (static and dynamic).
virtual void * getDataPtr(size_t batch=0)=0
Get pointer to data only (skips timestamp if present).
@ DTYPE_UINT8
Unsigned 8-bit integer (0 to 255).