TimeCanFrame
Source locationmrx/can/TimeCanFrame.hpp
Stores a complete CAN frame with its capture time and SocketCAN interface name.
The value preserves the complete Qt frame, including frame flags and payload length. Each constructor records the current wall-clock time in milliseconds when the capture value is created.
Public Attributes
Section titled “Public Attributes”| Return | Name | Description |
|---|---|---|
qint64 | timestamp | Millisecond timestamp captured when the frame wrapper was created. |
QCanBusFrame | frame | Complete Qt frame, including its flags and payload. |
QString | interfaceName | Name of the SocketCAN interface that produced the frame. |
timestamp
Section titled “timestamp”Source locationmrx/can/TimeCanFrame.hpp
Millisecond timestamp captured when the frame wrapper was created.
The value is generated using QDateTime::currentMSecsSinceEpoch().
Source locationmrx/can/TimeCanFrame.hpp
Complete Qt frame, including its flags and payload.
interfaceName
Section titled “interfaceName”Source locationmrx/can/TimeCanFrame.hpp
Name of the SocketCAN interface that produced the frame.
Public Methods
Section titled “Public Methods”| Return | Name | Description |
|---|---|---|
TimeCanFrame | Constructs an empty frame wrapper with a freshly captured timestamp. | |
TimeCanFrame | Constructs a capture value from a complete Qt frame and interface name. |
TimeCanFrame
Section titled “TimeCanFrame”Source locationmrx/can/TimeCanFrame.hpp
Constructs an empty frame wrapper with a freshly captured timestamp.
TimeCanFrame
Section titled “TimeCanFrame”Source locationmrx/can/TimeCanFrame.hpp
Constructs a capture value from a complete Qt frame and interface name.
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
_frame | const QCanBusFrame& | Complete Qt CAN frame to store. |
_interfaceName | const QString& | SocketCAN interface that produced the frame. |