iio_attr(1)

NAME
iio_attr - list IIO devices, and read/write device attributes

SYNOPSIS
iio_attr [ options ] -d [device] [attr] [value]
iio_attr [ options ] -c [device] [channel] [attr] [value]
iio_attr [ options ] -D [device] [attr] [value]
iio_attr [ options ] -C [attr]
iio_attr -S <arg>
iio_attr -h

DESCRIPTION
iio_attr is a utility for displaying information about local or remote IIO devices. By providing an optional value, iio_attr will attempt to write the new value to the attribute.

COMMANDS

The iio_attr utility has a few main options, which control what the main utility of the application is.

-d, --device-attr
    Read and Write IIO device attributes

-c --channel-attr
    Read and Write IIO channel attributes

-B --buffer-attr
    Read and Write IIO Buffer attributes

-C --context-attr
    Read and Write IIO Context attributes

-D --debug-attr
    Read and Write IIO Debug attributes ##COMMON_COMMANDS_START## ##COMMON_COMMANDS_STOP##

OPTIONS
##COMMON_OPTION_START## ##COMMON_OPTION_STOP##

-i, --input-channel
    Filters channels by input channels only

-o, --output-channel
    Filters channels by output channels only

-s, --scan-channel
    Filters channels by scan channels only

-I, --ignore-case
    When pattern matching devices, channels or attributes, ignore case

-g, --generate-code <arg>
    Generate small C or python snippets that emulate what you are doing on the command line. Argument is a file name 'foo.c' or 'foo.py'

RETURN VALUE
If the specified device is not found, a non-zero exit code is returned.