The CANBusModel class is used to interface CAN operations with QML stack.
More...
#include <canbusmodel.hpp>
|
void | sendFrame (const quint32 &frameId, const QByteArray &frameData) |
| Sends a CAN frame.
|
|
void | sendSignal (const QString &name, const QVariant &value) |
| Send a CAN named signal.
|
|
void | frameReceived (const quint32 &frameId, const QByteArray &frameData) |
| A CAN frame was received.
|
|
void | signalReceived (const QString &name, const QVariant &value) |
| A CAN signal was received.
|
|
void | simulationStarted () |
| The simulation was started.
|
|
void | simulationStopped () |
| The simulation was stopped.
|
|
The CANBusModel class is used to interface CAN operations with QML stack.
◆ CANBusModel()
CANBusModel::CANBusModel |
( |
| ) |
|
|
inline |
◆ frameReceived
void CANBusModel::frameReceived |
( |
const quint32 & |
frameId, |
|
|
const QByteArray & |
frameData |
|
) |
| |
|
signal |
A CAN frame was received.
- Parameters
-
frameId | frame identifier |
frameData | frame payload |
◆ sendFrame
void CANBusModel::sendFrame |
( |
const quint32 & |
frameId, |
|
|
const QByteArray & |
frameData |
|
) |
| |
|
signal |
Sends a CAN frame.
- Parameters
-
frameId | frame identifier |
frameData | frame payload |
◆ sendSignal
void CANBusModel::sendSignal |
( |
const QString & |
name, |
|
|
const QVariant & |
value |
|
) |
| |
|
signal |
Send a CAN named signal.
- Parameters
-
name | signal name |
value | signal value |
◆ signalReceived
void CANBusModel::signalReceived |
( |
const QString & |
name, |
|
|
const QVariant & |
value |
|
) |
| |
|
signal |
A CAN signal was received.
- Parameters
-
◆ simulationStarted
void CANBusModel::simulationStarted |
( |
| ) |
|
|
signal |
The simulation was started.
◆ simulationStopped
void CANBusModel::simulationStopped |
( |
| ) |
|
|
signal |
The simulation was stopped.
The documentation for this class was generated from the following file: