libsigrok  0.3.0
sigrok hardware access and backend library
Functions
device.c File Reference

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. More...
 
int sr_dev_channel_enable (const struct sr_dev_inst *sdi, int channelnum, gboolean state)
 Enable or disable a channel on the specified device. More...
 
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). 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...
 
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...
 

Detailed Description

Device handling in libsigrok.

Definition in file device.c.