From: Bert Vermeulen Date: Thu, 17 May 2012 01:16:01 +0000 (+0200) Subject: sr: support for SR_HWCAP_COUPLING and SR_DI_COUPLING X-Git-Tag: dsupstream~938 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=e1c8b2abfbc5a0aa75cf6fbd8f88e45a8df0fd5b;p=libsigrok.git sr: support for SR_HWCAP_COUPLING and SR_DI_COUPLING --- diff --git a/hwdriver.c b/hwdriver.c index 7ec0dd0e..94603db6 100644 --- a/hwdriver.c +++ b/hwdriver.c @@ -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}, }; diff --git a/sigrok.h.in b/sigrok.h.in index 38d7d474..18f9404a 100644 --- a/sigrok.h.in +++ b/sigrok.h.in @@ -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, }; /*