Syntalos::FirmataData
Syntalos::FirmataData
Data received from a Firmata device.
#include <datatypes.h>
Inherits from Syntalos::BaseDataType
Public Functions
| Name | |
|---|---|
| FirmataData() =default | |
| virtual bool | toBytes(ByteVector & output) const override Serialize the data to a byte array. |
| FirmataData | fromMemory(const void * memory, size_t size) |
Public Attributes
| Name | |
|---|---|
| uint8_t | pinId |
| std::string | pinName |
| uint16_t | value |
| bool | isDigital |
| microseconds_t | time |
Additional inherited members
Public Types inherited from Syntalos::BaseDataType
| Name | |
|---|---|
| enum | TypeId { Unknown, ControlCommand, TableRow, Frame, FirmataControl, FirmataData, 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 |
Public Functions Documentation
function FirmataData
explicit FirmataData() =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 FirmataData fromMemory(
const void * memory,
size_t size
)Public Attributes Documentation
variable pinId
uint8_t pinId {};variable pinName
std::string pinName;variable value
uint16_t value {};variable isDigital
bool isDigital {};variable time
microseconds_t time {};Updated on 2026-04-24 at 23:36:58 +0000