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

Method commit_settings

DSView/pv/view/analogsignal.cpp:119–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117}
118
119int AnalogSignal::commit_settings()
120{
121 int ret;
122
123 // -- enable
124 ret = session->get_device()->set_config_bool(SR_CONF_PROBE_EN,
125 enabled(), _probe);
126
127 // -- vdiv
128 ret = session->get_device()->set_config_uint64(SR_CONF_PROBE_VDIV,
129 _probe->vdiv, _probe, NULL);
130
131 // -- coupling
132 ret = session->get_device()->set_config_byte(SR_CONF_PROBE_COUPLING,
133 _probe->coupling, _probe, NULL);
134
135 // -- offset
136 ret = session->get_device()->set_config_uint16(SR_CONF_PROBE_OFFSET,
137 _probe->offset, _probe, NULL);
138
139 // -- trig_value
140 session->get_device()->set_config_byte(SR_CONF_TRIGGER_VALUE,
141 _probe->trig_value, _probe, NULL);
142
143 return ret;
144}
145
146bool AnalogSignal::measure(const QPointF &p)
147{

Callers

nothing calls this directly

Calls 5

set_config_boolMethod · 0.80
get_deviceMethod · 0.80
set_config_uint64Method · 0.80
set_config_byteMethod · 0.80
set_config_uint16Method · 0.80

Tested by

no test coverage detected