From: Bert Vermeulen Date: Tue, 15 May 2012 20:39:32 +0000 (+0200) Subject: sr: support for SR_HWCAP_FILTER and SR_DI_FILTERS X-Git-Tag: dsupstream~944 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=3c4976c9c4b9dd09204c7c3797f1122e4b641631;p=libsigrok.git sr: support for SR_HWCAP_FILTER and SR_DI_FILTERS --- diff --git a/hwdriver.c b/hwdriver.c index 43f0762f..5e9cb02f 100644 --- a/hwdriver.c +++ b/hwdriver.c @@ -42,6 +42,7 @@ SR_API struct sr_hwcap_option sr_hwcap_options[] = { "horiz_triggerpos"}, {SR_HWCAP_BUFFERSIZE, SR_T_UINT64, "Buffer size", "buffersize"}, {SR_HWCAP_TIMEBASE, SR_T_RATIONAL, "Time base", "timebase"}, + {SR_HWCAP_FILTER, SR_T_CHAR, "Filter targets", "filter"}, {0, 0, NULL, NULL}, }; diff --git a/sigrok.h.in b/sigrok.h.in index d40d72a1..7da26b2f 100644 --- a/sigrok.h.in +++ b/sigrok.h.in @@ -316,6 +316,9 @@ enum { /** Time base. */ SR_HWCAP_TIMEBASE, + /** Filter. */ + SR_HWCAP_FILTER, + /*--- Special stuff -------------------------------------------------*/ /* TODO: Better description. */ @@ -422,6 +425,8 @@ enum { SR_DI_TIMEBASES, /* Supported trigger sources */ SR_DI_TRIGGER_SOURCES, + /* Supported filter targets */ + SR_DI_FILTERS, }; /*