| 73 | } |
| 74 | |
| 75 | bool 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 | |
| 97 | void LogicSignal::paint_mid(QPainter &p, int left, int right, QColor fore, QColor back) |
| 98 | { |
no test coverage detected