sysfs-bus-iio 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. What: /sys/bus/iio/devices/iio:deviceX/buffer/length
  2. KernelVersion: 2.6.35
  3. Contact: [email protected]
  4. Description:
  5. Number of scans contained by the buffer.
  6. Since Kernel 5.11, multiple buffers are supported.
  7. so, it is better to use, instead:
  8. /sys/bus/iio/devices/iio:deviceX/bufferY/length
  9. What: /sys/bus/iio/devices/iio:deviceX/buffer/enable
  10. KernelVersion: 2.6.35
  11. Contact: [email protected]
  12. Description:
  13. Actually start the buffer capture up. Will start trigger
  14. if first device and appropriate.
  15. Since Kernel 5.11, multiple buffers are supported.
  16. so, it is better to use, instead:
  17. /sys/bus/iio/devices/iio:deviceX/bufferY/enable
  18. What: /sys/bus/iio/devices/iio:deviceX/scan_elements
  19. KernelVersion: 2.6.37
  20. Contact: [email protected]
  21. Description:
  22. Directory containing interfaces for elements that will be
  23. captured for a single triggered sample set in the buffer.
  24. Since kernel 5.11 the scan_elements attributes are merged into
  25. the bufferY directory, to be configurable per buffer.
  26. What: /sys/.../iio:deviceX/scan_elements/in_accel_x_en
  27. What: /sys/.../iio:deviceX/scan_elements/in_accel_y_en
  28. What: /sys/.../iio:deviceX/scan_elements/in_accel_z_en
  29. What: /sys/.../iio:deviceX/scan_elements/in_anglvel_x_en
  30. What: /sys/.../iio:deviceX/scan_elements/in_anglvel_y_en
  31. What: /sys/.../iio:deviceX/scan_elements/in_anglvel_z_en
  32. What: /sys/.../iio:deviceX/scan_elements/in_magn_x_en
  33. What: /sys/.../iio:deviceX/scan_elements/in_magn_y_en
  34. What: /sys/.../iio:deviceX/scan_elements/in_magn_z_en
  35. What: /sys/.../iio:deviceX/scan_elements/in_rot_from_north_magnetic_en
  36. What: /sys/.../iio:deviceX/scan_elements/in_rot_from_north_true_en
  37. What: /sys/.../iio:deviceX/scan_elements/in_rot_from_north_magnetic_tilt_comp_en
  38. What: /sys/.../iio:deviceX/scan_elements/in_rot_from_north_true_tilt_comp_en
  39. What: /sys/.../iio:deviceX/scan_elements/in_timestamp_en
  40. What: /sys/.../iio:deviceX/scan_elements/in_voltageY_supply_en
  41. What: /sys/.../iio:deviceX/scan_elements/in_voltageY_en
  42. What: /sys/.../iio:deviceX/scan_elements/in_voltageY-voltageZ_en
  43. What: /sys/.../iio:deviceX/scan_elements/in_voltageY_i_en
  44. What: /sys/.../iio:deviceX/scan_elements/in_voltageY_q_en
  45. What: /sys/.../iio:deviceX/scan_elements/in_voltage_i_en
  46. What: /sys/.../iio:deviceX/scan_elements/in_voltage_q_en
  47. What: /sys/.../iio:deviceX/scan_elements/in_incli_x_en
  48. What: /sys/.../iio:deviceX/scan_elements/in_incli_y_en
  49. What: /sys/.../iio:deviceX/scan_elements/in_pressureY_en
  50. What: /sys/.../iio:deviceX/scan_elements/in_pressure_en
  51. What: /sys/.../iio:deviceX/scan_elements/in_rot_quaternion_en
  52. What: /sys/.../iio:deviceX/scan_elements/in_proximity_en
  53. KernelVersion: 2.6.37
  54. Contact: [email protected]
  55. Description:
  56. Scan element control for triggered data capture.
  57. Since kernel 5.11 the scan_elements attributes are merged into
  58. the bufferY directory, to be configurable per buffer.
  59. What: /sys/.../iio:deviceX/scan_elements/in_accel_type
  60. What: /sys/.../iio:deviceX/scan_elements/in_anglvel_type
  61. What: /sys/.../iio:deviceX/scan_elements/in_magn_type
  62. What: /sys/.../iio:deviceX/scan_elements/in_incli_type
  63. What: /sys/.../iio:deviceX/scan_elements/in_voltageY_type
  64. What: /sys/.../iio:deviceX/scan_elements/in_voltage_type
  65. What: /sys/.../iio:deviceX/scan_elements/in_voltageY_supply_type
  66. What: /sys/.../iio:deviceX/scan_elements/in_voltageY_i_type
  67. What: /sys/.../iio:deviceX/scan_elements/in_voltageY_q_type
  68. What: /sys/.../iio:deviceX/scan_elements/in_voltage_i_type
  69. What: /sys/.../iio:deviceX/scan_elements/in_voltage_q_type
  70. What: /sys/.../iio:deviceX/scan_elements/in_timestamp_type
  71. What: /sys/.../iio:deviceX/scan_elements/in_pressureY_type
  72. What: /sys/.../iio:deviceX/scan_elements/in_pressure_type
  73. What: /sys/.../iio:deviceX/scan_elements/in_rot_quaternion_type
  74. What: /sys/.../iio:deviceX/scan_elements/in_proximity_type
  75. KernelVersion: 2.6.37
  76. Contact: [email protected]
  77. Description:
  78. Description of the scan element data storage within the buffer
  79. and hence the form in which it is read from user-space.
  80. Form is [be|le]:[s|u]bits/storagebits[>>shift].
  81. be or le specifies big or little endian. s or u specifies if
  82. signed (2's complement) or unsigned. bits is the number of bits
  83. of data and storagebits is the space (after padding) that it
  84. occupies in the buffer. shift if specified, is the shift that
  85. needs to be applied prior to masking out unused bits. Some
  86. devices put their data in the middle of the transferred elements
  87. with additional information on both sides. Note that some
  88. devices will have additional information in the unused bits
  89. so to get a clean value, the bits value must be used to mask
  90. the buffer output value appropriately. The storagebits value
  91. also specifies the data alignment. So s48/64>>2 will be a
  92. signed 48 bit integer stored in a 64 bit location aligned to
  93. a 64 bit boundary. To obtain the clean value, shift right 2
  94. and apply a mask to zero the top 16 bits of the result.
  95. For other storage combinations this attribute will be extended
  96. appropriately.
  97. Since kernel 5.11 the scan_elements attributes are merged into
  98. the bufferY directory, to be configurable per buffer.
  99. What: /sys/.../iio:deviceX/scan_elements/in_voltageY_index
  100. What: /sys/.../iio:deviceX/scan_elements/in_voltageY_supply_index
  101. What: /sys/.../iio:deviceX/scan_elements/in_voltageY_i_index
  102. What: /sys/.../iio:deviceX/scan_elements/in_voltageY_q_index
  103. What: /sys/.../iio:deviceX/scan_elements/in_voltage_i_index
  104. What: /sys/.../iio:deviceX/scan_elements/in_voltage_q_index
  105. What: /sys/.../iio:deviceX/scan_elements/in_accel_x_index
  106. What: /sys/.../iio:deviceX/scan_elements/in_accel_y_index
  107. What: /sys/.../iio:deviceX/scan_elements/in_accel_z_index
  108. What: /sys/.../iio:deviceX/scan_elements/in_anglvel_x_index
  109. What: /sys/.../iio:deviceX/scan_elements/in_anglvel_y_index
  110. What: /sys/.../iio:deviceX/scan_elements/in_anglvel_z_index
  111. What: /sys/.../iio:deviceX/scan_elements/in_magn_x_index
  112. What: /sys/.../iio:deviceX/scan_elements/in_magn_y_index
  113. What: /sys/.../iio:deviceX/scan_elements/in_magn_z_index
  114. What: /sys/.../iio:deviceX/scan_elements/in_rot_from_north_magnetic_index
  115. What: /sys/.../iio:deviceX/scan_elements/in_rot_from_north_true_index
  116. What: /sys/.../iio:deviceX/scan_elements/in_rot_from_north_magnetic_tilt_comp_index
  117. What: /sys/.../iio:deviceX/scan_elements/in_rot_from_north_true_tilt_comp_index
  118. What: /sys/.../iio:deviceX/scan_elements/in_incli_x_index
  119. What: /sys/.../iio:deviceX/scan_elements/in_incli_y_index
  120. What: /sys/.../iio:deviceX/scan_elements/in_timestamp_index
  121. What: /sys/.../iio:deviceX/scan_elements/in_pressureY_index
  122. What: /sys/.../iio:deviceX/scan_elements/in_pressure_index
  123. What: /sys/.../iio:deviceX/scan_elements/in_rot_quaternion_index
  124. What: /sys/.../iio:deviceX/scan_elements/in_proximity_index
  125. KernelVersion: 2.6.37
  126. Description:
  127. A single positive integer specifying the position of this
  128. scan element in the buffer. Note these are not dependent on
  129. what is enabled and may not be contiguous. Thus for user-space
  130. to establish the full layout these must be used in conjunction
  131. with all _en attributes to establish which channels are present,
  132. and the relevant _type attributes to establish the data storage
  133. format.
  134. Since kernel 5.11 the scan_elements attributes are merged into
  135. the bufferY directory, to be configurable per buffer.
  136. What: /sys/bus/iio/devices/iio:deviceX/buffer/watermark
  137. KernelVersion: 4.2
  138. Contact: [email protected]
  139. Description:
  140. A single positive integer specifying the maximum number of scan
  141. elements to wait for.
  142. Poll will block until the watermark is reached.
  143. Blocking read will wait until the minimum between the requested
  144. read amount or the low water mark is available.
  145. Non-blocking read will retrieve the available samples from the
  146. buffer even if there are less samples then watermark level. This
  147. allows the application to block on poll with a timeout and read
  148. the available samples after the timeout expires and thus have a
  149. maximum delay guarantee.
  150. Since Kernel 5.11, multiple buffers are supported.
  151. so, it is better to use, instead:
  152. /sys/bus/iio/devices/iio:deviceX/bufferY/watermark
  153. What: /sys/bus/iio/devices/iio:deviceX/buffer/data_available
  154. KernelVersion: 4.16
  155. Contact: [email protected]
  156. Description:
  157. A read-only value indicating the bytes of data available in the
  158. buffer. In the case of an output buffer, this indicates the
  159. amount of empty space available to write data to. In the case of
  160. an input buffer, this indicates the amount of data available for
  161. reading.
  162. Since Kernel 5.11, multiple buffers are supported.
  163. so, it is better to use, instead:
  164. /sys/bus/iio/devices/iio:deviceX/bufferY/data_available