@@ -62,21 +62,24 @@ If the specified device is not found, a non-zero exit code is returned.
6262
6363.SH "USAGE"
6464.PP
65- You use iio_readdev in the same way you use many of the other libiio utilities.
66- You must specify a IIO device, and the specific channel to read. Since this is a write, channels must be output.
67- It is easy to use
68- .B iio_attr
69- to find out what the channels are called.
70- .PP
71- This identifies the device, and channel that can be used.
65+ You use iio_writedev in the same way you use many of the other libiio utilities.
66+ You should specify a IIO device, and the specific channel to write. Since this is a write, channels must be output.
67+ If no channel is provided, iio_writedev will write to all output channels.
68+ If no device is provided, iio_writedev will print a few examples:
7269.RS
73- .B \f(CW iio_attr \- a \- o \- c . \fP
70+ .B \f(CW iio_writedev -a \fP
71+ .br
72+ Using auto-detected IIO context at URI "usb:3.10.5"
73+ .br
74+ Example : iio_writedev -u usb:3.10.5 -b 256 -s 1024 cf-ad9361-dds-core-lpc voltage0
75+ .br
76+ Example : iio_writedev -u usb:3.10.5 -b 256 -s 1024 cf-ad9361-dds-core-lpc voltage1
7477.br
75- \f(CW Using auto-detected IIO context at URI " usb:3.10.5" \fP
78+ Example : iio_writedev -u usb:3.10.5 -b 256 -s 1024 cf-ad9361-dds-core-lpc voltage2
7679.br
77- dev ' cf-ad9361-dds-core-lpc', channel 'voltage0' (output, index: 0, format: le:S16/16>>0)
80+ Example : iio_writedev -u usb:3.10.5 -b 256 -s 1024 cf-ad9361-dds-core-lpc voltage3
7881.br
79- dev ' cf-ad9361-dds-core-lpc', channel 'voltage1' (output, index: 1, format: le:S16/16>>0)
82+ Example : iio_writedev -u usb:3.10.5 -b 256 -s 1024 cf-ad9361-dds-core-lpc
8083.RE
8184.PP
8285This sends 1024 samples of I and Q data to the USB attached AD9361. data is taking from standard in, in a binary format.
0 commit comments