blob: 71a382f58e997107215e6d9ed070e19a9ad0c0aa [file] [log] [blame]
#! /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 raw; 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 label scale; do
for path in /sys/bus/iio/devices/iio:device*/${attr}; do
printf '%s: ' "${path}"
cat "${path}"
done
done
exit 0