IntSignalBlock

IntSignalBlock

IntSignalBlock

A block of integer signal data from a data source. More…

#include <datatypes.h>

Inherits from BaseDataType

Public Functions

Name
IntSignalBlock(uint sampleCount =60, uint channelCount =1)
size_tlength() const
size_trows() const
size_tcols() const
virtual QByteArraytoBytes() const override
Serialize the data to a byte array.
IntSignalBlockfromMemory(const void * memory, size_t size)

Public Attributes

Name
VectorXultimestamps
MatrixXsidata

Additional inherited members

Public Types inherited from BaseDataType

Name
enumTypeId { Unknown, ControlCommand, TableRow, Frame, FirmataControl, FirmataData, IntSignalBlock, FloatSignalBlock, Last}
The TypeId enum.

Public Functions inherited from BaseDataType

Name
QStringtypeIdToString(TypeId value)
QStringtypeIdToString(int value)
TypeIdtypeIdFromString(const QString & str)
virtual TypeIdtypeId() const =0
virtual ssize_tmemorySize() const
Calculate the size of the data in memory.
virtual boolwriteToMemory(void * memory, ssize_t size =-1) const
Write the data to a memory block.

Detailed Description

struct IntSignalBlock;

A block of integer signal data from a data source.

This signal data block contains data for up to 16 channels. It contains data as integers and is usually used for digital inputs.

Public Functions Documentation

function IntSignalBlock

inline explicit IntSignalBlock(
    uint sampleCount =60,
    uint channelCount =1
)

function length

inline size_t length() const

function rows

inline size_t rows() const

function cols

inline size_t cols() const

function toBytes

inline virtual QByteArray toBytes() const override

Serialize the data to a byte array.

Reimplements: BaseDataType::toBytes

Serialize the data to a byte array for local transmission.

function fromMemory

static inline IntSignalBlock fromMemory(
    const void * memory,
    size_t size
)

Public Attributes Documentation

variable timestamps

VectorXul timestamps;

variable data

MatrixXsi data;

Updated on 2024-11-06 at 17:10:28 +0000