]> sigrok.org Git - libsigrok.git/blobdiff - include/libsigrok/libsigrok.h
hwdriver: Add configuration key for number of powerline cycles
[libsigrok.git] / include / libsigrok / libsigrok.h
index de3136b94dbfb77fca4167cb52c4893e678a8f94..31ee5dce44e8bace1f3d9af5bd10ca64ce0f287b 100644 (file)
@@ -662,8 +662,6 @@ enum sr_configcap {
        SR_CONF_LIST = (1 << 29),
 };
 
-#define SR_CONF_MASK 0x1fffffff
-
 /** Configuration keys */
 enum sr_configkey {
        /*--- Device classes ------------------------------------------------*/
@@ -978,18 +976,18 @@ enum sr_configkey {
        /** Over-temperature protection (OTP) active. */
        SR_CONF_OVER_TEMPERATURE_PROTECTION_ACTIVE,
 
-       /* Update sr_key_info_config[] (hwdriver.c) upon changes! */
+       /** Under-voltage condition. */
+       SR_CONF_UNDER_VOLTAGE_CONDITION,
 
-       /*--- Special stuff -------------------------------------------------*/
+       /** Under-voltage condition active. */
+       SR_CONF_UNDER_VOLTAGE_CONDITION_ACTIVE,
 
-       /** Scan options supported by the driver. */
-       SR_CONF_SCAN_OPTIONS = 40000,
+       /* Update sr_key_info_config[] (hwdriver.c) upon changes! */
 
-       /** Device options for a particular device. */
-       SR_CONF_DEVICE_OPTIONS,
+       /*--- Special stuff -------------------------------------------------*/
 
        /** Session filename. */
-       SR_CONF_SESSIONFILE,
+       SR_CONF_SESSIONFILE = 40000,
 
        /** The device supports specifying a capturefile to inject. */
        SR_CONF_CAPTUREFILE,
@@ -1017,6 +1015,9 @@ enum sr_configkey {
        /** The device supports setting a probe factor. */
        SR_CONF_PROBE_FACTOR,
 
+       /** Number of powerline cycles for ADC integration time. */
+       SR_CONF_ADC_POWERLINE_CYCLES,
+
        /* Update sr_key_info_config[] (hwdriver.c) upon changes! */
 
        /*--- Acquisition modes, sample limiting ----------------------------*/