struct srd_channel;
namespace sigrok {
- class Analog;
- class Channel;
- class Device;
- class Logic;
- class Meta;
- class Packet;
- class Session;
+class Analog;
+class Channel;
+class Device;
+class Logic;
+class Meta;
+class Packet;
+class Session;
}
namespace pv {
namespace data {
class Analog;
-class AnalogSnapshot;
+class AnalogSegment;
class Logic;
-class LogicSnapshot;
+class LogicSegment;
class SignalData;
}
*/
void set_device(std::shared_ptr<sigrok::Device> device);
- void set_file(const std::string &name);
+ /**
+ * Sets a sigrok session file as the capture device.
+ * @param name the path to the file.
+ */
+ void set_session_file(const std::string &name);
void set_default_device();
mutable std::mutex data_mutex_;
std::shared_ptr<data::Logic> logic_data_;
uint64_t cur_samplerate_;
- std::shared_ptr<data::LogicSnapshot> cur_logic_snapshot_;
- std::map< std::shared_ptr<sigrok::Channel>, std::shared_ptr<data::AnalogSnapshot> >
- cur_analog_snapshots_;
+ 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_;