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 bool | toBytes(ByteVector & output) const override Serialize the data to a byte array. |
| LineReading | fromMemory(const void * memory, size_t size) |
Public Attributes
| Name | |
|---|---|
| uint16_t | lineId |
| uint32_t | value |
| microseconds_t | time |
Additional inherited members
Public Types inherited from Syntalos::BaseDataType
| Name | |
|---|---|
| enum | TypeId { Unknown, ControlCommand, TableRow, Frame, LineCommand, LineReading, IntSignalBlock, FloatSignalBlock, Last} The TypeId enum. |
Public Functions inherited from Syntalos::BaseDataType
| Name | |
|---|---|
| virtual | ~BaseDataType() =default |
| 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. |
| bool | typeIdIsValid(int value) |
| std::string | typeIdToString(int value) |
| std::string | typeIdToString(TypeId value) |
| TypeId | typeIdFromString(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() =defaultfunction toBytes
inline virtual bool toBytes(
ByteVector & output
) const overrideSerialize 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