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]hPortuguese (Brazilian)}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget/translations/pt_BR/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)}(hj h]hADXL313}(hjhhhNhNubah}(h]h ]h"]h$]h&]nameADXL313refurihttps://www.analog.com/ADXL313uh1j hj ubhtarget)}(h! h]h}(h]adxl313ah ]h"]adxl313ah$]h&]refurijuh1j  referencedKhj ubeh}(h]h ]h"]h$]h&]uh1hhhhK hjubah}(h]h ]h"]h$]h&]uh1jhjhhhhhNubah}(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.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhhhubeh}(h]supported-devicesah ]h"]1. supported devicesah$]h&]uh1hhhhhhhhK ubh)}(hhh](h)}(h2. Device attributesh]h2. Device attributes}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjZhhhhhKubh)}(h/Accelerometer measurements are always provided.h]h/Accelerometer measurements are always provided.}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjZhhubh)}(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 }(hjyhhhNhNubhliteral)}(h$``/sys/bus/iio/devices/iio:deviceX``h]h /sys/bus/iio/devices/iio:deviceX}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubhX, 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.}(hjyhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjZhhubh)}(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 }(hjhhhNhNubj)}(h$``/sys/bus/iio/devices/iio:deviceX``h]h /sys/bus/iio/devices/iio:deviceX}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjZhhubhtable)}(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#hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h%Scale for the accelerometer channels.h]h%Scale for the accelerometer channels.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK#hj5ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]h)}(hin_accel_x_calibbiash]hin_accel_x_calibbias}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK%hjUubah}(h]h ]h"]h$]h&]uh1jhjRubj)}(hhh]h)}(h8Calibration offset for the X-axis accelerometer channel.h]h8Calibration offset for the X-axis accelerometer channel.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK%hjlubah}(h]h ]h"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]h)}(hin_accel_x_rawh]hin_accel_x_raw}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK'hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(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&]uh1jhjubeh}(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}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK-hj1ubah}(h]h ]h"]h$]h&]uh1jhj.ubj)}(hhh]h)}(h8Calibration offset for the Z-axis accelerometer channel.h]h8Calibration offset for the Z-axis accelerometer channel.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK-hjHubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]h)}(hin_accel_z_rawh]hin_accel_z_raw}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK/hjhubah}(h]h ]h"]h$]h&]uh1jhjeubj)}(hhh]h)}(h'Raw Z-axis accelerometer channel value.h]h'Raw Z-axis accelerometer channel value.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK/hjubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]colsKuh1jhjubah}(h]h ]h"]h$]h&]uh1jhjZhhhhhNubj)}(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}(hj hhhNhNubah}(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&]uh1hhhhK5hjubah}(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.}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK7hjTubah}(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}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK9hjtubah}(h]h ]h"]h$]h&]uh1jhjqubj)}(hhh]h)}(h,Available sampling frequency configurations.h]h,Available sampling frequency configurations.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK9hjubah}(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&]uh1jhjZhhhhhNubh)}(hUThe iio event related settings, found in ``/sys/bus/iio/devices/iio:deviceX/events``.h](h)The iio event related settings, found in }(hjhhhNhNubj)}(h+``/sys/bus/iio/devices/iio:deviceX/events``h]h'/sys/bus/iio/devices/iio:deviceX/events}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhK cat name adxl313h]h7root:/sys/bus/iio/devices/iio:device0> cat name adxl313}hj^ sbah}(h]h ]h"]h$]h&]hhjxjybashj{}uh1jhhhhKhj? hhubh)}(h"Show accelerometer channels value:h]h"Show accelerometer channels value:}(hjn hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj? hhubji)}(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}hj| sbah}(h]h ]h"]h$]h&]hhjxjybashj{}uh1jhhhhKhj? hhubh)}(h!The accelerometer values will be:h]h!The accelerometer values will be:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj? hhubh)}(hhh](j)}(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&]uh1jhj hhhhhNubj)}(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&]uh1jhj hhhhhNubj)}(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&]uh1jhj hhhhhNubeh}(h]h ]h"]h$]h&]jB-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? hhubji)}(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&]hhjxjybashj{}uh1jhhhhKhj? hhubh)}(hSet sampling frequency:h]hSet sampling frequency:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj? hhubji)}(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&]hhjxjybashj{}uh1jhhhhKhj? hhubeh}(h]usage-examplesah ]h"]h$]usage examplesah&]uh1hhjZhhhhhK~j/Kubeh}(h]device-attributesah ]h"]2. device attributesah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(h3. Device buffers and triggersh]h3. Device buffers and triggers}(hj9 hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6 hhhhhKubh)}(h!This driver supports IIO buffers.h]h!This driver supports IIO buffers.}(hjG hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj6 hhubh)}(hOAll devices support retrieving the raw acceleration measurements using buffers.h]hOAll devices support retrieving the raw acceleration measurements using buffers.}(hjU hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj6 hhubh)}(hhh](h)}(hUsage examplesh]hUsage examples}(hjf hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjc hhhhhKubh)}(h Select channels for buffer read:h]h Select channels for buffer read:}(hjt hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjc hhubji)}(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}hj sbah}(h]h ]h"]h$]h&]hhjxjybashj{}uh1jhhhhKhjc 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&]uh1hhhhKhjc hhubji)}(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&]hhjxjybashj{}uh1jhhhhKhjc hhubh)}(hEnable buffer readings:h]hEnable buffer readings:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjc hhubji)}(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&]hhjxjybashj{}uh1jhhhhKhjc hhubh)}(hObtain buffered data:h]hObtain buffered data:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjc hhubji)}(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&]hhjxjybashj{}uh1jhhhhKhjc hhubh)}(hEnabling activity detection:h]hEnabling activity detection:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjc hhubji)}(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&]hhjxjybashj{}uh1jhhhhKhjc hhubh)}(hDisabling activity detection:h]hDisabling activity detection:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjc hhubji)}(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&]hhjxjybashj{}uh1jhhhhKhjc hhubh)}(hEnabling inactivity detection:h]hEnabling inactivity detection:}(hj( hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjc hhubji)}(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 ... }hj6 sbah}(h]h ]h"]h$]h&]hhjxjybashj{}uh1jhhhhKhjc hhubh)}(hHNow, enabling activity, e.g. the AC coupled counter-part ``ACTIVITY_AC``h](h9Now, enabling activity, e.g. the AC coupled counter-part }(hjF hhhNhNubj)}(h``ACTIVITY_AC``h]h ACTIVITY_AC}(hjN hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjF ubeh}(h]h ]h"]h$]h&]uh1hhhhM hjc hhubji)}(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 }hjb sbah}(h]h ]h"]h$]h&]hhjxjybashj{}uh1jhhhhM hjc 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 }(hjr hhhNhNubj)}(h``mag_adaptive``h]h mag_adaptive}(hjz hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjr ubh<. AC- or DC-coupled (the default) events are used similarly.}(hjr hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhjc hhubeh}(h]id1ah ]h"]h$]j, ah&]uh1hhj6 hhhhhKj/Kubeh}(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_sourcehnj _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 jWjTj+j(j3 j0 j< j9 usage examplesNj j j j u nametypes}(j jWj+j3 j< j6 j j uh}(j hjThj(j"j0 jZj9 jIj( j? j j6 j jc 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”.}(hjZ hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjW ubah}(h]h ]h"]h$]h&]j alevelKtypeINFOsourcehnjlineKuh1jU hjc hhhhhKubatransform_messages] transformerN include_log] decorationNhhub.