]> sigrok.org Git - libsigrok.git/blobdiff - hwdriver.c
sr: add support for sr_rational and various HWCAPs and DIs
[libsigrok.git] / hwdriver.c
index 41e99dedcc44f532021d7819e19c6576b68fb70b..43f0762f0ec8b4e61cb3a0b4b8f5a02eb8049585 100644 (file)
@@ -36,6 +36,12 @@ SR_API struct sr_hwcap_option sr_hwcap_options[] = {
        {SR_HWCAP_CAPTURE_RATIO, SR_T_UINT64, "Pre-trigger capture ratio", "captureratio"},
        {SR_HWCAP_PATTERN_MODE, SR_T_CHAR, "Pattern generator mode", "pattern"},
        {SR_HWCAP_RLE, SR_T_BOOL, "Run Length Encoding", "rle"},
+       {SR_HWCAP_TRIGGER_SLOPE, SR_T_UINT64, "Trigger slope", "triggerslope"},
+       {SR_HWCAP_TRIGGER_SOURCE, SR_T_CHAR, "Trigger source", "triggersource"},
+       {SR_HWCAP_HORIZ_TRIGGERPOS, SR_T_FLOAT, "Horizontal trigger position",
+                       "horiz_triggerpos"},
+       {SR_HWCAP_BUFFERSIZE, SR_T_UINT64, "Buffer size", "buffersize"},
+       {SR_HWCAP_TIMEBASE, SR_T_RATIONAL, "Time base", "timebase"},
        {0, 0, NULL, NULL},
 };