FloatSignalBlock
FloatSignalBlock
A block of floating-point signal data from an analog data source. More…
#include <datatypes.h>
Inherits from BaseDataType
Public Functions
| Name | |
|---|---|
| FloatSignalBlock(uint sampleCount =60, uint channelCount =1) | |
| FloatSignalBlock(const std::vector< float > & floatVec, uint timestamp) | |
| size_t | length() const |
| size_t | rows() const |
| size_t | cols() const |
| virtual QByteArray | toBytes() const override Serialize the data to a byte array. |
| FloatSignalBlock | fromMemory(const void * memory, size_t size) |
Public Attributes
| Name | |
|---|---|
| VectorXul | timestamps |
| MatrixXd | data |
Additional inherited members
Public Types inherited from BaseDataType
| Name | |
|---|---|
| enum | TypeId { Unknown, ControlCommand, TableRow, Frame, FirmataControl, FirmataData, IntSignalBlock, FloatSignalBlock, Last} The TypeId enum. |
Public Functions inherited from BaseDataType
| Name | |
|---|---|
| QString | typeIdToString(TypeId value) |
| QString | typeIdToString(int value) |
| TypeId | typeIdFromString(const QString & str) |
| virtual TypeId | typeId() const =0 |
| virtual ssize_t | memorySize() const Calculate the size of the data in memory. |
| virtual bool | writeToMemory(void * memory, ssize_t size =-1) const Write the data to a memory block. |
Detailed Description
struct FloatSignalBlock;A block of floating-point signal data from an analog data source.
This signal data block contains data for up to 16 channels. It usually contains possibly preprocessed / prefiltered analog data.
Public Functions Documentation
function FloatSignalBlock
inline explicit FloatSignalBlock(
uint sampleCount =60,
uint channelCount =1
)function FloatSignalBlock
inline explicit FloatSignalBlock(
const std::vector< float > & floatVec,
uint timestamp
)function length
inline size_t length() constfunction rows
inline size_t rows() constfunction cols
inline size_t cols() constfunction toBytes
inline virtual QByteArray toBytes() const overrideSerialize the data to a byte array.
Reimplements: BaseDataType::toBytes
Serialize the data to a byte array for local transmission.
function fromMemory
static inline FloatSignalBlock fromMemory(
const void * memory,
size_t size
)Public Attributes Documentation
variable timestamps
VectorXul timestamps;variable data
MatrixXd data;Updated on 2025-08-14 at 02:33:43 +0000