162306a36Sopenharmony_ciWhat:		/sys/bus/iio/devices/iio:deviceX/buffer/length
262306a36Sopenharmony_ciKernelVersion:	2.6.35
362306a36Sopenharmony_ciContact:	linux-iio@vger.kernel.org
462306a36Sopenharmony_ciDescription:
562306a36Sopenharmony_ci		Number of scans contained by the buffer.
662306a36Sopenharmony_ci
762306a36Sopenharmony_ci		Since Kernel 5.11, multiple buffers are supported.
862306a36Sopenharmony_ci		so, it is better to use, instead:
962306a36Sopenharmony_ci
1062306a36Sopenharmony_ci			/sys/bus/iio/devices/iio:deviceX/bufferY/length
1162306a36Sopenharmony_ci
1262306a36Sopenharmony_ciWhat:		/sys/bus/iio/devices/iio:deviceX/buffer/enable
1362306a36Sopenharmony_ciKernelVersion:	2.6.35
1462306a36Sopenharmony_ciContact:	linux-iio@vger.kernel.org
1562306a36Sopenharmony_ciDescription:
1662306a36Sopenharmony_ci		Actually start the buffer capture up.  Will start trigger
1762306a36Sopenharmony_ci		if first device and appropriate.
1862306a36Sopenharmony_ci
1962306a36Sopenharmony_ci		Since Kernel 5.11, multiple buffers are supported.
2062306a36Sopenharmony_ci		so, it is better to use, instead:
2162306a36Sopenharmony_ci
2262306a36Sopenharmony_ci			/sys/bus/iio/devices/iio:deviceX/bufferY/enable
2362306a36Sopenharmony_ci
2462306a36Sopenharmony_ciWhat:		/sys/bus/iio/devices/iio:deviceX/scan_elements
2562306a36Sopenharmony_ciKernelVersion:	2.6.37
2662306a36Sopenharmony_ciContact:	linux-iio@vger.kernel.org
2762306a36Sopenharmony_ciDescription:
2862306a36Sopenharmony_ci		Directory containing interfaces for elements that will be
2962306a36Sopenharmony_ci		captured for a single triggered sample set in the buffer.
3062306a36Sopenharmony_ci
3162306a36Sopenharmony_ci		Since kernel 5.11 the scan_elements attributes are merged into
3262306a36Sopenharmony_ci		the bufferY directory, to be configurable per buffer.
3362306a36Sopenharmony_ci
3462306a36Sopenharmony_ciWhat:		/sys/.../iio:deviceX/scan_elements/in_accel_x_en
3562306a36Sopenharmony_ciWhat:		/sys/.../iio:deviceX/scan_elements/in_accel_y_en
3662306a36Sopenharmony_ciWhat:		/sys/.../iio:deviceX/scan_elements/in_accel_z_en
3762306a36Sopenharmony_ciWhat:		/sys/.../iio:deviceX/scan_elements/in_anglvel_x_en
3862306a36Sopenharmony_ciWhat:		/sys/.../iio:deviceX/scan_elements/in_anglvel_y_en
3962306a36Sopenharmony_ciWhat:		/sys/.../iio:deviceX/scan_elements/in_anglvel_z_en
4062306a36Sopenharmony_ciWhat:		/sys/.../iio:deviceX/scan_elements/in_magn_x_en
4162306a36Sopenharmony_ciWhat:		/sys/.../iio:deviceX/scan_elements/in_magn_y_en
4262306a36Sopenharmony_ciWhat:		/sys/.../iio:deviceX/scan_elements/in_magn_z_en
4362306a36Sopenharmony_ciWhat:		/sys/.../iio:deviceX/scan_elements/in_rot_from_north_magnetic_en
4462306a36Sopenharmony_ciWhat:		/sys/.../iio:deviceX/scan_elements/in_rot_from_north_true_en
4562306a36Sopenharmony_ciWhat:		/sys/.../iio:deviceX/scan_elements/in_rot_from_north_magnetic_tilt_comp_en
4662306a36Sopenharmony_ciWhat:		/sys/.../iio:deviceX/scan_elements/in_rot_from_north_true_tilt_comp_en
4762306a36Sopenharmony_ciWhat:		/sys/.../iio:deviceX/scan_elements/in_timestamp_en
4862306a36Sopenharmony_ciWhat:		/sys/.../iio:deviceX/scan_elements/in_voltageY_supply_en
4962306a36Sopenharmony_ciWhat:		/sys/.../iio:deviceX/scan_elements/in_voltageY_en
5062306a36Sopenharmony_ciWhat:		/sys/.../iio:deviceX/scan_elements/in_voltageY-voltageZ_en
5162306a36Sopenharmony_ciWhat:		/sys/.../iio:deviceX/scan_elements/in_voltageY_i_en
5262306a36Sopenharmony_ciWhat:		/sys/.../iio:deviceX/scan_elements/in_voltageY_q_en
5362306a36Sopenharmony_ciWhat:		/sys/.../iio:deviceX/scan_elements/in_voltage_i_en
5462306a36Sopenharmony_ciWhat:		/sys/.../iio:deviceX/scan_elements/in_voltage_q_en
5562306a36Sopenharmony_ciWhat:		/sys/.../iio:deviceX/scan_elements/in_incli_x_en
5662306a36Sopenharmony_ciWhat:		/sys/.../iio:deviceX/scan_elements/in_incli_y_en
5762306a36Sopenharmony_ciWhat:		/sys/.../iio:deviceX/scan_elements/in_pressureY_en
5862306a36Sopenharmony_ciWhat:		/sys/.../iio:deviceX/scan_elements/in_pressure_en
5962306a36Sopenharmony_ciWhat:		/sys/.../iio:deviceX/scan_elements/in_rot_quaternion_en
6062306a36Sopenharmony_ciWhat:		/sys/.../iio:deviceX/scan_elements/in_proximity_en
6162306a36Sopenharmony_ciKernelVersion:	2.6.37
6262306a36Sopenharmony_ciContact:	linux-iio@vger.kernel.org
6362306a36Sopenharmony_ciDescription:
6462306a36Sopenharmony_ci		Scan element control for triggered data capture.
6562306a36Sopenharmony_ci
6662306a36Sopenharmony_ci		Since kernel 5.11 the scan_elements attributes are merged into
6762306a36Sopenharmony_ci		the bufferY directory, to be configurable per buffer.
6862306a36Sopenharmony_ci
6962306a36Sopenharmony_ciWhat:		/sys/.../iio:deviceX/scan_elements/in_accel_type
7062306a36Sopenharmony_ciWhat:		/sys/.../iio:deviceX/scan_elements/in_anglvel_type
7162306a36Sopenharmony_ciWhat:		/sys/.../iio:deviceX/scan_elements/in_magn_type
7262306a36Sopenharmony_ciWhat:		/sys/.../iio:deviceX/scan_elements/in_incli_type
7362306a36Sopenharmony_ciWhat:		/sys/.../iio:deviceX/scan_elements/in_voltageY_type
7462306a36Sopenharmony_ciWhat:		/sys/.../iio:deviceX/scan_elements/in_voltage_type
7562306a36Sopenharmony_ciWhat:		/sys/.../iio:deviceX/scan_elements/in_voltageY_supply_type
7662306a36Sopenharmony_ciWhat:		/sys/.../iio:deviceX/scan_elements/in_voltageY_i_type
7762306a36Sopenharmony_ciWhat:		/sys/.../iio:deviceX/scan_elements/in_voltageY_q_type
7862306a36Sopenharmony_ciWhat:		/sys/.../iio:deviceX/scan_elements/in_voltage_i_type
7962306a36Sopenharmony_ciWhat:		/sys/.../iio:deviceX/scan_elements/in_voltage_q_type
8062306a36Sopenharmony_ciWhat:		/sys/.../iio:deviceX/scan_elements/in_timestamp_type
8162306a36Sopenharmony_ciWhat:		/sys/.../iio:deviceX/scan_elements/in_pressureY_type
8262306a36Sopenharmony_ciWhat:		/sys/.../iio:deviceX/scan_elements/in_pressure_type
8362306a36Sopenharmony_ciWhat:		/sys/.../iio:deviceX/scan_elements/in_rot_quaternion_type
8462306a36Sopenharmony_ciWhat:		/sys/.../iio:deviceX/scan_elements/in_proximity_type
8562306a36Sopenharmony_ciKernelVersion:	2.6.37
8662306a36Sopenharmony_ciContact:	linux-iio@vger.kernel.org
8762306a36Sopenharmony_ciDescription:
8862306a36Sopenharmony_ci		Description of the scan element data storage within the buffer
8962306a36Sopenharmony_ci		and hence the form in which it is read from user-space.
9062306a36Sopenharmony_ci		Form is [be|le]:[s|u]bits/storagebits[>>shift].
9162306a36Sopenharmony_ci		be or le specifies big or little endian. s or u specifies if
9262306a36Sopenharmony_ci		signed (2's complement) or unsigned. bits is the number of bits
9362306a36Sopenharmony_ci		of data and storagebits is the space (after padding) that it
9462306a36Sopenharmony_ci		occupies in the buffer. shift if specified, is the shift that
9562306a36Sopenharmony_ci		needs to be applied prior to masking out unused bits. Some
9662306a36Sopenharmony_ci		devices put their data in the middle of the transferred elements
9762306a36Sopenharmony_ci		with additional information on both sides.  Note that some
9862306a36Sopenharmony_ci		devices will have additional information in the unused bits
9962306a36Sopenharmony_ci		so to get a clean value, the bits value must be used to mask
10062306a36Sopenharmony_ci		the buffer output value appropriately.  The storagebits value
10162306a36Sopenharmony_ci		also specifies the data alignment.  So s48/64>>2 will be a
10262306a36Sopenharmony_ci		signed 48 bit integer stored in a 64 bit location aligned to
10362306a36Sopenharmony_ci		a 64 bit boundary. To obtain the clean value, shift right 2
10462306a36Sopenharmony_ci		and apply a mask to zero the top 16 bits of the result.
10562306a36Sopenharmony_ci		For other storage combinations this attribute will be extended
10662306a36Sopenharmony_ci		appropriately.
10762306a36Sopenharmony_ci
10862306a36Sopenharmony_ci		Since kernel 5.11 the scan_elements attributes are merged into
10962306a36Sopenharmony_ci		the bufferY directory, to be configurable per buffer.
11062306a36Sopenharmony_ci
11162306a36Sopenharmony_ciWhat:		/sys/.../iio:deviceX/scan_elements/in_voltageY_index
11262306a36Sopenharmony_ciWhat:		/sys/.../iio:deviceX/scan_elements/in_voltageY_supply_index
11362306a36Sopenharmony_ciWhat:		/sys/.../iio:deviceX/scan_elements/in_voltageY_i_index
11462306a36Sopenharmony_ciWhat:		/sys/.../iio:deviceX/scan_elements/in_voltageY_q_index
11562306a36Sopenharmony_ciWhat:		/sys/.../iio:deviceX/scan_elements/in_voltage_i_index
11662306a36Sopenharmony_ciWhat:		/sys/.../iio:deviceX/scan_elements/in_voltage_q_index
11762306a36Sopenharmony_ciWhat:		/sys/.../iio:deviceX/scan_elements/in_accel_x_index
11862306a36Sopenharmony_ciWhat:		/sys/.../iio:deviceX/scan_elements/in_accel_y_index
11962306a36Sopenharmony_ciWhat:		/sys/.../iio:deviceX/scan_elements/in_accel_z_index
12062306a36Sopenharmony_ciWhat:		/sys/.../iio:deviceX/scan_elements/in_anglvel_x_index
12162306a36Sopenharmony_ciWhat:		/sys/.../iio:deviceX/scan_elements/in_anglvel_y_index
12262306a36Sopenharmony_ciWhat:		/sys/.../iio:deviceX/scan_elements/in_anglvel_z_index
12362306a36Sopenharmony_ciWhat:		/sys/.../iio:deviceX/scan_elements/in_magn_x_index
12462306a36Sopenharmony_ciWhat:		/sys/.../iio:deviceX/scan_elements/in_magn_y_index
12562306a36Sopenharmony_ciWhat:		/sys/.../iio:deviceX/scan_elements/in_magn_z_index
12662306a36Sopenharmony_ciWhat:		/sys/.../iio:deviceX/scan_elements/in_rot_from_north_magnetic_index
12762306a36Sopenharmony_ciWhat:		/sys/.../iio:deviceX/scan_elements/in_rot_from_north_true_index
12862306a36Sopenharmony_ciWhat:		/sys/.../iio:deviceX/scan_elements/in_rot_from_north_magnetic_tilt_comp_index
12962306a36Sopenharmony_ciWhat:		/sys/.../iio:deviceX/scan_elements/in_rot_from_north_true_tilt_comp_index
13062306a36Sopenharmony_ciWhat:		/sys/.../iio:deviceX/scan_elements/in_incli_x_index
13162306a36Sopenharmony_ciWhat:		/sys/.../iio:deviceX/scan_elements/in_incli_y_index
13262306a36Sopenharmony_ciWhat:		/sys/.../iio:deviceX/scan_elements/in_timestamp_index
13362306a36Sopenharmony_ciWhat:		/sys/.../iio:deviceX/scan_elements/in_pressureY_index
13462306a36Sopenharmony_ciWhat:		/sys/.../iio:deviceX/scan_elements/in_pressure_index
13562306a36Sopenharmony_ciWhat:		/sys/.../iio:deviceX/scan_elements/in_rot_quaternion_index
13662306a36Sopenharmony_ciWhat:		/sys/.../iio:deviceX/scan_elements/in_proximity_index
13762306a36Sopenharmony_ciKernelVersion:	2.6.37
13862306a36Sopenharmony_ciDescription:
13962306a36Sopenharmony_ci		A single positive integer specifying the position of this
14062306a36Sopenharmony_ci		scan element in the buffer. Note these are not dependent on
14162306a36Sopenharmony_ci		what is enabled and may not be contiguous. Thus for user-space
14262306a36Sopenharmony_ci		to establish the full layout these must be used in conjunction
14362306a36Sopenharmony_ci		with all _en attributes to establish which channels are present,
14462306a36Sopenharmony_ci		and the relevant _type attributes to establish the data storage
14562306a36Sopenharmony_ci		format.
14662306a36Sopenharmony_ci
14762306a36Sopenharmony_ci		Since kernel 5.11 the scan_elements attributes are merged into
14862306a36Sopenharmony_ci		the bufferY directory, to be configurable per buffer.
14962306a36Sopenharmony_ci
15062306a36Sopenharmony_ciWhat:		/sys/bus/iio/devices/iio:deviceX/buffer/watermark
15162306a36Sopenharmony_ciKernelVersion:	4.2
15262306a36Sopenharmony_ciContact:	linux-iio@vger.kernel.org
15362306a36Sopenharmony_ciDescription:
15462306a36Sopenharmony_ci		A single positive integer specifying the maximum number of scan
15562306a36Sopenharmony_ci		elements to wait for.
15662306a36Sopenharmony_ci
15762306a36Sopenharmony_ci		Poll will block until the watermark is reached.
15862306a36Sopenharmony_ci
15962306a36Sopenharmony_ci		Blocking read will wait until the minimum between the requested
16062306a36Sopenharmony_ci		read amount or the low water mark is available.
16162306a36Sopenharmony_ci
16262306a36Sopenharmony_ci		Non-blocking read will retrieve the available samples from the
16362306a36Sopenharmony_ci		buffer even if there are less samples then watermark level. This
16462306a36Sopenharmony_ci		allows the application to block on poll with a timeout and read
16562306a36Sopenharmony_ci		the available samples after the timeout expires and thus have a
16662306a36Sopenharmony_ci		maximum delay guarantee.
16762306a36Sopenharmony_ci
16862306a36Sopenharmony_ci		Since Kernel 5.11, multiple buffers are supported.
16962306a36Sopenharmony_ci		so, it is better to use, instead:
17062306a36Sopenharmony_ci
17162306a36Sopenharmony_ci			/sys/bus/iio/devices/iio:deviceX/bufferY/watermark
17262306a36Sopenharmony_ci
17362306a36Sopenharmony_ciWhat:		/sys/bus/iio/devices/iio:deviceX/buffer/data_available
17462306a36Sopenharmony_ciKernelVersion: 4.16
17562306a36Sopenharmony_ciContact:	linux-iio@vger.kernel.org
17662306a36Sopenharmony_ciDescription:
17762306a36Sopenharmony_ci		A read-only value indicating the bytes of data available in the
17862306a36Sopenharmony_ci		buffer. In the case of an output buffer, this indicates the
17962306a36Sopenharmony_ci		amount of empty space available to write data to. In the case of
18062306a36Sopenharmony_ci		an input buffer, this indicates the amount of data available for
18162306a36Sopenharmony_ci		reading.
18262306a36Sopenharmony_ci
18362306a36Sopenharmony_ci		Since Kernel 5.11, multiple buffers are supported.
18462306a36Sopenharmony_ci		so, it is better to use, instead:
18562306a36Sopenharmony_ci
18662306a36Sopenharmony_ci			/sys/bus/iio/devices/iio:deviceX/bufferY/data_available
187