libsigrokcxx  0.4.0
C++ bindings for libsigrok
Public Member Functions | List of all members
sigrok::UserDevice Class Reference

A virtual device, created by the user. More...

#include <libsigrokcxx/libsigrokcxx.hpp>

+ Inheritance diagram for sigrok::UserDevice:

Public Member Functions

shared_ptr< Channeladd_channel (unsigned int index, const ChannelType *type, string name)
 Add a new channel to this device. More...
 
- Public Member Functions inherited from sigrok::Device
string vendor () const
 Vendor name for this device. More...
 
string model () const
 Model name for this device. More...
 
string version () const
 Version string for this device. More...
 
string serial_number () const
 Serial number for this device. More...
 
string connection_id () const
 Connection ID for this device. More...
 
vector< shared_ptr< Channel > > channels ()
 List of the channels available on this device. More...
 
map< string, shared_ptr< ChannelGroup > > channel_groups ()
 Channel groups available on this device, indexed by name. More...
 
void open ()
 Open device. More...
 
void close ()
 Close device. More...
 
- Public Member Functions inherited from sigrok::Configurable
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...
 
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...
 

Detailed Description

A virtual device, created by the user.

Definition at line 435 of file libsigrokcxx.hpp.

Member Function Documentation

shared_ptr<Channel> sigrok::UserDevice::add_channel ( unsigned int  index,
const ChannelType type,
string  name 
)

Add a new channel to this device.


The documentation for this class was generated from the following file: