|
Dawn Framework 1.0
Universal data acquisition framework for embedded systems
|
Static (compile-time) I/O data buffer (no timestamp). More...
#include <sdata.hxx>
Inherits io_data_cmn_t.
Public Member Functions | |
| io_sdata_t () | |
| Constructor - initialize all data to zero. | |
| size_t | getBufferSize () const |
| Get total buffer size in bytes. | |
| void * | getDataPtr (size_t batch=0) |
| Get pointer to data only (same as getPtr for no-timestamp). | |
| size_t | getDataSize () |
| Get data size in bytes. | |
| size_t | getItems () |
| Get number of items per batch. | |
| void * | getPtr (size_t batch=0) |
| Get pointer to batch (data only, no timestamp). | |
| io_ts_t & | getTs (size_t batch=0) |
| Get timestamp reference (returns shared dummy). | |
| bool | hasTimestamp () |
| This buffer has no per-batch timestamp. | |
| T & | operator() (size_t index, size_t batch=0) |
| Get data element by index and batch. | |
| io_ts_t & | operator[] (size_t batch) |
| Get timestamp (returns shared dummy). | |
Static Public Member Functions | |
| static size_t | getBatch () |
| Get number of batches. | |
| static size_t | getSize () |
| Get element size in bytes. | |
Public Attributes | |
| io_data_nots_s< T, N > | data [M] |
| Array of M batches (each: N elements, no timestamp) | |
| io_ts_t | dummyTs |
| Dummy timestamp for API compatibility. | |
Static (compile-time) I/O data buffer (no timestamp).
|
inline |
Get pointer to data only (same as getPtr for no-timestamp).
| batch | Batch index (default 0). |
Definition at line 138 of file sdata.hxx.
References dawn::io_sdata_t< T, N, M, TS >::data.
|
inline |
|
inline |
Get pointer to batch (data only, no timestamp).
| batch | Batch index (default 0). |
Definition at line 126 of file sdata.hxx.
References dawn::io_sdata_t< T, N, M, TS >::data.
|
inline |
Get timestamp reference (returns shared dummy).
| batch | Batch index (ignored). |
Definition at line 157 of file sdata.hxx.
References dawn::io_sdata_t< T, N, M, TS >::dummyTs.
|
inline |
Get data element by index and batch.
| index | Element index within batch. |
| batch | Batch index (default 0). |
Definition at line 60 of file sdata.hxx.
References dawn::io_sdata_t< T, N, M, TS >::data.
|
inline |
Get timestamp (returns shared dummy).
| batch | Batch index (ignored). |
Definition at line 74 of file sdata.hxx.
References dawn::io_sdata_t< T, N, M, TS >::dummyTs.