23 #include <libsigrokcxx/libsigrokcxx.hpp>
30 using sigrok::ConfigKey;
31 using sigrok::Capability;
34 using Glib::VariantBase;
47 session_->remove_datafeed_callbacks();
72 if (!
device_->config_check(key, Capability::GET))
75 return VariantBase::cast_dynamic<Glib::Variant<guint64>>(
76 device_->config_get(ConfigKey::SAMPLERATE)).
get();
std::shared_ptr< sigrok::Device > device() const
T read_config(const sigrok::ConfigKey *key, const T default_value=0)
std::shared_ptr< sigrok::Session > session_
std::shared_ptr< sigrok::Session > session() const
std::shared_ptr< sigrok::Device > device_