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

Method set_zero_ratio

DSView/pv/view/analogsignal.cpp:317–325  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

315}
316
317void AnalogSignal::set_zero_ratio(double ratio)
318{
319 if (_view->session().is_running_status())
320 return;
321
322 _zero_offset = ratio2value(ratio);
323 session->get_device()->set_config_uint16(SR_CONF_PROBE_OFFSET,
324 _zero_offset, _probe, NULL);
325}
326
327double AnalogSignal::get_zero_ratio()
328{

Callers

nothing calls this directly

Calls 4

is_running_statusMethod · 0.80
sessionMethod · 0.80
set_config_uint16Method · 0.80
get_deviceMethod · 0.80

Tested by

no test coverage detected