X-Git-Url: https://sigrok.org/gitweb/?p=sigrok-cli.git;a=blobdiff_plain;f=doc%2Fsigrok-cli.1;h=3ec6768e57484a43d3e9d252a348cda99594f7f2;hp=de0093f53459a968f350bff85e41a1134ef5ba6e;hb=d646926859b22eaf001aa2b6ac33d4aab6ce0add;hpb=c45dd41c508bd84b3886eebfa0ca4b2230b2630b diff --git a/doc/sigrok-cli.1 b/doc/sigrok-cli.1 index de0093f..3ec6768 100644 --- a/doc/sigrok-cli.1 +++ b/doc/sigrok-cli.1 @@ -34,7 +34,10 @@ This is generally only used by developers to easily update the list of supported protocol decoders in the sigrok wiki. .TP \fB\-d, \-\-driver\fP -A driver must always be selected (unless doing a global scan). Use the +Unless doing a global scan, users typically select one of the available +drivers. This can speedup program start, and can avoid false matches for +ambiguous configurations. Selecting a driver also allows to pass more +driver specific options. Use the .BR "\-L " ( "\-\-list\-supported" ")" option to get a list of available drivers. .sp @@ -48,8 +51,10 @@ Openbench Logic Sniffer: .RB " $ " "sigrok\-cli \-\-driver=ols:conn=/dev/ttyACM0" " [...]" .sp Some USB devices don't use a unique VendorID/ProductID combination, and thus -need that specified as well. This also uses the \fBconn\fP option, using -either \fBVendorID.ProductID\fP or \fBbus.address\fP: +need that specified as well. Notice that colons are used to separate the +driver name from the \fBconn\fP option, thus colons cannot be used within the +\fBconn\fP option's argument. To select a specific USB device, use either +\fBVendorID.ProductID\fP or \fBbus.address\fP: .sp USB \fBVendorID.ProductID\fP example: .sp @@ -59,6 +64,11 @@ USB \fBbus.address\fP example: .sp .RB " $ " "sigrok\-cli \-\-driver=uni\-t\-ut61e:conn=4.6" " [...]" .TP +.B "\-D, \-\-dont\-scan" +Do not automatically scan for device drivers in the absence of a +.BR "\-d " ( "\-\-driver" ) +specification. +.TP .BR "\-c, \-\-config " A colon-separated list of device options, where each option takes the form .BR key=value . @@ -327,8 +337,17 @@ Select multiple annotation classes by separating them with a colon: .br .B " \-A i2c=data\-read:data\-write" .sp -You can also select multiple protocol decoders, with an optional selected -annotation class each, by separating them with commas: +Annotation row names will resolve to their respective list of classes. +Row and class names can be used in combination. When names are ambiguous +then class names take precedence. +.sp + $ +.B "sigrok\-cli \-i \-P i2c" +.br +.B " \-A i2c=addr\-data:warnings" +.sp +You can also select multiple protocol decoders, with optionally selected +annotation classes each, by separating them with commas: .sp $ .B "sigrok\-cli \-i \-P i2c,i2cfilter,edid" @@ -415,6 +434,13 @@ This also works for protocol decoders, input modules and output modules: .B "sigrok\-cli \-\-input\-format csv \-\-show $ .B "sigrok\-cli \-\-output\-format bits \-\-show +.sp +This also works for input files, including optional input format specifications: +.sp + $ +.B "sigrok\-cli \-\-input\-file \-\-show + $ +.B "sigrok\-cli \-\-input\-file \-\-input\-format vcd \-\-show .TP .B "\-\-scan" Scan for devices that can be detected automatically.