libsigrok
0.4.0
sigrok hardware access and backend library
|
Device handling in libsigrok. More...
#include <config.h>
#include <stdio.h>
#include <glib.h>
#include <libsigrok/libsigrok.h>
#include "libsigrok-internal.h"
Go to the source code of this file.
Functions | |
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 struct sr_channel * | sr_next_enabled_channel (const struct sr_dev_inst *sdi, struct sr_channel *cur_channel) |
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. More... | |
int | sr_dev_close (struct sr_dev_inst *sdi) |
Close the specified device. 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.