| 117 | } |
| 118 | |
| 119 | int 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 | |
| 146 | bool AnalogSignal::measure(const QPointF &p) |
| 147 | { |
nothing calls this directly
no test coverage detected