FirmataData
FirmataData
Output data returned from a Firmata device.
#include <datatypes.h>
Inherits from BaseDataType
Public Functions
| Name | |
|---|---|
| virtual QByteArray | toBytes() const override Serialize the data to a byte array. | 
| FirmataData | fromMemory(const void * memory, size_t size) | 
Public Attributes
| Name | |
|---|---|
| uint8_t | pinId | 
| QString | pinName | 
| uint16_t | value | 
| bool | isDigital | 
| microseconds_t | time | 
Additional inherited members
Public Types inherited from BaseDataType
| Name | |
|---|---|
| enum | TypeId { Unknown, ControlCommand, TableRow, Frame, FirmataControl, FirmataData, IntSignalBlock, FloatSignalBlock, Last} The TypeId enum. | 
Public Functions inherited from BaseDataType
| Name | |
|---|---|
| QString | typeIdToString(TypeId value) | 
| QString | typeIdToString(int value) | 
| TypeId | typeIdFromString(const QString & str) | 
| 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. | 
Public Functions Documentation
function toBytes
inline virtual QByteArray toBytes() const overrideSerialize the data to a byte array.
Reimplements: 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
QString pinName;variable value
uint16_t value;variable isDigital
bool isDigital;variable time
microseconds_t time;Updated on 2025-08-14 at 02:33:43 +0000