MCPcopy Index your code
hub / github.com/DreamSourceLab/DSView / edges

Method edges

DSView/pv/view/logicsignal.cpp:443–452  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

441}
442
443bool LogicSignal::edges(const QPointF &p, uint64_t start, uint64_t &rising, uint64_t &falling)
444{
445 uint64_t end;
446 const float gap = abs(p.y() - get_y());
447 if (gap < get_totalHeight() * 0.5) {
448 end = _data->samplerate() * _view->scale() * (_view->offset() + p.x());
449 return edges(end, start, rising, falling);
450 }
451 return false;
452}
453
454bool LogicSignal::edges(uint64_t end, uint64_t start, uint64_t &rising, uint64_t &falling)
455{

Callers 2

measureMethod · 0.80
update_edgeMethod · 0.80

Calls 8

scaleMethod · 0.80
offsetMethod · 0.80
emptyMethod · 0.80
get_sampleMethod · 0.80
get_nxt_edgeMethod · 0.80
samplerateMethod · 0.45
has_dataMethod · 0.45
get_ring_sample_countMethod · 0.45

Tested by

no test coverage detected