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

Method SigSession

DSView/pv/sigsession.cpp:80–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78 SigSession *SigSession::_session = NULL;
79
80 SigSession::SigSession()
81 {
82 // TODO: This should not be necessary
83 _session = this;
84
85 _map_zoom = 0;
86 _repeat_hold_prg = 0;
87 _repeat_intvl = 1;
88 _error = No_err;
89 _is_instant = false;
90 _is_working = false;
91 _is_saving = false;
92 _device_status = ST_INIT;
93 _noData_cnt = 0;
94 _data_lock = false;
95 _data_updated = false;
96 _clt_mode = COLLECT_SINGLE;
97 _rt_refresh_time_id = 0;
98 _rt_ck_refresh_time_id = 0;
99 _view_data = NULL;
100 _capture_data = NULL;
101 _is_stream_mode = false;
102 _is_action = false;
103 _decoder_pannel = NULL;
104 _is_triged = false;
105 _dso_status_valid = false;
106
107 _data_list.push_back(new SessionData());
108 _data_list.push_back(new SessionData());
109 _view_data = _data_list[0];
110 _capture_data = _data_list[0];
111
112 this->add_msg_listener(this);
113
114 _decoder_model = new pv::data::DecoderModel(NULL);
115
116 _lissajous_trace = NULL;
117 _math_trace = NULL;
118 _is_decoding = false;
119 _bClose = false;
120 _callback = NULL;
121 _work_time_id = 0;
122 _capture_times = 0;
123 _confirm_store_time_id = 0;
124 _repeat_wait_prog_step = 10;
125
126 _device_agent.set_callback(this);
127
128 _feed_timer.SetCallback(std::bind(&SigSession::feed_timeout, this));
129 _repeat_timer.SetCallback(std::bind(&SigSession::repeat_capture_wait_timeout, this));
130 _repeat_wait_prog_timer.SetCallback(std::bind(&SigSession::repeat_wait_prog_timeout, this));
131 _refresh_rt_timer.SetCallback(std::bind(&SigSession::realtime_refresh_timeout, this));
132 _trig_check_timer.SetCallback(std::bind(&SigSession::trig_check_timeout, this));
133 }
134
135 SigSession::SigSession(SigSession &o)
136 {

Callers

nothing calls this directly

Calls 3

add_msg_listenerMethod · 0.95
set_callbackMethod · 0.45
SetCallbackMethod · 0.45

Tested by

no test coverage detected