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

Method go_vDialNext

DSView/pv/view/dsosignal.cpp:213–246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

211}
212
213bool DsoSignal::go_vDialNext(bool manul)
214{
215 if (_autoV && manul)
216 autoV_end();
217
218 if (enabled() && !_vDial->isMax())
219 {
220 if (session->is_running_status())
221 session->refresh(RefreshShort);
222
223 const double pre_vdiv = _vDial->get_value();
224 _vDial->set_sel(_vDial->get_sel() + 1);
225
226 session->get_device()->set_config_uint64(SR_CONF_PROBE_VDIV,
227 _vDial->get_value(), _probe, NULL);
228
229 if (session->is_stopped_status()) {
230 set_stop_scale(_stop_scale * (pre_vdiv/_vDial->get_value()));
231 set_scale(get_view_rect().height());
232 }
233 session->get_device()->set_config_uint16(SR_CONF_PROBE_OFFSET,
234 _zero_offset, _probe, NULL);
235
236 _view->vDial_updated();
237 _view->set_update(_viewport, true);
238 _view->update();
239 return true;
240 }
241 else {
242 if (_autoV && !_autoV_over)
243 autoV_end();
244 return false;
245 }
246}
247
248bool DsoSignal::load_settings()
249{

Callers 1

eventFilterMethod · 0.45

Calls 13

isMaxMethod · 0.80
is_running_statusMethod · 0.80
refreshMethod · 0.80
set_selMethod · 0.80
get_selMethod · 0.80
set_config_uint64Method · 0.80
get_deviceMethod · 0.80
is_stopped_statusMethod · 0.80
set_config_uint16Method · 0.80
vDial_updatedMethod · 0.80
set_updateMethod · 0.80
get_valueMethod · 0.45

Tested by

no test coverage detected