]> sigrok.org Git - libsigrok.git/commitdiff
hwdriver: Add SR_CONF_DUTY_CYCLE & SR_CONF_PHASE.
authorTimo Kokkonen <redacted>
Sat, 29 Aug 2020 19:37:46 +0000 (12:37 -0700)
committerGerhard Sittig <redacted>
Mon, 28 Sep 2020 07:02:52 +0000 (09:02 +0200)
include/libsigrok/libsigrok.h
src/hwdriver.c

index c6ed56c52daf318ebcd38e4e5615d64acd17e122..cfff8bdf494e28ed3051b3bd4bdcafaab59382bd 100644 (file)
@@ -1041,6 +1041,12 @@ enum sr_configkey {
        /** The number of digits (e.g. for a DMM). */
        SR_CONF_DIGITS,
 
+       /** Phase of a source signal. */
+       SR_CONF_PHASE,
+
+       /** Duty cycle of a source signal. */
+       SR_CONF_DUTY_CYCLE,
+
        /* Update sr_key_info_config[] (hwdriver.c) upon changes! */
 
        /*--- Special stuff -------------------------------------------------*/
index a24d54d59ef2b1a7a1957b3b7004d37aed49a7ca..f8d54ac8c73427776c3931720a9ec2acc069c870 100644 (file)
@@ -201,6 +201,10 @@ static struct sr_key_info sr_key_info_config[] = {
                "Range", NULL},
        {SR_CONF_DIGITS, SR_T_STRING, "digits",
                "Digits", NULL},
+       {SR_CONF_PHASE, SR_T_FLOAT, "phase",
+               "Phase", NULL},
+       {SR_CONF_DUTY_CYCLE, SR_T_FLOAT, "output_duty_cycle",
+               "Duty Cycle", NULL},
 
        /* Special stuff */
        {SR_CONF_SESSIONFILE, SR_T_STRING, "sessionfile",