blob: 399c9924ee389b218c3091f18a398af7d0b12eb7 [file] [edit]
#! /bin/sh
# Copyright 2017 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Gather multi axis attributes.
for attr in calibbias calibscale; do
for path in /sys/bus/iio/devices/iio:device*/*${attr}; do
printf '%s: ' "${path}"
cat "${path}"
done
done
# Gather per device attributes.
for attr in sampling_frequency sampling_frequency_available name location scale; do
for path in /sys/bus/iio/devices/iio:device*/${attr}; do
printf '%s: ' "${path}"
cat "${path}"
done
done
exit 0