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

Method capture_init

DSView/pv/view/view.cpp:224–247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222}
223
224void View::capture_init()
225{
226 int width = get_view_width();
227 if (width == 0){
228 return;
229 }
230
231 int mode = _device_agent->get_work_mode();
232
233 if (mode == DSO)
234 show_trig_cursor(true);
235 else if (!_session->is_repeating())
236 show_trig_cursor(false);
237
238 _maxscale = _session->cur_sampletime() / (width * MaxViewRate);
239
240 if (mode == ANALOG){
241 set_scale_offset(_maxscale, 0);
242 }
243
244 status_clear();
245
246 _trig_hoff = 0;
247}
248
249void View::zoom(double steps)
250{

Callers 1

OnMessageMethod · 0.45

Calls 3

get_work_modeMethod · 0.80
is_repeatingMethod · 0.80
cur_sampletimeMethod · 0.80

Tested by

no test coverage detected