MCPcopy Create free account
hub / github.com/collin80/SavvyCAN / setFilter

Method setFilter

scriptcontainer.cpp:205–217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203}
204
205void CANScriptHelper::setFilter(QJSValue id, QJSValue mask, QJSValue bus)
206{
207 uint32_t idVal = id.toUInt();
208 uint32_t maskVal = mask.toUInt();
209 int busVal = bus.toInt();
210 qDebug() << "Called set filter";
211 qDebug() << idVal << "*" << maskVal << "*" << busVal;
212 CANFilter filter;
213 filter.setFilter(idVal, maskVal, busVal);
214 filters.append(filter);
215
216 CANConManager::getInstance()->addTargettedFrame(busVal, idVal, maskVal, this);
217}
218
219void CANScriptHelper::clearFilters()
220{

Callers

nothing calls this directly

Calls 3

appendMethod · 0.80
addTargettedFrameMethod · 0.45
addFilterMethod · 0.45

Tested by

no test coverage detected