![]() |
libsigrok
0.3.0
sigrok hardware access and backend library
|
Hardware driver handling in libsigrok. More...
#include <stdlib.h>
#include <stdio.h>
#include <sys/types.h>
#include <dirent.h>
#include <string.h>
#include <glib.h>
#include "config.h"
#include "libsigrok.h"
#include "libsigrok-internal.h"
Go to the source code of this file.
Functions | |
struct sr_dev_driver ** | sr_driver_list (void) |
Return the list of supported hardware drivers. More... | |
int | sr_driver_init (struct sr_context *ctx, struct sr_dev_driver *driver) |
Initialize a hardware driver. More... | |
GSList * | sr_driver_scan (struct sr_dev_driver *driver, GSList *options) |
Tell a hardware driver to scan for devices. More... | |
int | sr_config_get (const struct sr_dev_driver *driver, const struct sr_dev_inst *sdi, const struct sr_channel_group *cg, int key, GVariant **data) |
Query value of a configuration key at the given driver or device instance. More... | |
int | sr_config_set (const struct sr_dev_inst *sdi, const struct sr_channel_group *cg, int key, GVariant *data) |
Set value of a configuration key in a device instance. More... | |
int | sr_config_commit (const struct sr_dev_inst *sdi) |
Apply configuration settings to the device hardware. More... | |
int | sr_config_list (const struct sr_dev_driver *driver, const struct sr_dev_inst *sdi, const struct sr_channel_group *cg, int key, GVariant **data) |
List all possible values for a configuration key. More... | |
const struct sr_config_info * | sr_config_info_get (int key) |
Get information about a configuration key, by key. More... | |
const struct sr_config_info * | sr_config_info_name_get (const char *optname) |
Get information about a configuration key, by name. More... | |
Hardware driver handling in libsigrok.
Definition in file hwdriver.c.