![]() |
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"
Include dependency graph for hwdriver.c:Go to the source code of this file.
Functions | |
| struct sr_dev_driver ** | sr_driver_list (void) |
| Return the list of supported hardware drivers. | |
| int | sr_driver_init (struct sr_context *ctx, struct sr_dev_driver *driver) |
| Initialize a hardware driver. | |
| GSList * | sr_driver_scan (struct sr_dev_driver *driver, GSList *options) |
| Tell a hardware driver to scan for devices. | |
| 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. | |
| 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. | |
| int | sr_config_commit (const struct sr_dev_inst *sdi) |
| Apply configuration settings to the device hardware. | |
| 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. | |
| struct sr_config_info * | sr_config_info_get (int key) |
| Get information about a configuration key, by key. | |
| struct sr_config_info * | sr_config_info_name_get (const char *optname) |
| Get information about a configuration key, by name. | |
Hardware driver handling in libsigrok.
Definition in file hwdriver.c.
1.7.6.1