| 331 | } |
| 332 | |
| 333 | int 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 | |
| 362 | uint64_t DsoSignal::get_vDialValue() |
| 363 | { |
no test coverage detected