![]() |
libsigrok
0.5.2
sigrok hardware access and backend library
|
Device handling in libsigrok. More...
#include <config.h>#include <glib.h>#include <stdio.h>#include <string.h>#include <libsigrok/libsigrok.h>#include "libsigrok-internal.h"#include "scpi.h"
Include dependency graph for device.c:Go to the source code of this file.
Functions | |
| SR_PRIV void | sr_channel_free_cb (void *p) |
| Wrapper around sr_channel_free(), suitable for glib iterators. More... | |
| int | sr_dev_channel_name_set (struct sr_channel *channel, const char *name) |
| Set the name of the specified channel. More... | |
| int | sr_dev_channel_enable (struct sr_channel *channel, gboolean state) |
| Enable or disable a channel. More... | |
| SR_PRIV gboolean | sr_channels_differ (struct sr_channel *ch1, struct sr_channel *ch2) |
| Compare two channels, return whether they differ. More... | |
| SR_PRIV gboolean | sr_channel_lists_differ (GSList *l1, GSList *l2) |
| Compare two channel lists, return whether they differ. More... | |
| gboolean | sr_dev_has_option (const struct sr_dev_inst *sdi, int key) |
| Determine whether the specified device instance has the specified capability. More... | |
| GArray * | sr_dev_options (const struct sr_dev_driver *driver, const struct sr_dev_inst *sdi, const struct sr_channel_group *cg) |
| Enumerate the configuration options of the specified item. More... | |
| int | sr_dev_config_capabilities_list (const struct sr_dev_inst *sdi, const struct sr_channel_group *cg, const int key) |
| Enumerate the configuration capabilities supported by a device instance for a given configuration key. More... | |
| struct sr_dev_inst * | sr_dev_inst_user_new (const char *vendor, const char *model, const char *version) |
| Allocate and init a new user-generated device instance. More... | |
| int | sr_dev_inst_channel_add (struct sr_dev_inst *sdi, int index, int type, const char *name) |
| Add a new channel to the specified device instance. More... | |
| GSList * | sr_dev_list (const struct sr_dev_driver *driver) |
| Get the list of devices/instances of the specified driver. More... | |
| int | sr_dev_clear (const struct sr_dev_driver *driver) |
| Clear the list of device instances a driver knows about. More... | |
| int | sr_dev_open (struct sr_dev_inst *sdi) |
| Open the specified device instance. More... | |
| int | sr_dev_close (struct sr_dev_inst *sdi) |
| Close the specified device instance. More... | |
| struct sr_dev_driver * | sr_dev_inst_driver_get (const struct sr_dev_inst *sdi) |
| Queries a device instances' driver. More... | |
| const char * | sr_dev_inst_vendor_get (const struct sr_dev_inst *sdi) |
| Queries a device instances' vendor. More... | |
| const char * | sr_dev_inst_model_get (const struct sr_dev_inst *sdi) |
| Queries a device instances' model. More... | |
| const char * | sr_dev_inst_version_get (const struct sr_dev_inst *sdi) |
| Queries a device instances' version. More... | |
| const char * | sr_dev_inst_sernum_get (const struct sr_dev_inst *sdi) |
| Queries a device instances' serial number. More... | |
| const char * | sr_dev_inst_connid_get (const struct sr_dev_inst *sdi) |
| Queries a device instances' connection identifier. More... | |
| GSList * | sr_dev_inst_channels_get (const struct sr_dev_inst *sdi) |
| Queries a device instances' channel list. More... | |
| GSList * | sr_dev_inst_channel_groups_get (const struct sr_dev_inst *sdi) |
| Queries a device instances' channel groups list. More... | |
Device handling in libsigrok.
Definition in file device.c.
1.8.10