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

Method rcvFrame

src/components/cansignalencoder/cansignalencodermodel.cpp:83–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83void CanSignalEncoderModel::rcvFrame(const QCanBusFrame& frame)
84{
85 bool ret = _rxQueue.try_enqueue(std::make_shared<CanRawData>(frame));
86
87 if (ret) {
88 emit dataUpdated(0); // Data ready on port 0
89 } else {
90 cds_warn("Queue full. Frame dropped");
91 }
92}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected