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

Method get_factor

DSView/pv/view/dsosignal.cpp:496–508  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

494}
495
496uint64_t DsoSignal::get_factor()
497{
498 uint64_t factor;
499
500 bool ret = session->get_device()->get_config_uint64(SR_CONF_PROBE_FACTOR, factor, _probe, NULL);
501 if (ret) {
502 return factor;
503 }
504 else {
505 dsv_err("ERROR: config_get SR_CONF_PROBE_FACTOR failed.");
506 return 1;
507 }
508}
509
510QString DsoSignal::get_measure(enum DSO_MEASURE_TYPE type)
511{

Callers 2

commit_settingsMethod · 0.45
get_voltageMethod · 0.45

Calls 2

get_config_uint64Method · 0.80
get_deviceMethod · 0.80

Tested by

no test coverage detected