for (i = 0; stropts[i]; i++)
printf(" %s\n", stropts[i]);
+ } else if (hwo->hwcap == SR_HWCAP_FILTER) {
+ /* Supported trigger sources */
+ printf(" %s", hwo->shortname);
+ if (sr_dev_info_get(dev, SR_DI_FILTERS,
+ (const void **)&stropts) != SR_OK) {
+ printf("\n");
+ continue;
+ }
+ printf(" - supported filter targets:\n");
+ for (i = 0; stropts[i]; i++)
+ printf(" %s\n", stropts[i]);
+
} else {
/* Everything else */
printf(" %s\n", hwo->shortname);
ret = dev->driver->dev_config_set(dev->driver_index,
sr_hwcap_options[i].hwcap, &tmp_float);
break;
- case SR_T_RATIONAL:
+ case SR_T_RATIONAL_PERIOD:
if ((ret = sr_parse_period(value, &tmp_rat)) != SR_OK)
break;
ret = dev->driver->dev_config_set(dev->driver_index,