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

Method commit_trig

DSView/pv/view/logicsignal.cpp:75–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75bool LogicSignal::commit_trig()
76{
77 if (_trig == NONTRIG) {
78 ds_trigger_probe_set(_index_list.front(), 'X', 'X');
79 return false;
80 }
81 else {
82 ds_trigger_set_en(true);
83 if (_trig == POSTRIG)
84 ds_trigger_probe_set(_index_list.front(), 'R', 'X');
85 else if (_trig == HIGTRIG)
86 ds_trigger_probe_set(_index_list.front(), '1', 'X');
87 else if (_trig == NEGTRIG)
88 ds_trigger_probe_set(_index_list.front(), 'F', 'X');
89 else if (_trig == LOWTRIG)
90 ds_trigger_probe_set(_index_list.front(), '0', 'X');
91 else if (_trig == EDGTRIG)
92 ds_trigger_probe_set(_index_list.front(), 'C', 'X');
93 return true;
94 }
95}
96
97void LogicSignal::paint_mid(QPainter &p, int left, int right, QColor fore, QColor back)
98{

Callers 1

try_commit_triggerMethod · 0.80

Calls 2

ds_trigger_probe_setFunction · 0.85
ds_trigger_set_enFunction · 0.85

Tested by

no test coverage detected