]> sigrok.org Git - libsigrok.git/commitdiff
sr: support for SR_HWCAP_COUPLING and SR_DI_COUPLING
authorBert Vermeulen <redacted>
Thu, 17 May 2012 01:16:01 +0000 (03:16 +0200)
committerBert Vermeulen <redacted>
Wed, 30 May 2012 21:56:12 +0000 (23:56 +0200)
hwdriver.c
sigrok.h.in

index 7ec0dd0efe604c4732d81f5ea5f2d92f46acfe57..94603db680adca0e3a9626b3b132ef49dd5a6191 100644 (file)
@@ -44,6 +44,7 @@ SR_API struct sr_hwcap_option sr_hwcap_options[] = {
        {SR_HWCAP_TIMEBASE, SR_T_RATIONAL_PERIOD, "Time base", "timebase"},
        {SR_HWCAP_FILTER, SR_T_CHAR, "Filter targets", "filter"},
        {SR_HWCAP_VDIV, SR_T_RATIONAL_VOLT, "Volts/div", "vdiv"},
+       {SR_HWCAP_COUPLING, SR_T_CHAR, "Coupling", "coupling"},
        {0, 0, NULL, NULL},
 };
 
index 38d7d474ebcf2b4a011bcbe12a6fea940a0e5f6c..18f9404a609c51666113a25cbeee0f186767a4a6 100644 (file)
@@ -323,6 +323,9 @@ enum {
        /** Volts/div. */
        SR_HWCAP_VDIV,
 
+       /** Coupling. */
+       SR_HWCAP_COUPLING,
+
        /*--- Special stuff -------------------------------------------------*/
 
        /* TODO: Better description. */
@@ -433,6 +436,8 @@ enum {
        SR_DI_FILTERS,
        /* Valid volts/div values */
        SR_DI_VDIVS,
+       /* Coupling options */
+       SR_DI_COUPLING,
 };
 
 /*