libsigrokcxx
unreleased development snapshot
C++ bindings for libsigrok
|
A hardware driver provided by the library. More...
#include <libsigrokcxx/libsigrokcxx.hpp>
Public Member Functions | |
std::string | name () const |
Name of this driver. More... | |
std::string | long_name () const |
Long name for this driver. More... | |
std::set< const ConfigKey * > | scan_options () const |
Scan options supported by this driver. More... | |
std::vector< std::shared_ptr< HardwareDevice > > | scan (std::map< const ConfigKey *, Glib::VariantBase > options=std::map< const ConfigKey *, Glib::VariantBase >()) |
Scan for devices and return a list of devices found. More... | |
Public Member Functions inherited from sigrok::Configurable | |
std::set< const ConfigKey * > | config_keys () const |
Supported configuration keys. More... | |
Glib::VariantBase | config_get (const ConfigKey *key) const |
Read configuration for the given key. More... | |
void | config_set (const ConfigKey *key, const Glib::VariantBase &value) |
Set configuration for the given key to a specified value. More... | |
Glib::VariantContainerBase | config_list (const ConfigKey *key) const |
Enumerate available values for the given configuration key. More... | |
std::set< const Capability * > | config_capabilities (const ConfigKey *key) const |
Enumerate configuration capabilities for the given configuration key. More... | |
bool | config_check (const ConfigKey *key, const Capability *capability) const |
Check whether a configuration capability is supported for a given key. More... | |
A hardware driver provided by the library.
Definition at line 353 of file libsigrokcxx.hpp.
std::string sigrok::Driver::name | ( | ) | const |
Name of this driver.
std::string sigrok::Driver::long_name | ( | ) | const |
Long name for this driver.
std::set<const ConfigKey *> sigrok::Driver::scan_options | ( | ) | const |
Scan options supported by this driver.
std::vector<std::shared_ptr<HardwareDevice> > sigrok::Driver::scan | ( | std::map< const ConfigKey *, Glib::VariantBase > | options = std::map< const ConfigKey *, Glib::VariantBase >() | ) |
Scan for devices and return a list of devices found.
options | Mapping of (ConfigKey, value) pairs. |