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