MCPcopy Create free account
hub / github.com/DreamSourceLab/DSView / go_vDialPre

Method go_vDialPre

DSView/pv/view/dsosignal.cpp:178–211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

176}
177
178bool DsoSignal::go_vDialPre(bool manul)
179{
180 if (_autoV && manul)
181 autoV_end();
182
183 if (enabled() && !_vDial->isMin())
184 {
185 if (session->is_running_status())
186 session->refresh(RefreshShort);
187
188 const double pre_vdiv = _vDial->get_value();
189 _vDial->set_sel(_vDial->get_sel() - 1);
190
191 session->get_device()->set_config_uint64(SR_CONF_PROBE_VDIV,
192 _vDial->get_value(), _probe, NULL);
193
194 if (session->is_stopped_status()) {
195 set_stop_scale(_stop_scale * (pre_vdiv/_vDial->get_value()));
196 set_scale(get_view_rect().height());
197 }
198 session->get_device()->set_config_uint16(SR_CONF_PROBE_OFFSET,
199 _zero_offset, _probe, NULL);
200
201 _view->vDial_updated();
202 _view->set_update(_viewport, true);
203 _view->update();
204 return true;
205 }
206 else {
207 if (_autoV && !_autoV_over)
208 autoV_end();
209 return false;
210 }
211}
212
213bool DsoSignal::go_vDialNext(bool manul)
214{

Callers 1

eventFilterMethod · 0.45

Calls 13

isMinMethod · 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