X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=libsigrok.h;h=ab095c9a45630b83207f64bf0c86da386d3fb33c;hb=4472867a9f17101c7849f26fff9dcce7010f7ac7;hp=239820a1169fe09a5c44d484b584a09a010a698d;hpb=d86e0b11c7dabcf8fbbb9f692a070f9679f0ea18;p=libsigrok.git diff --git a/libsigrok.h b/libsigrok.h index 239820a1..ab095c9a 100644 --- a/libsigrok.h +++ b/libsigrok.h @@ -683,6 +683,9 @@ enum { /** The device can demodulate signals. */ SR_CONF_DEMODULATOR, + /** Programmable power supply. */ + SR_CONF_POWER_SUPPLY, + /*--- Driver scan options -------------------------------------------*/ /** @@ -807,6 +810,30 @@ enum { /** The device supports setting the number of analog probes. */ SR_CONF_NUM_ANALOG_PROBES, + /** Output voltage. */ + SR_CONF_OUTPUT_VOLTAGE, + + /** Maximum output voltage. */ + SR_CONF_OUTPUT_VOLTAGE_MAX, + + /** Output current. */ + SR_CONF_OUTPUT_CURRENT, + + /** Maximum output current. */ + SR_CONF_OUTPUT_CURRENT_MAX, + + /** Enabling/disabling output. */ + SR_CONF_OUTPUT_ENABLED, + + /** Channel output configuration. */ + SR_CONF_OUTPUT_CHANNEL, + + /** Over-voltage protection (OVP) */ + SR_CONF_OVER_VOLTAGE_PROTECTION, + + /** Over-current protection (OCP) */ + SR_CONF_OVER_CURRENT_PROTECTION, + /*--- Special stuff -------------------------------------------------*/ /** Scan options supported by the driver. */ @@ -841,18 +868,6 @@ enum { */ SR_CONF_DATA_SOURCE, - /** - * On devices without sample compression (or compression turned off), - * this returns the maximum number of samples that can be stored. This - * can change as probes are disabled, depending on the hardware, so - * should be queried after such changes are made. If not applicable, - * fetching this value with sr_config_get() will return SR_ERR_NA. - * - * SR_CONF_LIMIT_SAMPLES should not be set to a higher value than - * this value, if applicable. - */ - SR_CONF_MAX_UNCOMPRESSED_SAMPLES, - /*--- Acquisition modes ---------------------------------------------*/ /** @@ -960,6 +975,9 @@ struct sr_dev_driver { int (*config_set) (int id, GVariant *data, const struct sr_dev_inst *sdi, const struct sr_probe_group *probe_group); + int (*config_probe_set) (const struct sr_dev_inst *sdi, + struct sr_probe *probe, unsigned int changes); + int (*config_commit) (const struct sr_dev_inst *sdi); int (*config_list) (int info_id, GVariant **data, const struct sr_dev_inst *sdi, const struct sr_probe_group *probe_group);