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

Method commit_settings

DSView/pv/view/dsosignal.cpp:333–360  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

331}
332
333int DsoSignal::commit_settings()
334{
335 int ret;
336
337 // -- enable
338 ret = session->get_device()->set_config_bool(SR_CONF_PROBE_EN,
339 enabled(), _probe, NULL);
340
341 // -- vdiv
342 ret = session->get_device()->set_config_uint64(SR_CONF_PROBE_VDIV,
343 _vDial->get_value(), _probe, NULL);
344 ret = session->get_device()->set_config_uint64(SR_CONF_PROBE_FACTOR,
345 _vDial->get_factor(), _probe, NULL);
346
347 // -- coupling
348 ret = session->get_device()->set_config_byte(SR_CONF_PROBE_COUPLING,
349 _acCoupling, _probe, NULL);
350
351 // -- offset
352 ret = session->get_device()->set_config_uint16(SR_CONF_PROBE_OFFSET,
353 _zero_offset, _probe, NULL);
354
355 // -- trig_value
356 session->get_device()->set_config_byte(SR_CONF_TRIGGER_VALUE,
357 _trig_value, _probe, NULL);
358
359 return ret;
360}
361
362uint64_t DsoSignal::get_vDialValue()
363{

Callers 3

able_to_closeMethod · 0.45
load_config_from_jsonMethod · 0.45
OnMessageMethod · 0.45

Calls 7

set_config_boolMethod · 0.80
get_deviceMethod · 0.80
set_config_uint64Method · 0.80
set_config_byteMethod · 0.80
set_config_uint16Method · 0.80
get_valueMethod · 0.45
get_factorMethod · 0.45

Tested by

no test coverage detected