MCPcopy Create free account
hub / github.com/GENIVI/CANdevStudio / frameIn

Method frameIn

src/components/canload/canload.cpp:95–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95void CanLoad::frameIn(const QCanBusFrame& frame)
96{
97 if(d_ptr->_simStarted) {
98 // Load calculation assumes worst case with bit stuffing.
99 // https://github.com/linux-can/can-utils/blob/master/canframelen.c
100 d_ptr->_totalBits += (frame.hasExtendedFrameFormat() ? 80 : 55) + frame.payload().length() * 10;
101 }
102}
103
104void CanLoad::simBcastRcv(const QJsonObject &msg, const QVariant &param)
105{

Callers 1

canload_test.cppFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected