projects
/
sigrok-cli.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c8db717
)
cli: support for SR_HWCAP_FILTER and SR_DI_FILTERS
author
Bert Vermeulen
<bert@biot.com>
Tue, 15 May 2012 20:40:23 +0000
(22:40 +0200)
committer
Bert Vermeulen
<bert@biot.com>
Wed, 30 May 2012 21:56:12 +0000
(23:56 +0200)
sigrok-cli.c
patch
|
blob
|
history
diff --git
a/sigrok-cli.c
b/sigrok-cli.c
index 5e54f7bf9149878a99f9be7fc8af1bd4b9728137..536ecced6a448cb3550d22804fbb89112f96e8a1 100644
(file)
--- a/
sigrok-cli.c
+++ b/
sigrok-cli.c
@@
-320,6
+320,18
@@
static void show_dev_detail(void)
for (i = 0; stropts[i]; i++)
printf(" %s\n", stropts[i]);
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);
} else {
/* Everything else */
printf(" %s\n", hwo->shortname);