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

Method update_dso_data_scale

DSView/pv/sigsession.cpp:2523–2536  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2521 }
2522
2523 void SigSession::update_dso_data_scale()
2524 {
2525 int mode = _device_agent.get_work_mode();
2526
2527 if (mode == DSO)
2528 {
2529 for(auto s : _signals){
2530 if (s->get_type() == SR_CHANNEL_DSO){
2531 view::DsoSignal *ch = (view::DsoSignal*)s;
2532 _capture_data->get_dso()->set_data_scale(ch->get_scale(), ch->get_index());
2533 }
2534 }
2535 }
2536 }
2537
2538 int64_t SigSession::get_ring_sample_count()
2539 {

Callers 1

signals_changedMethod · 0.80

Calls 6

get_work_modeMethod · 0.80
set_data_scaleMethod · 0.80
get_dsoMethod · 0.80
get_typeMethod · 0.45
get_scaleMethod · 0.45
get_indexMethod · 0.45

Tested by

no test coverage detected