Syntalos::LineReading

Syntalos::LineReading

Syntalos::LineReading

Scalar reading from a hardware signal line at a moment in time. More…

#include <datatypes.h>

Inherits from Syntalos::BaseDataType

Public Functions

Name
LineReading() =default
virtual booltoBytes(ByteVector & output) const override
Serialize the data to a byte array.
LineReadingfromMemory(const void * memory, size_t size)

Public Attributes

Name
uint16_tlineId
uint32_tvalue
microseconds_ttime

Additional inherited members

Public Types inherited from Syntalos::BaseDataType

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

Public Functions inherited from Syntalos::BaseDataType

Name
virtual~BaseDataType() =default
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.
booltypeIdIsValid(int value)
std::stringtypeIdToString(int value)
std::stringtypeIdToString(TypeId value)
TypeIdtypeIdFromString(const std::string & str)

Protected Functions inherited from Syntalos::BaseDataType

Name
BaseDataType() =default
BaseDataType(const BaseDataType & ) =default
BaseDataType &operator=(const BaseDataType & ) =default
BaseDataType(BaseDataType && ) =default
BaseDataType &operator=(BaseDataType && ) =default

Detailed Description

struct Syntalos::LineReading;

Scalar reading from a hardware signal line at a moment in time.

Inbound counterpart to LineCommand. Used for single timestamped observations from a hardware line; bulk multi-channel acquisitions should use {Int,Float}SignalBlock instead.

Public Functions Documentation

function LineReading

explicit LineReading() =default

function toBytes

inline virtual bool toBytes(
    ByteVector & output
) const override

Serialize the data to a byte array.

Reimplements: Syntalos::BaseDataType::toBytes

Serialize the data to a byte array for local transmission.

function fromMemory

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

Public Attributes Documentation

variable lineId

uint16_t lineId {0};

variable value

uint32_t value {0};

variable time

microseconds_t time {};

Updated on 2026-05-13 at 01:40:12 +0000