CANdevStudio
Development tool for CAN bus simulation
Loading...
Searching...
No Matches
CANBusModel Class Reference

The CANBusModel class is used to interface CAN operations with QML stack. More...

#include <canbusmodel.hpp>

Inheritance diagram for CANBusModel:
Collaboration diagram for CANBusModel:

Signals

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.
 

Public Member Functions

 CANBusModel ()
 

Detailed Description

The CANBusModel class is used to interface CAN operations with QML stack.

Constructor & Destructor Documentation

◆ CANBusModel()

CANBusModel::CANBusModel ( )
inline

Member Function Documentation

◆ frameReceived

void CANBusModel::frameReceived ( const quint32 &  frameId,
const QByteArray &  frameData 
)
signal

A CAN frame was received.

Parameters
frameIdframe identifier
frameDataframe payload

◆ sendFrame

void CANBusModel::sendFrame ( const quint32 &  frameId,
const QByteArray &  frameData 
)
signal

Sends a CAN frame.

Parameters
frameIdframe identifier
frameDataframe payload

◆ sendSignal

void CANBusModel::sendSignal ( const QString &  name,
const QVariant &  value 
)
signal

Send a CAN named signal.

Parameters
namesignal name
valuesignal value

◆ signalReceived

void CANBusModel::signalReceived ( const QString &  name,
const QVariant &  value 
)
signal

A CAN signal was received.

Parameters
signalname
signalvalue

◆ 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: