![]() |
libsigrok
0.3.0
sigrok hardware access and backend library
|
Device handling in libsigrok. More...
#include <stdio.h>#include <glib.h>#include "config.h"#include "libsigrok.h"#include "libsigrok-internal.h"
Include dependency graph for device.c:Go to the source code of this file.
Functions | |
| int | sr_dev_channel_name_set (const struct sr_dev_inst *sdi, int channelnum, const char *name) |
| Set the name of the specified channel in the specified device. | |
| int | sr_dev_channel_enable (const struct sr_dev_inst *sdi, int channelnum, gboolean state) |
| Enable or disable a channel on the specified device. | |
| int | sr_dev_trigger_set (const struct sr_dev_inst *sdi, int channelnum, const char *trigger) |
| Add a trigger to the specified device (and the specified channel). | |
| gboolean | sr_dev_has_option (const struct sr_dev_inst *sdi, int key) |
| Determine whether the specified device instance has the specified capability. | |
| GSList * | sr_dev_list (const struct sr_dev_driver *driver) |
| Get the list of devices/instances of the specified driver. | |
| int | sr_dev_clear (const struct sr_dev_driver *driver) |
| Clear the list of device instances a driver knows about. | |
| int | sr_dev_open (struct sr_dev_inst *sdi) |
| Open the specified device. | |
| int | sr_dev_close (struct sr_dev_inst *sdi) |
| Close the specified device. | |
Device handling in libsigrok.
Definition in file device.c.
1.7.6.1