iio_writedev
is part of the Libiio package, a library that has been developed to ease the development of software interfacing Linux Industrial I/O (IIO) devices. There are four main userspace helper/utilities:
analog@imhotep:~$ iio_writedev -h Usage: iio_writedev [-n <hostname>] [-t <trigger>] [-T <timeout-ms>] [-b <buffer-size>] [-s <samples>] <iio_device> [<channel> ...] Options: -h, --help Show this help and quit. -n, --network Use the network backend with the provided hostname. -u, --uri Use the context with the provided URI. -t, --trigger Use the specified trigger. -b, --buffer-size Size of the capture buffer. Default is 256. -s, --samples Number of samples to write, 0 = infinite. Default is 0. -T, --timeout Buffer timeout in milliseconds. 0 = no timeout -a, --auto Scan for available contexts and if only one is available use it. -c, --cyclic Use cyclic buffer mode.
# iio_readdev -b 100000 cf-ad9361-lpc | iio_writedev -b 100000 cf-ad9361-dds-core-lpc