PulseView
0.3.0
A Qt-based sigrok GUI
|
#include <session.hpp>
Public Types | |
enum | capture_state { Stopped, AwaitingTrigger, Running } |
Signals | |
void | capture_state_changed (int state) |
void | device_selected () |
void | signals_changed () |
void | trigger_event (util::Timestamp location) |
void | frame_began () |
void | data_received () |
void | frame_ended () |
Public Member Functions | |
Session (DeviceManager &device_manager) | |
~Session () | |
DeviceManager & | device_manager () |
const DeviceManager & | device_manager () const |
std::shared_ptr< sigrok::Session > | session () const |
std::shared_ptr< devices::Device > | device () const |
void | set_device (std::shared_ptr< devices::Device > device) |
void | set_default_device () |
capture_state | get_capture_state () const |
void | start_capture (std::function< void(const QString)> error_handler) |
void | stop_capture () |
std::set< std::shared_ptr< data::SignalData > > | get_data () const |
double | get_samplerate () const |
const std::unordered_set< std::shared_ptr< view::Signal > > | signals () const |
Private Member Functions | |
void | set_capture_state (capture_state state) |
void | update_signals () |
std::shared_ptr< view::Signal > | signal_from_channel (std::shared_ptr< sigrok::Channel > channel) const |
void | sample_thread_proc (std::shared_ptr< devices::Device > device, std::function< void(const QString)> error_handler) |
void | feed_in_header () |
void | feed_in_meta (std::shared_ptr< sigrok::Meta > meta) |
void | feed_in_trigger () |
void | feed_in_frame_begin () |
void | feed_in_logic (std::shared_ptr< sigrok::Logic > logic) |
void | feed_in_analog (std::shared_ptr< sigrok::Analog > analog) |
void | data_feed_in (std::shared_ptr< sigrok::Device > device, std::shared_ptr< sigrok::Packet > packet) |
Private Attributes | |
DeviceManager & | device_manager_ |
std::shared_ptr< devices::Device > | device_ |
std::vector< std::shared_ptr< view::DecodeTrace > > | decode_traces_ |
std::mutex | sampling_mutex_ |
Protects access to capture_state_. More... | |
capture_state | capture_state_ |
boost::shared_mutex | signals_mutex_ |
std::unordered_set< std::shared_ptr< view::Signal > > | signals_ |
std::recursive_mutex | data_mutex_ |
std::shared_ptr< data::Logic > | logic_data_ |
uint64_t | cur_samplerate_ |
std::shared_ptr< data::LogicSegment > | cur_logic_segment_ |
std::map< std::shared_ptr< sigrok::Channel >, std::shared_ptr< data::AnalogSegment > > | cur_analog_segments_ |
std::thread | sampling_thread_ |
bool | out_of_memory_ |
Definition at line 80 of file session.hpp.
Enumerator | |
---|---|
Stopped | |
AwaitingTrigger | |
Running |
Definition at line 85 of file session.hpp.
pv::Session::Session | ( | DeviceManager & | device_manager | ) |
Definition at line 96 of file session.cpp.
pv::Session::~Session | ( | ) |
|
signal |
|
private |
|
signal |
shared_ptr< devices::Device > pv::Session::device | ( | ) | const |
DeviceManager & pv::Session::device_manager | ( | ) |
const DeviceManager & pv::Session::device_manager | ( | ) | const |
Definition at line 114 of file session.cpp.
|
signal |
|
private |
|
private |
Definition at line 520 of file session.cpp.
|
private |
Definition at line 473 of file session.cpp.
|
private |
|
private |
Definition at line 478 of file session.cpp.
|
private |
|
signal |
|
signal |
Definition at line 225 of file moc_session.cpp.
Session::capture_state pv::Session::get_capture_state | ( | ) | const |
set< shared_ptr< data::SignalData > > pv::Session::get_data | ( | ) | const |
double pv::Session::get_samplerate | ( | ) | const |
Definition at line 225 of file session.cpp.
|
private |
Definition at line 438 of file session.cpp.
shared_ptr< sigrok::Session > pv::Session::session | ( | ) | const |
|
private |
void pv::Session::set_default_device | ( | ) |
Definition at line 154 of file session.cpp.
void pv::Session::set_device | ( | std::shared_ptr< devices::Device > | device | ) |
Sets device instance that will be used in the next capture session.
Definition at line 131 of file session.cpp.
|
private |
const unordered_set< shared_ptr< view::Signal > > pv::Session::signals | ( | ) | const |
|
signal |
void pv::Session::start_capture | ( | std::function< void(const QString)> | error_handler | ) |
Definition at line 176 of file session.cpp.
void pv::Session::stop_capture | ( | ) |
Definition at line 203 of file session.cpp.
|
signal |
|
private |
Definition at line 334 of file session.cpp.
|
private |
Definition at line 167 of file session.hpp.
|
private |
Definition at line 177 of file session.hpp.
|
private |
Definition at line 175 of file session.hpp.
|
private |
Definition at line 174 of file session.hpp.
|
mutableprivate |
Definition at line 172 of file session.hpp.
|
private |
Definition at line 164 of file session.hpp.
|
private |
Definition at line 162 of file session.hpp.
|
private |
Definition at line 161 of file session.hpp.
|
private |
Definition at line 173 of file session.hpp.
|
private |
Definition at line 181 of file session.hpp.
|
mutableprivate |
Protects access to capture_state_.
Definition at line 166 of file session.hpp.
|
private |
Definition at line 179 of file session.hpp.
|
private |
Definition at line 170 of file session.hpp.
|
mutableprivate |
Definition at line 169 of file session.hpp.