Syntalos::FirmataData
Syntalos::FirmataData
Output data returned from a Firmata device.
#include <datatypes.h>
Inherits from Syntalos::BaseDataType
Public Functions
| Name | |
|---|---|
| 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. |
| std::string | typeIdToString(int value) |
| std::string | typeIdToString(TypeId value) |
| TypeId | typeIdFromString(const std::string & str) |
Public Functions Documentation
function 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-03-16 at 19:16:01 +0000