]> sigrok.org Git - libsigrok.git/commitdiff
sr: support for SR_HWCAP_FILTER and SR_DI_FILTERS
authorBert Vermeulen <redacted>
Tue, 15 May 2012 20:39:32 +0000 (22:39 +0200)
committerBert Vermeulen <redacted>
Wed, 30 May 2012 21:56:12 +0000 (23:56 +0200)
hwdriver.c
sigrok.h.in

index 43f0762f0ec8b4e61cb3a0b4b8f5a02eb8049585..5e9cb02f51fdb64c4e08b08bdde0b286127abbeb 100644 (file)
@@ -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},
 };
 
index d40d72a15408aa41a73b86ef58f2883b6aa93619..7da26b2f25ae31551b38ae7eeddad676c9696305 100644 (file)
@@ -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,
 };
 
 /*