sphinx.addnodesdocument)}( rawsourcechildren]( translations LanguagesNode)}(hhh](h pending_xref)}(hhh]docutils.nodesTextChinese (Simplified)}parenthsba attributes}(ids]classes]names]dupnames]backrefs] refdomainstdreftypedoc reftarget/translations/zh_CN/iio/adxl313modnameN classnameN refexplicitutagnamehhh ubh)}(hhh]hChinese (Traditional)}hh2sbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget/translations/zh_TW/iio/adxl313modnameN classnameN refexplicituh1hhh ubh)}(hhh]hItalian}hhFsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget/translations/it_IT/iio/adxl313modnameN classnameN refexplicituh1hhh ubh)}(hhh]hJapanese}hhZsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget/translations/ja_JP/iio/adxl313modnameN classnameN refexplicituh1hhh ubh)}(hhh]hKorean}hhnsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget/translations/ko_KR/iio/adxl313modnameN classnameN refexplicituh1hhh ubh)}(hhh]hSpanish}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget/translations/sp_SP/iio/adxl313modnameN classnameN refexplicituh1hhh ubeh}(h]h ]h"]h$]h&]current_languageEnglishuh1h hh _documenthsourceNlineNubhcomment)}(h SPDX-License-Identifier: GPL-2.0h]h SPDX-License-Identifier: GPL-2.0}hhsbah}(h]h ]h"]h$]h&] xml:spacepreserveuh1hhhhhh9/var/lib/git/docbuild/linux/Documentation/iio/adxl313.rsthKubhsection)}(hhh](htitle)}(hADXL313 driverh]hADXL313 driver}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhhhKubh paragraph)}(hThis driver supports Analog Device’s ADXL313 on SPI/I2C bus.}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(hhh](h)}(h1. Supported devicesh]h1. Supported devices}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhhhK ubh bullet_list)}(hhh]h list_item)}(h,`ADXL313 `_ h]h)}(h+`ADXL313 `_h](h reference)}(hhh]hADXL313}(hhhhhNhNubah}(h]h ]h"]h$]h&]nameADXL313refurihttps://www.analog.com/ADXL313uh1hhhubhtarget)}(h! h]h}(h]adxl313ah ]h"]adxl313ah$]h&]refurij uh1j  referencedKhhubeh}(h]h ]h"]h$]h&]uh1hhhhK hhubah}(h]h ]h"]h$]h&]uh1hhhhhhhhNubah}(h]h ]h"]h$]h&]bullet*uh1hhhhK hhhhubh)}(hThe ADXL313is a low noise density, low power, 3-axis accelerometer with selectable measurement ranges. The ADXL313 supports the ±0.5 g, ±1 g, ±2 g and ±4 g ranges.h]hThe ADXL313is a low noise density, low power, 3-axis accelerometer with selectable measurement ranges. The ADXL313 supports the ±0.5 g, ±1 g, ±2 g and ±4 g ranges.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhhhubeh}(h]supported-devicesah ]h"]1. supported devicesah$]h&]uh1hhhhhhhhK ubh)}(hhh](h)}(h2. Device attributesh]h2. Device attributes}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhhhhhKubh)}(h/Accelerometer measurements are always provided.h]h/Accelerometer measurements are always provided.}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjFhhubh)}(hXSEach IIO device, has a device folder under ``/sys/bus/iio/devices/iio:deviceX``, where X is the IIO index of the device. Under these folders reside a set of device files, depending on the characteristics and features of the hardware device in questions. These files are consistently generalized and documented in the IIO ABI documentation.h](h+Each IIO device, has a device folder under }(hjehhhNhNubhliteral)}(h$``/sys/bus/iio/devices/iio:deviceX``h]h /sys/bus/iio/devices/iio:deviceX}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjeubhX, where X is the IIO index of the device. Under these folders reside a set of device files, depending on the characteristics and features of the hardware device in questions. These files are consistently generalized and documented in the IIO ABI documentation.}(hjehhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjFhhubh)}(hThe following tables show the adxl313 related device files, found in the specific device folder path ``/sys/bus/iio/devices/iio:deviceX``.h](heThe following tables show the adxl313 related device files, found in the specific device folder path }(hjhhhNhNubjn)}(h$``/sys/bus/iio/devices/iio:deviceX``h]h /sys/bus/iio/devices/iio:deviceX}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjFhhubhtable)}(hhh]htgroup)}(hhh](hcolspec)}(hhh]h}(h]h ]h"]h$]h&]colwidthK3uh1jhjubj)}(hhh]h}(h]h ]h"]h$]h&]colwidthK:uh1jhjubhtbody)}(hhh](hrow)}(hhh](hentry)}(hhh]h)}(h)3-Axis Accelerometer related device filesh]h)3-Axis Accelerometer related device files}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK!hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h Descriptionh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK!hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]h)}(hin_accel_scaleh]hin_accel_scale}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK#hj ubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h%Scale for the accelerometer channels.h]h%Scale for the accelerometer channels.}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK#hj!ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]h)}(hin_accel_x_calibbiash]hin_accel_x_calibbias}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK%hjAubah}(h]h ]h"]h$]h&]uh1jhj>ubj)}(hhh]h)}(h8Calibration offset for the X-axis accelerometer channel.h]h8Calibration offset for the X-axis accelerometer channel.}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK%hjXubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]h)}(hin_accel_x_rawh]hin_accel_x_raw}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK'hjxubah}(h]h ]h"]h$]h&]uh1jhjuubj)}(hhh]h)}(h'Raw X-axis accelerometer channel value.h]h'Raw X-axis accelerometer channel value.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK'hjubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]h)}(hin_accel_y_calibbiash]hin_accel_y_calibbias}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK)hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h%y-axis acceleration offset correctionh]h%y-axis acceleration offset correction}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK)hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]h)}(hin_accel_y_rawh]hin_accel_y_raw}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK+hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h'Raw Y-axis accelerometer channel value.h]h'Raw Y-axis accelerometer channel value.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK+hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]h)}(hin_accel_z_calibbiash]hin_accel_z_calibbias}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK-hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h8Calibration offset for the Z-axis accelerometer channel.h]h8Calibration offset for the Z-axis accelerometer channel.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK-hj4ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]h)}(hin_accel_z_rawh]hin_accel_z_raw}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK/hjTubah}(h]h ]h"]h$]h&]uh1jhjQubj)}(hhh]h)}(h'Raw Z-axis accelerometer channel value.h]h'Raw Z-axis accelerometer channel value.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK/hjkubah}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]colsKuh1jhjubah}(h]h ]h"]h$]h&]uh1jhjFhhhhhNubj)}(hhh]j)}(hhh](j)}(hhh]h}(h]h ]h"]h$]h&]colwidthK'uh1jhjubj)}(hhh]h}(h]h ]h"]h$]h&]colwidthK.uh1jhjubj)}(hhh](j)}(hhh](j)}(hhh]h)}(hMiscellaneous device filesh]hMiscellaneous device files}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK3hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h Descriptionh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK3hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]h)}(hnameh]hname}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK5hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hName of the IIO device.h]hName of the IIO device.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK5hj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]h)}(hin_accel_sampling_frequencyh]hin_accel_sampling_frequency}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK7hj)ubah}(h]h ]h"]h$]h&]uh1jhj&ubj)}(hhh]h)}(hCurrently selected sample rate.h]hCurrently selected sample rate.}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK7hj@ubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]h)}(h%in_accel_sampling_frequency_availableh]h%in_accel_sampling_frequency_available}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK9hj`ubah}(h]h ]h"]h$]h&]uh1jhj]ubj)}(hhh]h)}(h,Available sampling frequency configurations.h]h,Available sampling frequency configurations.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK9hjwubah}(h]h ]h"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]colsKuh1jhjubah}(h]h ]h"]h$]h&]uh1jhjFhhhhhNubh)}(hUThe iio event related settings, found in ``/sys/bus/iio/devices/iio:deviceX/events``.h](h)The iio event related settings, found in }(hjhhhNhNubjn)}(h+``/sys/bus/iio/devices/iio:deviceX/events``h]h'/sys/bus/iio/devices/iio:deviceX/events}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhK cat name adxl313h]h7root:/sys/bus/iio/devices/iio:device0> cat name adxl313}hjJ sbah}(h]h ]h"]h$]h&]hhjdjebashjg}uh1jThhhKhj+ hhubh)}(h"Show accelerometer channels value:h]h"Show accelerometer channels value:}(hjZ hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj+ hhubjU)}(hroot:/sys/bus/iio/devices/iio:device0> cat in_accel_x_raw 2 root:/sys/bus/iio/devices/iio:device0> cat in_accel_y_raw -57 root:/sys/bus/iio/devices/iio:device0> cat in_accel_z_raw 2 root:/sys/bus/iio/devices/iio:device0> cat in_accel_scale 0.009576806h]hroot:/sys/bus/iio/devices/iio:device0> cat in_accel_x_raw 2 root:/sys/bus/iio/devices/iio:device0> cat in_accel_y_raw -57 root:/sys/bus/iio/devices/iio:device0> cat in_accel_z_raw 2 root:/sys/bus/iio/devices/iio:device0> cat in_accel_scale 0.009576806}hjh sbah}(h]h ]h"]h$]h&]hhjdjebashjg}uh1jThhhKhj+ hhubh)}(h!The accelerometer values will be:h]h!The accelerometer values will be:}(hjx hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj+ hhubh)}(hhh](h)}(hGX-axis acceleration = in_accel_x_raw * in_accel_scale = 0.0191536 m/s^2h]h)}(hj h]hGX-axis acceleration = in_accel_x_raw * in_accel_scale = 0.0191536 m/s^2}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1hhj hhhhhNubh)}(hHY-axis acceleration = in_accel_y_raw * in_accel_scale = -0.5458779 m/s^2h]h)}(hj h]hHY-axis acceleration = in_accel_y_raw * in_accel_scale = -0.5458779 m/s^2}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1hhj hhhhhNubh)}(hHZ-axis acceleration = in_accel_z_raw * in_accel_scale = 0.0191536 m/s^2 h]h)}(hGZ-axis acceleration = in_accel_z_raw * in_accel_scale = 0.0191536 m/s^2h]hGZ-axis acceleration = in_accel_z_raw * in_accel_scale = 0.0191536 m/s^2}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1hhj hhhhhNubeh}(h]h ]h"]h$]h&]j.-uh1hhhhKhj+ hhubh)}(hSet calibration offset for accelerometer channels. Note, that the calibration will be rounded according to the graduation of LSB units:h]hSet calibration offset for accelerometer channels. Note, that the calibration will be rounded according to the graduation of LSB units:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj+ hhubjU)}(hroot:/sys/bus/iio/devices/iio:device0> cat in_accel_x_calibbias 0 root:/sys/bus/iio/devices/iio:device0> echo 50 > in_accel_x_calibbias root:/sys/bus/iio/devices/iio:device0> cat in_accel_x_calibbias 48h]hroot:/sys/bus/iio/devices/iio:device0> cat in_accel_x_calibbias 0 root:/sys/bus/iio/devices/iio:device0> echo 50 > in_accel_x_calibbias root:/sys/bus/iio/devices/iio:device0> cat in_accel_x_calibbias 48}hj sbah}(h]h ]h"]h$]h&]hhjdjebashjg}uh1jThhhKhj+ hhubh)}(hSet sampling frequency:h]hSet sampling frequency:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj+ hhubjU)}(hXroot:/sys/bus/iio/devices/iio:device0> cat in_accel_sampling_frequency 100.000000 root:/sys/bus/iio/devices/iio:device0> cat in_accel_sampling_frequency_available 6.250000 12.500000 25.000000 50.000000 100.000000 200.000000 400.000000 800.000000 1600.000000 3200.000000 root:/sys/bus/iio/devices/iio:device0> echo 400 > in_accel_sampling_frequency root:/sys/bus/iio/devices/iio:device0> cat in_accel_sampling_frequency 400.000000h]hXroot:/sys/bus/iio/devices/iio:device0> cat in_accel_sampling_frequency 100.000000 root:/sys/bus/iio/devices/iio:device0> cat in_accel_sampling_frequency_available 6.250000 12.500000 25.000000 50.000000 100.000000 200.000000 400.000000 800.000000 1600.000000 3200.000000 root:/sys/bus/iio/devices/iio:device0> echo 400 > in_accel_sampling_frequency root:/sys/bus/iio/devices/iio:device0> cat in_accel_sampling_frequency 400.000000}hj sbah}(h]h ]h"]h$]h&]hhjdjebashjg}uh1jThhhKhj+ hhubeh}(h]usage-examplesah ]h"]h$]usage examplesah&]uh1hhjFhhhhhK~jKubeh}(h]device-attributesah ]h"]2. device attributesah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(h3. Device buffers and triggersh]h3. Device buffers and triggers}(hj% hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj" hhhhhKubh)}(h!This driver supports IIO buffers.h]h!This driver supports IIO buffers.}(hj3 hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj" hhubh)}(hOAll devices support retrieving the raw acceleration measurements using buffers.h]hOAll devices support retrieving the raw acceleration measurements using buffers.}(hjA hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj" hhubh)}(hhh](h)}(hUsage examplesh]hUsage examples}(hjR hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjO hhhhhKubh)}(h Select channels for buffer read:h]h Select channels for buffer read:}(hj` hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjO hhubjU)}(hroot:/sys/bus/iio/devices/iio:device0> echo 1 > scan_elements/in_accel_x_en root:/sys/bus/iio/devices/iio:device0> echo 1 > scan_elements/in_accel_y_en root:/sys/bus/iio/devices/iio:device0> echo 1 > scan_elements/in_accel_z_enh]hroot:/sys/bus/iio/devices/iio:device0> echo 1 > scan_elements/in_accel_x_en root:/sys/bus/iio/devices/iio:device0> echo 1 > scan_elements/in_accel_y_en root:/sys/bus/iio/devices/iio:device0> echo 1 > scan_elements/in_accel_z_en}hjn sbah}(h]h ]h"]h$]h&]hhjdjebashjg}uh1jThhhKhjO hhubh)}(h5Set the number of samples to be stored in the buffer:h]h5Set the number of samples to be stored in the buffer:}(hj~ hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjO hhubjU)}(h>root:/sys/bus/iio/devices/iio:device0> echo 10 > buffer/lengthh]h>root:/sys/bus/iio/devices/iio:device0> echo 10 > buffer/length}hj sbah}(h]h ]h"]h$]h&]hhjdjebashjg}uh1jThhhKhjO hhubh)}(hEnable buffer readings:h]hEnable buffer readings:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjO hhubjU)}(h=root:/sys/bus/iio/devices/iio:device0> echo 1 > buffer/enableh]h=root:/sys/bus/iio/devices/iio:device0> echo 1 > buffer/enable}hj sbah}(h]h ]h"]h$]h&]hhjdjebashjg}uh1jThhhKhjO hhubh)}(hObtain buffered data:h]hObtain buffered data:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjO hhubjU)}(hXroot:/sys/bus/iio/devices/iio:device0> hexdump -C /dev/iio\:device0 ... 000000d0 01 fc 31 00 c7 ff 03 fc 31 00 c7 ff 04 fc 33 00 |..1.....1.....3.| 000000e0 c8 ff 03 fc 32 00 c5 ff ff fc 32 00 c7 ff 0a fc |....2.....2.....| 000000f0 30 00 c8 ff 06 fc 33 00 c7 ff 01 fc 2f 00 c8 ff |0.....3...../...| 00000100 02 fc 32 00 c6 ff 04 fc 33 00 c8 ff 05 fc 33 00 |..2.....3.....3.| 00000110 ca ff 02 fc 31 00 c7 ff 02 fc 30 00 c9 ff 09 fc |....1.....0.....| 00000120 35 00 c9 ff 08 fc 35 00 c8 ff 02 fc 31 00 c5 ff |5.....5.....1...| 00000130 03 fc 32 00 c7 ff 04 fc 32 00 c7 ff 02 fc 31 00 |..2.....2.....1.| 00000140 c7 ff 08 fc 30 00 c7 ff 02 fc 32 00 c5 ff ff fc |....0.....2.....| 00000150 31 00 c5 ff 04 fc 31 00 c8 ff 03 fc 32 00 c8 ff |1.....1.....2...| 00000160 01 fc 31 00 c7 ff 05 fc 31 00 c3 ff 04 fc 31 00 |..1.....1.....1.| 00000170 c5 ff 04 fc 30 00 c7 ff 03 fc 31 00 c9 ff 03 fc |....0.....1.....| ...h]hXroot:/sys/bus/iio/devices/iio:device0> hexdump -C /dev/iio\:device0 ... 000000d0 01 fc 31 00 c7 ff 03 fc 31 00 c7 ff 04 fc 33 00 |..1.....1.....3.| 000000e0 c8 ff 03 fc 32 00 c5 ff ff fc 32 00 c7 ff 0a fc |....2.....2.....| 000000f0 30 00 c8 ff 06 fc 33 00 c7 ff 01 fc 2f 00 c8 ff |0.....3...../...| 00000100 02 fc 32 00 c6 ff 04 fc 33 00 c8 ff 05 fc 33 00 |..2.....3.....3.| 00000110 ca ff 02 fc 31 00 c7 ff 02 fc 30 00 c9 ff 09 fc |....1.....0.....| 00000120 35 00 c9 ff 08 fc 35 00 c8 ff 02 fc 31 00 c5 ff |5.....5.....1...| 00000130 03 fc 32 00 c7 ff 04 fc 32 00 c7 ff 02 fc 31 00 |..2.....2.....1.| 00000140 c7 ff 08 fc 30 00 c7 ff 02 fc 32 00 c5 ff ff fc |....0.....2.....| 00000150 31 00 c5 ff 04 fc 31 00 c8 ff 03 fc 32 00 c8 ff |1.....1.....2...| 00000160 01 fc 31 00 c7 ff 05 fc 31 00 c3 ff 04 fc 31 00 |..1.....1.....1.| 00000170 c5 ff 04 fc 30 00 c7 ff 03 fc 31 00 c9 ff 03 fc |....0.....1.....| ...}hj sbah}(h]h ]h"]h$]h&]hhjdjebashjg}uh1jThhhKhjO hhubh)}(hEnabling activity detection:h]hEnabling activity detection:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjO hhubjU)}(hXproot:/sys/bus/iio/devices/iio:device0> echo 1.28125 > ./events/in_accel_mag_rising_value root:/sys/bus/iio/devices/iio:device0> echo 1 > ./events/in_accel_x\|y\|z_mag_rising_en root:/sys/bus/iio/devices/iio:device0> iio_event_monitor adxl313 Found IIO device with name adxl313 with device number 0 Event: time: 1748795762298351281, type: accel(x|y|z), channel: 0, evtype: mag, direction: rising Event: time: 1748795762302653704, type: accel(x|y|z), channel: 0, evtype: mag, direction: rising Event: time: 1748795762304340726, type: accel(x|y|z), channel: 0, evtype: mag, direction: rising ...h]hXproot:/sys/bus/iio/devices/iio:device0> echo 1.28125 > ./events/in_accel_mag_rising_value root:/sys/bus/iio/devices/iio:device0> echo 1 > ./events/in_accel_x\|y\|z_mag_rising_en root:/sys/bus/iio/devices/iio:device0> iio_event_monitor adxl313 Found IIO device with name adxl313 with device number 0 Event: time: 1748795762298351281, type: accel(x|y|z), channel: 0, evtype: mag, direction: rising Event: time: 1748795762302653704, type: accel(x|y|z), channel: 0, evtype: mag, direction: rising Event: time: 1748795762304340726, type: accel(x|y|z), channel: 0, evtype: mag, direction: rising ...}hj sbah}(h]h ]h"]h$]h&]hhjdjebashjg}uh1jThhhKhjO hhubh)}(hDisabling activity detection:h]hDisabling activity detection:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjO hhubjU)}(hroot:/sys/bus/iio/devices/iio:device0> echo 0 > ./events/in_accel_x\|y\|z_mag_rising_en root:/sys/bus/iio/devices/iio:device0> iio_event_monitor adxl313 h]hroot:/sys/bus/iio/devices/iio:device0> echo 0 > ./events/in_accel_x\|y\|z_mag_rising_en root:/sys/bus/iio/devices/iio:device0> iio_event_monitor adxl313 }hj sbah}(h]h ]h"]h$]h&]hhjdjebashjg}uh1jThhhKhjO hhubh)}(hEnabling inactivity detection:h]hEnabling inactivity detection:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjO hhubjU)}(hXroot:/sys/bus/iio/devices/iio:device0> echo 1.234375 > ./events/in_accel_mag_falling_value root:/sys/bus/iio/devices/iio:device0> echo 5 > ./events/in_accel_mag_falling_period root:/sys/bus/iio/devices/iio:device0> echo 1 > ./events/in_accel_x\&y\&z_mag_falling_en root:/sys/bus/iio/devices/iio:device0> iio_event_monitor adxl313 Found IIO device with name adxl313 with device number 0 Event: time: 1748796324115962975, type: accel(x&y&z), channel: 0, evtype: mag, direction: falling Event: time: 1748796329329981772, type: accel(x&y&z), channel: 0, evtype: mag, direction: falling Event: time: 1748796334543399706, type: accel(x&y&z), channel: 0, evtype: mag, direction: falling ... h]hXroot:/sys/bus/iio/devices/iio:device0> echo 1.234375 > ./events/in_accel_mag_falling_value root:/sys/bus/iio/devices/iio:device0> echo 5 > ./events/in_accel_mag_falling_period root:/sys/bus/iio/devices/iio:device0> echo 1 > ./events/in_accel_x\&y\&z_mag_falling_en root:/sys/bus/iio/devices/iio:device0> iio_event_monitor adxl313 Found IIO device with name adxl313 with device number 0 Event: time: 1748796324115962975, type: accel(x&y&z), channel: 0, evtype: mag, direction: falling Event: time: 1748796329329981772, type: accel(x&y&z), channel: 0, evtype: mag, direction: falling Event: time: 1748796334543399706, type: accel(x&y&z), channel: 0, evtype: mag, direction: falling ... }hj" sbah}(h]h ]h"]h$]h&]hhjdjebashjg}uh1jThhhKhjO hhubh)}(hHNow, enabling activity, e.g. the AC coupled counter-part ``ACTIVITY_AC``h](h9Now, enabling activity, e.g. the AC coupled counter-part }(hj2 hhhNhNubjn)}(h``ACTIVITY_AC``h]h ACTIVITY_AC}(hj: hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj2 ubeh}(h]h ]h"]h$]h&]uh1hhhhM hjO hhubjU)}(hXroot:/sys/bus/iio/devices/iio:device0> echo 1.28125 > ./events/in_accel_mag_rising_value root:/sys/bus/iio/devices/iio:device0> echo 1 > ./events/in_accel_x\|y\|z_mag_rising_en root:/sys/bus/iio/devices/iio:device0> iio_event_monitor adxl313 Found IIO device with name adxl313 with device number 0 Event: time: 1748796880354686777, type: accel(x|y|z), channel: 0, evtype: mag_adaptive, direction: rising <5s of inactivity, then> Event: time: 1748796885543252017, type: accel(x&y&z), channel: 0, evtype: mag, direction: falling Event: time: 1748796887756634678, type: accel(x|y|z), channel: 0, evtype: mag_adaptive, direction: rising Event: time: 1748796892964368352, type: accel(x&y&z), channel: 0, evtype: mag, direction: falling h]hXroot:/sys/bus/iio/devices/iio:device0> echo 1.28125 > ./events/in_accel_mag_rising_value root:/sys/bus/iio/devices/iio:device0> echo 1 > ./events/in_accel_x\|y\|z_mag_rising_en root:/sys/bus/iio/devices/iio:device0> iio_event_monitor adxl313 Found IIO device with name adxl313 with device number 0 Event: time: 1748796880354686777, type: accel(x|y|z), channel: 0, evtype: mag_adaptive, direction: rising <5s of inactivity, then> Event: time: 1748796885543252017, type: accel(x&y&z), channel: 0, evtype: mag, direction: falling Event: time: 1748796887756634678, type: accel(x|y|z), channel: 0, evtype: mag_adaptive, direction: rising Event: time: 1748796892964368352, type: accel(x&y&z), channel: 0, evtype: mag, direction: falling }hjN sbah}(h]h ]h"]h$]h&]hhjdjebashjg}uh1jThhhM hjO hhubh)}(hNote, when AC coupling is in place, the event type will be of ``mag_adaptive``. AC- or DC-coupled (the default) events are used similarly.h](h>Note, when AC coupling is in place, the event type will be of }(hj^ hhhNhNubjn)}(h``mag_adaptive``h]h mag_adaptive}(hjf hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj^ ubh<. AC- or DC-coupled (the default) events are used similarly.}(hj^ hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhjO hhubeh}(h]id1ah ]h"]h$]j ah&]uh1hhj" hhhhhKjKubeh}(h]device-buffers-and-triggersah ]h"]3. device buffers and triggersah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(h4. IIO Interfacing Toolsh]h4. IIO Interfacing Tools}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hhhhhM"ubh)}(h_See Documentation/iio/iio_tools.rst for the description of the available IIO interfacing tools.h]h_See Documentation/iio/iio_tools.rst for the description of the available IIO interfacing tools.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM$hj hhubeh}(h]iio-interfacing-toolsah ]h"]4. iio interfacing toolsah$]h&]uh1hhhhhhhhM"ubeh}(h]adxl313-driverah ]h"]adxl313 driverah$]h&]uh1hhhhhhhhKubeh}(h]h ]h"]h$]h&]sourcehuh1hcurrent_sourceN current_lineNsettingsdocutils.frontendValues)}(hN generatorN datestampN source_linkN source_urlN toc_backlinksjfootnote_backlinksK sectnum_xformKstrip_commentsNstrip_elements_with_classesN strip_classesN report_levelK halt_levelKexit_status_levelKdebugNwarning_streamN tracebackinput_encoding utf-8-siginput_encoding_error_handlerstrictoutput_encodingutf-8output_encoding_error_handlerj error_encodingutf-8error_encoding_error_handlerbackslashreplace language_codeenrecord_dependenciesNconfigN id_prefixhauto_id_prefixid dump_settingsNdump_internalsNdump_transformsNdump_pseudo_xmlNexpose_internalsNstrict_visitorN_disable_configN_sourceh _destinationN _config_files]7/var/lib/git/docbuild/linux/Documentation/docutils.confafile_insertion_enabled raw_enabledKline_length_limitM'pep_referencesN pep_base_urlhttps://peps.python.org/pep_file_url_templatepep-%04drfc_referencesN rfc_base_url&https://datatracker.ietf.org/doc/html/ tab_widthKtrim_footnote_reference_spacesyntax_highlightlong smart_quotessmartquotes_locales]character_level_inline_markupdoctitle_xform docinfo_xformKsectsubtitle_xform image_loadinglinkembed_stylesheetcloak_email_addressessection_self_linkenvNubreporterNindirect_targets]substitution_defs}substitution_names}refnames}refids}nameids}(j j jCj@jjj j j( j% usage examplesNj j j j u nametypes}(j jCjj j( j" j j uh}(j hj@hjjj jFj% j5j j+ j j" j jO j j u footnote_refs} citation_refs} autofootnotes]autofootnote_refs]symbol_footnotes]symbol_footnote_refs] footnotes] citations]autofootnote_startKsymbol_footnote_startK id_counter collectionsCounter}j KsRparse_messages]hsystem_message)}(hhh]h)}(h1Duplicate implicit target name: "usage examples".h]h5Duplicate implicit target name: “usage examples”.}(hjF hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjC ubah}(h]h ]h"]h$]h&]j alevelKtypeINFOsourcehlineKuh1jA hjO hhhhhKubatransform_messages] transformerN include_log] decorationNhhub.