aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/iio/Documentation
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/staging/iio/Documentation')
-rw-r--r--drivers/staging/iio/Documentation/sysfs-bus-iio713
1 files changed, 713 insertions, 0 deletions
diff --git a/drivers/staging/iio/Documentation/sysfs-bus-iio b/drivers/staging/iio/Documentation/sysfs-bus-iio
new file mode 100644
index 00000000000..467c49a4725
--- /dev/null
+++ b/drivers/staging/iio/Documentation/sysfs-bus-iio
@@ -0,0 +1,713 @@
1What: /sys/bus/iio/devices/deviceX
2KernelVersion: 2.6.35
3Contact: linux-iio@vger.kernel.org
4Description:
5 Hardware chip or device accessed by on communication port.
6 Corresponds to a grouping of sensor channels. X is the IIO
7 index of the device.
8
9What: /sys/bus/iio/devices/device[n]/power_state
10KernelVersion: 2.6.37
11Contact: linux-iio@vger.kernel.org
12Description:
13 This property gets/sets the device power state.
14
15What: /sys/bus/iio/devices/triggerX
16KernelVersion: 2.6.35
17Contact: linux-iio@vger.kernel.org
18Description:
19 An event driven driver of data capture to an in kernel buffer.
20 May be provided by a device driver that also has an IIO device
21 based on hardware generated events (e.g. data ready) or
22 provided by a separate driver for other hardware (e.g.
23 periodic timer, GPIO or high resolution timer).
24 Contains trigger type specific elements. These do not
25 generalize well and hence are not documented in this file.
26 X is the IIO index of the trigger.
27
28What: /sys/bus/iio/devices/deviceX:buffer
29KernelVersion: 2.6.35
30Contact: linux-iio@vger.kernel.org
31Description:
32 Link to /sys/class/iio/deviceX/deviceX:buffer. X indicates
33 the device with which this buffer buffer is associated.
34
35What: /sys/bus/iio/devices/deviceX/name
36KernelVersion: 2.6.35
37Contact: linux-iio@vger.kernel.org
38Description:
39 Description of the physical chip / device for device X.
40 Typically a part number.
41
42What: /sys/bus/iio/devices/deviceX/sampling_frequency
43KernelVersion: 2.6.35
44Contact: linux-iio@vger.kernel.org
45Description:
46 Some devices have internal clocks. This parameter sets the
47 resulting sampling frequency. In many devices this
48 parameter has an effect on input filters etc rather than
49 simply controlling when the input is sampled. As this
50 effects datardy triggers, hardware buffers and the sysfs
51 direct access interfaces, it may be found in any of the
52 relevant directories. If it effects all of the above
53 then it is to be found in the base device directory as here.
54
55What: /sys/bus/iio/devices/deviceX/sampling_frequency_available
56KernelVersion: 2.6.35
57Contact: linux-iio@vger.kernel.org
58Description:
59 When the internal sampling clock can only take a small
60 discrete set of values, this file lists those available.
61
62What: /sys/bus/iio/devices/deviceX/range
63KernelVersion: 2.6.38
64Contact: linux-iio@vger.kernel.org
65Description:
66 Hardware dependent ADC Full Scale Range in mVolt.
67
68What: /sys/bus/iio/devices/deviceX/range_available
69KernelVersion: 2.6.38
70Contact: linux-iio@vger.kernel.org
71Description:
72 Hardware dependent supported vales for ADC Full Scale Range.
73
74What: /sys/bus/iio/devices/deviceX/oversampling_ratio
75KernelVersion: 2.6.38
76Contact: linux-iio@vger.kernel.org
77Description:
78 Hardware dependent ADC oversampling. Controls the sampling ratio
79 of the digital filter if available.
80
81What: /sys/bus/iio/devices/deviceX/oversampling_ratio_available
82KernelVersion: 2.6.38
83Contact: linux-iio@vger.kernel.org
84Description:
85 Hardware dependent values supported by the oversampling filter.
86
87What: /sys/bus/iio/devices/deviceX/inY_raw
88What: /sys/bus/iio/devices/deviceX/inY_supply_raw
89KernelVersion: 2.6.35
90Contact: linux-iio@vger.kernel.org
91Description:
92 Raw (unscaled no bias removal etc) voltage measurement from
93 channel Y. In special cases where the channel does not
94 correspond to externally available input one of the named
95 versions may be used. The number must always be specified and
96 unique to allow association with event codes.
97
98What: /sys/bus/iio/devices/deviceX/inY-inZ_raw
99KernelVersion: 2.6.35
100Contact: linux-iio@vger.kernel.org
101Description:
102 Raw (unscaled) differential voltage measurement equivalent to
103 channel Y - channel Z where these channel numbers apply to the
104 physically equivalent inputs when non differential readings are
105 separately available. In differential only parts, then all that
106 is required is a consistent labeling.
107
108What: /sys/bus/iio/devices/deviceX/temp_raw
109What: /sys/bus/iio/devices/deviceX/temp_x_raw
110What: /sys/bus/iio/devices/deviceX/temp_y_raw
111What: /sys/bus/iio/devices/deviceX/temp_z_raw
112KernelVersion: 2.6.35
113Contact: linux-iio@vger.kernel.org
114Description:
115 Raw (unscaled no bias removal etc) temperature measurement.
116 It an axis is specified it generally means that the temperature
117 sensor is associated with one part of a compound device (e.g.
118 a gyroscope axis).
119
120What: /sys/bus/iio/devices/deviceX/tempX_input
121KernelVersion: 2.6.38
122Contact: linux-iio@vger.kernel.org
123Description:
124 Scaled temperature measurement in milli degrees Celsius.
125
126What: /sys/bus/iio/devices/deviceX/accel_x_raw
127What: /sys/bus/iio/devices/deviceX/accel_y_raw
128What: /sys/bus/iio/devices/deviceX/accel_z_raw
129KernelVersion: 2.6.35
130Contact: linux-iio@vger.kernel.org
131Description:
132 Acceleration in direction x, y or z (may be arbitrarily assigned
133 but should match other such assignments on device)
134 channel m (not present if only one accelerometer channel at
135 this orientation). Has all of the equivalent parameters as per
136 inY. Units after application of scale and offset are m/s^2.
137
138What: /sys/bus/iio/devices/deviceX/gyro_x_raw
139What: /sys/bus/iio/devices/deviceX/gyro_y_raw
140What: /sys/bus/iio/devices/deviceX/gyro_z_raw
141KernelVersion: 2.6.35
142Contact: linux-iio@vger.kernel.org
143Description:
144 Angular velocity about axis x, y or z (may be arbitrarily
145 assigned) Data converted by application of offset then scale to
146 radians per second. Has all the equivalent parameters as
147 per inY.
148
149What: /sys/bus/iio/devices/deviceX/incli_x_raw
150What: /sys/bus/iio/devices/deviceX/incli_y_raw
151What: /sys/bus/iio/devices/deviceX/incli_z_raw
152KernelVersion: 2.6.35
153Contact: linux-iio@vger.kernel.org
154Description:
155 Inclination raw reading about axis x, y or z (may be
156 arbitrarily assigned). Data converted by application of offset
157 and scale to Degrees.
158
159What: /sys/bus/iio/devices/deviceX/magn_x_raw
160What: /sys/bus/iio/devices/deviceX/magn_y_raw
161What: /sys/bus/iio/devices/deviceX/magn_z_raw
162KernelVersion: 2.6.35
163Contact: linux-iio@vger.kernel.org
164Description:
165 Magnetic field along axis x, y or z (may be arbitrarily
166 assigned) channel m (not present if only one magnetometer
167 at this orientation). Data converted by application of
168 offset then scale to Gauss. Has all the equivalent modifiers
169 as per inY.
170
171What: /sys/bus/iio/devices/deviceX/accel_x_peak_raw
172What: /sys/bus/iio/devices/deviceX/accel_y_peak_raw
173What: /sys/bus/iio/devices/deviceX/accel_z_peak_raw
174KernelVersion: 2.6.36
175Contact: linux-iio@vger.kernel.org
176Description:
177 Some devices provide a store of the highest value seen since
178 some reset condition. These attributes allow access to this
179 and are otherwise the direct equivalent of the
180 <type>Y[_name]_raw attributes.
181
182What: /sys/bus/iio/devices/deviceX/accel_xyz_squared_peak_raw
183KernelVersion: 2.6.36
184Contact: linux-iio@vger.kernel.org
185Description:
186 A computed peak value based on the sum squared magnitude of
187 the underlying value in the specified directions.
188
189What: /sys/bus/iio/devices/deviceX/accel_offset
190What: /sys/bus/iio/devices/deviceX/temp_offset
191KernelVersion: 2.6.35
192Contact: linux-iio@vger.kernel.org
193Description:
194 If known for a device, offset to be added to <type>[Y]_raw prior
195 to scaling by <type>[Y]_scale in order to obtain value in the
196 <type> units as specified in <type>[y]_raw documentation.
197 Not present if the offset is always 0 or unknown. If Y is not
198 present, then the offset applies to all in channels of <type>.
199 May be writable if a variable offset can be applied on the
200 device. Note that this is different to calibbias which
201 is for devices (or drivers) that apply offsets to compensate
202 for variation between different instances of the part, typically
203 adjusted by using some hardware supported calibration procedure.
204
205What: /sys/bus/iio/devices/deviceX/inY_scale
206What: /sys/bus/iio/devices/deviceX/inY_supply_scale
207What: /sys/bus/iio/devices/deviceX/in_scale
208What: /sys/bus/iio/devices/deviceX/outY_scale
209What: /sys/bus/iio/devices/deviceX/accel_scale
210What: /sys/bus/iio/devices/deviceX/accel_peak_scale
211What: /sys/bus/iio/devices/deviceX/gyro_scale
212What: /sys/bus/iio/devices/deviceX/magn_scale
213What: /sys/bus/iio/devices/deviceX/magn_x_scale
214What: /sys/bus/iio/devices/deviceX/magn_y_scale
215What: /sys/bus/iio/devices/deviceX/magn_z_scale
216KernelVersion: 2.6.35
217Contact: linux-iio@vger.kernel.org
218Description:
219 If known for a device, scale to be applied to <type>Y[_name]_raw
220 post addition of <type>[Y][_name]_offset in order to obtain the
221 measured value in <type> units as specified in
222 <type>[Y][_name]_raw documentation.. If shared across all in
223 channels then Y is not present and the value is called
224 <type>[Y][_name]_scale. The peak modifier means this value
225 is applied to <type>Y[_name]_peak_raw values.
226
227What: /sys/bus/iio/devices/deviceX/accel_x_calibbias
228What: /sys/bus/iio/devices/deviceX/accel_y_calibbias
229What: /sys/bus/iio/devices/deviceX/accel_z_calibbias
230What: /sys/bus/iio/devices/deviceX/gyro_x_calibbias
231What: /sys/bus/iio/devices/deviceX/gyro_y_calibbias
232What: /sys/bus/iio/devices/deviceX/gyro_z_calibbias
233KernelVersion: 2.6.35
234Contact: linux-iio@vger.kernel.org
235Description:
236 Hardware applied calibration offset. (assumed to fix production
237 inaccuracies). If shared across all channels, <type>_calibbias
238 is used.
239
240What /sys/bus/iio/devices/deviceX/inY_calibscale
241What /sys/bus/iio/devices/deviceX/inY_supply_calibscale
242What /sys/bus/iio/devices/deviceX/in_calibscale
243What /sys/bus/iio/devices/deviceX/accel_x_calibscale
244What /sys/bus/iio/devices/deviceX/accel_y_calibscale
245What /sys/bus/iio/devices/deviceX/accel_z_calibscale
246What /sys/bus/iio/devices/deviceX/gyro_x_calibscale
247What /sys/bus/iio/devices/deviceX/gyro_y_calibscale
248What /sys/bus/iio/devices/deviceX/gyro_z_calibscale
249KernelVersion: 2.6.35
250Contact: linux-iio@vger.kernel.org
251Description:
252 Hardware applied calibration scale factor. (assumed to fix
253 production inaccuracies). If shared across all channels,
254 <type>_calibscale is used.
255
256What: /sys/bus/iio/devices/deviceX/accel_scale_available
257KernelVersion: 2.635
258Contact: linux-iio@vger.kernel.org
259Description:
260 If a discrete set of scale values are available, they
261 are listed in this attribute.
262
263What: /sys/bus/iio/devices/deviceX/outY_raw
264KernelVersion: 2.6.37
265Contact: linux-iio@vger.kernel.org
266Description:
267 Raw (unscaled, no bias etc.) output voltage for
268 channel Y. The number must always be specified and
269 unique if the output corresponds to a single channel.
270
271What: /sys/bus/iio/devices/deviceX/outY&Z_raw
272KernelVersion: 2.6.37
273Contact: linux-iio@vger.kernel.org
274Description:
275 Raw (unscaled, no bias etc.) output voltage for an aggregate of
276 channel Y, channel Z, etc. This interface is available in cases
277 where a single output sets the value for multiple channels
278 simultaneously.
279
280What: /sys/bus/iio/devices/deviceX/outY_powerdown_mode
281What: /sys/bus/iio/devices/deviceX/out_powerdown_mode
282KernelVersion: 2.6.38
283Contact: linux-iio@vger.kernel.org
284Description:
285 Specifies the output powerdown mode.
286 DAC output stage is disconnected from the amplifier and
287 1kohm_to_gnd: connected to ground via an 1kOhm resistor
288 100kohm_to_gnd: connected to ground via an 100kOhm resistor
289 three_state: left floating
290 For a list of available output power down options read
291 outX_powerdown_mode_available. If Y is not present the
292 mode is shared across all outputs.
293
294What: /sys/bus/iio/devices/deviceX/outY_powerdown_mode_available
295What: /sys/bus/iio/devices/deviceX/out_powerdown_mode_available
296KernelVersion: 2.6.38
297Contact: linux-iio@vger.kernel.org
298Description:
299 Lists all available output power down modes.
300 If Y is not present the mode is shared across all outputs.
301
302What: /sys/bus/iio/devices/deviceX/outY_powerdown
303What: /sys/bus/iio/devices/deviceX/out_powerdown
304KernelVersion: 2.6.38
305Contact: linux-iio@vger.kernel.org
306Description:
307 Writing 1 causes output Y to enter the power down mode specified
308 by the corresponding outY_powerdown_mode. Clearing returns to
309 normal operation. Y may be suppressed if all outputs are
310 controlled together.
311
312What: /sys/bus/iio/devices/deviceX/deviceX:eventY
313KernelVersion: 2.6.35
314Contact: linux-iio@vger.kernel.org
315Description:
316 Configuration of which hardware generated events are passed up
317 to user-space.
318
319What: /sys/bus/iio/devices/deviceX:event/dev
320What: /sys/bus/iio/devices/deviceX:eventY/dev
321KernelVersion: 2.6.35
322Contact: linux-iio@vger.kernel.org
323Description:
324 major:minor character device numbers for the event line Y of
325 device X.
326
327What: /sys/.../deviceX:eventY/accel_x_thresh_rising_en
328What: /sys/.../deviceX:eventY/accel_x_thresh_falling_en
329What: /sys/.../deviceX:eventY/accel_y_thresh_rising_en
330What: /sys/.../deviceX:eventY/accel_y_thresh_falling_en
331What: /sys/.../deviceX:eventY/accel_z_thresh_rising_en
332What: /sys/.../deviceX:eventY/accel_z_thresh_falling_en
333What: /sys/.../deviceX:eventY/gyro_x_thresh_rising_en
334What: /sys/.../deviceX:eventY/gyro_x_thresh_falling_en
335What: /sys/.../deviceX:eventY/gyro_y_thresh_rising_en
336What: /sys/.../deviceX:eventY/gyro_y_thresh_falling_en
337What: /sys/.../deviceX:eventY/gyro_z_thresh_rising_en
338What: /sys/.../deviceX:eventY/gyro_z_thresh_falling_en
339What: /sys/.../deviceX:eventY/magn_x_thresh_rising_en
340What: /sys/.../deviceX:eventY/magn_x_thresh_falling_en
341What: /sys/.../deviceX:eventY/magn_y_thresh_rising_en
342What: /sys/.../deviceX:eventY/magn_y_thresh_falling_en
343What: /sys/.../deviceX:eventY/magn_z_thresh_rising_en
344What: /sys/.../deviceX:eventY/magn_z_thresh_falling_en
345What: /sys/.../deviceX:eventY/inZ_supply_thresh_rising_en
346What: /sys/.../deviceX:eventY/inZ_supply_thresh_falling_en
347What: /sys/.../deviceX:eventY/inZ_thresh_rising_en
348What: /sys/.../deviceX:eventY/inZ_thresh_falling_en
349What: /sys/.../deviceX:eventY/temp_thresh_rising_en
350What: /sys/.../deviceX:eventY/temp_thresh_falling_en
351KernelVersion: 2.6.37
352Contact: linux-iio@vger.kernel.org
353Description:
354 Event generated when channel passes a threshold in the specified
355 (_rising|_falling) direction. If the direction is not specified,
356 then either the device will report an event which ever direction
357 a single threshold value is called in (e.g.
358 <type>[Z][_name]_<raw|input>_thresh_value) or
359 <type>[Z][_name]_<raw|input>_thresh_rising_value and
360 <type>[Z][_name]_<raw|input>_thresh_falling_value may take
361 different values, but the device can only enable both thresholds
362 or neither.
363 Note the driver will assume the last p events requested are
364 to be enabled where p is however many it supports (which may
365 vary depending on the exact set requested. So if you want to be
366 sure you have set what you think you have, check the contents of
367 these attributes after everything is configured. Drivers may
368 have to buffer any parameters so that they are consistent when
369 a given event type is enabled a future point (and not those for
370 whatever event was previously enabled).
371
372What: /sys/.../deviceX:eventY/accel_x_roc_rising_en
373What: /sys/.../deviceX:eventY/accel_x_roc_falling_en
374What: /sys/.../deviceX:eventY/accel_y_roc_rising_en
375What: /sys/.../deviceX:eventY/accel_y_roc_falling_en
376What: /sys/.../deviceX:eventY/accel_z_roc_rising_en
377What: /sys/.../deviceX:eventY/accel_z_roc_falling_en
378What: /sys/.../deviceX:eventY/gyro_x_roc_rising_en
379What: /sys/.../deviceX:eventY/gyro_x_roc_falling_en
380What: /sys/.../deviceX:eventY/gyro_y_roc_rising_en
381What: /sys/.../deviceX:eventY/gyro_y_roc_falling_en
382What: /sys/.../deviceX:eventY/gyro_z_roc_rising_en
383What: /sys/.../deviceX:eventY/gyro_z_roc_falling_en
384What: /sys/.../deviceX:eventY/magn_x_roc_rising_en
385What: /sys/.../deviceX:eventY/magn_x_roc_falling_en
386What: /sys/.../deviceX:eventY/magn_y_roc_rising_en
387What: /sys/.../deviceX:eventY/magn_y_roc_falling_en
388What: /sys/.../deviceX:eventY/magn_z_roc_rising_en
389What: /sys/.../deviceX:eventY/magn_z_roc_falling_en
390What: /sys/.../deviceX:eventY/inZ_supply_roc_rising_en
391What: /sys/.../deviceX:eventY/inZ_supply_roc_falling_en
392What: /sys/.../deviceX:eventY/inZ_roc_rising_en
393What: /sys/.../deviceX:eventY/inZ_roc_falling_en
394What: /sys/.../deviceX:eventY/temp_roc_rising_en
395What: /sys/.../deviceX:eventY/temp_roc_falling_en
396KernelVersion: 2.6.37
397Contact: linux-iio@vger.kernel.org
398Description:
399 Event generated when channel passes a threshold on the rate of
400 change (1st differential) in the specified (_rising|_falling)
401 direction. If the direction is not specified, then either the
402 device will report an event which ever direction a single
403 threshold value is called in (e.g.
404 <type>[Z][_name]_<raw|input>_roc_value) or
405 <type>[Z][_name]_<raw|input>_roc_rising_value and
406 <type>[Z][_name]_<raw|input>_roc_falling_value may take
407 different values, but the device can only enable both rate of
408 change thresholds or neither.
409 Note the driver will assume the last p events requested are
410 to be enabled where p is however many it supports (which may
411 vary depending on the exact set requested. So if you want to be
412 sure you have set what you think you have, check the contents of
413 these attributes after everything is configured. Drivers may
414 have to buffer any parameters so that they are consistent when
415 a given event type is enabled a future point (and not those for
416 whatever event was previously enabled).
417
418What: /sys/.../deviceX:eventY/accel_x_raw_thresh_rising_value
419What: /sys/.../deviceX:eventY/accel_x_raw_thresh_falling_value
420What: /sys/.../deviceX:eventY/accel_y_raw_thresh_rising_value
421What: /sys/.../deviceX:eventY/accel_y_raw_thresh_falling_value
422What: /sys/.../deviceX:eventY/accel_z_raw_thresh_rising_value
423What: /sys/.../deviceX:eventY/accel_z_raw_thresh_falling_value
424What: /sys/.../deviceX:eventY/gyro_x_raw_thresh_rising_value
425What: /sys/.../deviceX:eventY/gyro_x_raw_thresh_falling_value
426What: /sys/.../deviceX:eventY/gyro_y_raw_thresh_rising_value
427What: /sys/.../deviceX:eventY/gyro_y_raw_thresh_falling_value
428What: /sys/.../deviceX:eventY/gyro_z_raw_thresh_rising_value
429What: /sys/.../deviceX:eventY/gyro_z_raw_thresh_falling_value
430What: /sys/.../deviceX:eventY/magn_x_raw_thresh_rising_value
431What: /sys/.../deviceX:eventY/magn_x_raw_thresh_falling_value
432What: /sys/.../deviceX:eventY/magn_y_raw_thresh_rising_value
433What: /sys/.../deviceX:eventY/magn_y_raw_thresh_falling_value
434What: /sys/.../deviceX:eventY/magn_z_raw_thresh_rising_value
435What: /sys/.../deviceX:eventY/magn_z_raw_thresh_falling_value
436What: /sys/.../deviceX:eventY/inZ_supply_raw_thresh_rising_value
437What: /sys/.../deviceX:eventY/inZ_supply_raw_thresh_falling_value
438What: /sys/.../deviceX:eventY/inZ_raw_thresh_falling_value
439What: /sys/.../deviceX:eventY/inZ_raw_thresh_falling_value
440What: /sys/.../deviceX:eventY/temp_raw_thresh_falling_value
441What: /sys/.../deviceX:eventY/temp_raw_thresh_falling_value
442KernelVersion: 2.6.37
443Contact: linux-iio@vger.kernel.org
444Description:
445 Specifies the value of threshold that the device is comparing
446 against for the events enabled by
447 <type>Z[_name]_thresh[_rising|falling]_en.
448 If separate attributes exist for the two directions, but
449 direction is not specified for this attribute, then a single
450 threshold value applies to both directions.
451 The raw or input element of the name indicates whether the
452 value is in raw device units or in processed units (as _raw
453 and _input do on sysfs direct channel read attributes).
454
455What: /sys/.../deviceX:eventY/accel_x_raw_roc_rising_value
456What: /sys/.../deviceX:eventY/accel_x_raw_roc_falling_value
457What: /sys/.../deviceX:eventY/accel_y_raw_roc_rising_value
458What: /sys/.../deviceX:eventY/accel_y_raw_roc_falling_value
459What: /sys/.../deviceX:eventY/accel_z_raw_roc_rising_value
460What: /sys/.../deviceX:eventY/accel_z_raw_roc_falling_value
461What: /sys/.../deviceX:eventY/gyro_x_raw_roc_rising_value
462What: /sys/.../deviceX:eventY/gyro_x_raw_roc_falling_value
463What: /sys/.../deviceX:eventY/gyro_y_raw_roc_rising_value
464What: /sys/.../deviceX:eventY/gyro_y_raw_roc_falling_value
465What: /sys/.../deviceX:eventY/gyro_z_raw_roc_rising_value
466What: /sys/.../deviceX:eventY/gyro_z_raw_roc_falling_value
467What: /sys/.../deviceX:eventY/magn_x_raw_roc_rising_value
468What: /sys/.../deviceX:eventY/magn_x_raw_roc_falling_value
469What: /sys/.../deviceX:eventY/magn_y_raw_roc_rising_value
470What: /sys/.../deviceX:eventY/magn_y_raw_roc_falling_value
471What: /sys/.../deviceX:eventY/magn_z_raw_roc_rising_value
472What: /sys/.../deviceX:eventY/magn_z_raw_roc_falling_value
473What: /sys/.../deviceX:eventY/inZ_supply_raw_roc_rising_value
474What: /sys/.../deviceX:eventY/inZ_supply_raw_roc_falling_value
475What: /sys/.../deviceX:eventY/inZ_raw_roc_falling_value
476What: /sys/.../deviceX:eventY/inZ_raw_roc_falling_value
477What: /sys/.../deviceX:eventY/temp_raw_roc_falling_value
478What: /sys/.../deviceX:eventY/temp_raw_roc_falling_value
479KernelVersion: 2.6.37
480Contact: linux-iio@vger.kernel.org
481Description:
482 Specifies the value of rate of change threshold that the
483 device is comparing against for the events enabled by
484 <type>[Z][_name]_roc[_rising|falling]_en.
485 If separate attributes exist for the two directions,
486 but direction is not specified for this attribute,
487 then a single threshold value applies to both directions.
488 The raw or input element of the name indicates whether the
489 value is in raw device units or in processed units (as _raw
490 and _input do on sysfs direct channel read attributes).
491
492What: /sys/.../deviceX:eventY/accel_x_thresh_rising_period
493What: /sys/.../deviceX:eventY/accel_x_thresh_falling_period
494hat: /sys/.../deviceX:eventY/accel_x_roc_rising_period
495What: /sys/.../deviceX:eventY/accel_x_roc_falling_period
496What: /sys/.../deviceX:eventY/accel_y_thresh_rising_period
497What: /sys/.../deviceX:eventY/accel_y_thresh_falling_period
498What: /sys/.../deviceX:eventY/accel_y_roc_rising_period
499What: /sys/.../deviceX:eventY/accel_y_roc_falling_period
500What: /sys/.../deviceX:eventY/accel_z_thresh_rising_period
501What: /sys/.../deviceX:eventY/accel_z_thresh_falling_period
502What: /sys/.../deviceX:eventY/accel_z_roc_rising_period
503What: /sys/.../deviceX:eventY/accel_z_roc_falling_period
504What: /sys/.../deviceX:eventY/gyro_x_thresh_rising_period
505What: /sys/.../deviceX:eventY/gyro_x_thresh_falling_period
506What: /sys/.../deviceX:eventY/gyro_x_roc_rising_period
507What: /sys/.../deviceX:eventY/gyro_x_roc_falling_period
508What: /sys/.../deviceX:eventY/gyro_y_thresh_rising_period
509What: /sys/.../deviceX:eventY/gyro_y_thresh_falling_period
510What: /sys/.../deviceX:eventY/gyro_y_roc_rising_period
511What: /sys/.../deviceX:eventY/gyro_y_roc_falling_period
512What: /sys/.../deviceX:eventY/gyro_z_thresh_rising_period
513What: /sys/.../deviceX:eventY/gyro_z_thresh_falling_period
514What: /sys/.../deviceX:eventY/gyro_z_roc_rising_period
515What: /sys/.../deviceX:eventY/gyro_z_roc_falling_period
516What: /sys/.../deviceX:eventY/magn_x_thresh_rising_period
517What: /sys/.../deviceX:eventY/magn_x_thresh_falling_period
518What: /sys/.../deviceX:eventY/magn_x_roc_rising_period
519What: /sys/.../deviceX:eventY/magn_x_roc_falling_period
520What: /sys/.../deviceX:eventY/magn_y_thresh_rising_period
521What: /sys/.../deviceX:eventY/magn_y_thresh_falling_period
522What: /sys/.../deviceX:eventY/magn_y_roc_rising_period
523What: /sys/.../deviceX:eventY/magn_y_roc_falling_period
524What: /sys/.../deviceX:eventY/magn_z_thresh_rising_period
525What: /sys/.../deviceX:eventY/magn_z_thresh_falling_period
526What: /sys/.../deviceX:eventY/magn_z_roc_rising_period
527What: /sys/.../deviceX:eventY/magn_z_roc_falling_period
528What: /sys/.../deviceX:eventY/inZ_supply_thresh_rising_period
529What: /sys/.../deviceX:eventY/inZ_supply_thresh_falling_period
530What: /sys/.../deviceX:eventY/inz_supply_roc_rising_period
531What: /sys/.../deviceX:eventY/inZ_supply_roc_falling_period
532What: /sys/.../deviceX:eventY/inZ_thresh_rising_period
533What: /sys/.../deviceX:eventY/inZ_thresh_falling_period
534What: /sys/.../deviceX:eventY/inZ_roc_rising_period
535What: /sys/.../deviceX:eventY/inZ_roc_falling_period
536What: /sys/.../deviceX:eventY/temp_thresh_rising_period
537What: /sys/.../deviceX:eventY/temp_thresh_falling_period
538What: /sys/.../deviceX:eventY/temp_roc_rising_period
539What: /sys/.../deviceX:eventY/temp_roc_falling_period
540What: /sys/.../deviceX:eventY/accel_x&y&z_mag_falling_period
541KernelVersion: 2.6.37
542Contact: linux-iio@vger.kernel.org
543Description:
544 Period of time (in seconds) for which the condition must be
545 met before an event is generated. If direction is not
546 specified then this period applies to both directions.
547
548What: /sys/.../deviceX:eventY/accel_mag_en
549What: /sys/.../deviceX:eventY/accel_mag_rising_en
550What: /sys/.../deviceX:eventY/accel_mag_falling_en
551What: /sys/.../deviceX:eventY/accel_x_mag_en
552What: /sys/.../deviceX:eventY/accel_x_mag_rising_en
553What: /sys/.../deviceX:eventY/accel_x_mag_falling_en
554What: /sys/.../deviceX:eventY/accel_y_mag_en
555What: /sys/.../deviceX:eventY/accel_y_mag_rising_en
556What: /sys/.../deviceX:eventY/accel_y_mag_falling_en
557What: /sys/.../deviceX:eventY/accel_z_mag_en
558What: /sys/.../deviceX:eventY/accel_z_mag_rising_en
559What: /sys/.../deviceX:eventY/accel_z_mag_falling_en
560What: /sys/.../deviceX:eventY/accel_x&y&z_mag_rising_en
561What: /sys/.../deviceX:eventY/accel_x&y&z_mag_falling_en
562KernelVersion: 2.6.37
563Contact: linux-iio@vger.kernel.org
564Description:
565 Similar to accel_x_thresh[_rising|_falling]_en, but here the
566 magnitude of the channel is compared to the threshold, not its
567 signed value.
568
569What: /sys/.../accel_raw_mag_value
570What: /sys/.../accel_x_raw_mag_rising_value
571What: /sys/.../accel_y_raw_mag_rising_value
572What: /sys/.../accel_z_raw_mag_rising_value
573KernelVersion: 2.6.37
574Contact: linux-iio@vger.kernel.org
575Description:
576 The value to which the magnitude of the channel is compared. If
577 number or direction is not specified, applies to all channels of
578 this type.
579
580What: /sys/bus/iio/devices/deviceX:buffer:event/dev
581KernelVersion: 2.6.35
582Contact: linux-iio@vger.kernel.org
583Description:
584 Buffer for device X event character device major:minor numbers.
585
586What: /sys/bus/iio/devices/deviceX:buffer:access/dev
587KernelVersion: 2.6.35
588Contact: linux-iio@vger.kernel.org
589Description:
590 Buffer for device X access character device major:minor numbers.
591
592What: /sys/bus/iio/devices/deviceX:buffer/trigger
593KernelVersion: 2.6.35
594Contact: linux-iio@vger.kernel.org
595Description:
596 The name of the trigger source being used, as per string given
597 in /sys/class/iio/triggerY/name.
598
599What: /sys/bus/iio/devices/deviceX:buffer/length
600KernelVersion: 2.6.35
601Contact: linux-iio@vger.kernel.org
602Description:
603 Number of scans contained by the buffer.
604
605What: /sys/bus/iio/devices/deviceX:buffer/bytes_per_datum
606KernelVersion: 2.6.37
607Contact: linux-iio@vger.kernel.org
608Description:
609 Bytes per scan. Due to alignment fun, the scan may be larger
610 than implied directly by the scan_element parameters.
611
612What: /sys/bus/iio/devices/deviceX:buffer/enable
613KernelVersion: 2.6.35
614Contact: linux-iio@vger.kernel.org
615Description:
616 Actually start the buffer capture up. Will start trigger
617 if first device and appropriate.
618
619What: /sys/bus/iio/devices/deviceX:buffer/scan_elements
620KernelVersion: 2.6.37
621Contact: linux-iio@vger.kernel.org
622Description:
623 Directory containing interfaces for elements that will be
624 captured for a single triggered sample set in the buffer.
625
626What: /sys/bus/iio/devices/deviceX:buffer/scan_elements/accel_x_en
627What: /sys/bus/iio/devices/deviceX:buffer/scan_elements/accel_y_en
628What: /sys/bus/iio/devices/deviceX:buffer/scan_elements/accel_z_en
629What: /sys/bus/iio/devices/deviceX:buffer/scan_elements/gyro_x_en
630What: /sys/bus/iio/devices/deviceX:buffer/scan_elements/gyro_y_en
631What: /sys/bus/iio/devices/deviceX:buffer/scan_elements/gyro_z_en
632What: /sys/bus/iio/devices/deviceX:buffer/scan_elements/magn_x_en
633What: /sys/bus/iio/devices/deviceX:buffer/scan_elements/magn_y_en
634What: /sys/bus/iio/devices/deviceX:buffer/scan_elements/magn_z_en
635What: /sys/bus/iio/devices/deviceX:buffer/scan_elements/timestamp_en
636What: /sys/bus/iio/devices/deviceX:buffer/scan_elements/inY_supply_en
637What: /sys/bus/iio/devices/deviceX:buffer/scan_elements/inY_en
638What: /sys/bus/iio/devices/deviceX:buffer/scan_elements/inY-inZ_en
639What: /sys/bus/iio/devices/deviceX:buffer/scan_elements/incli_x_en
640What: /sys/bus/iio/devices/deviceX:buffer/scan_elements/incli_y_en
641KernelVersion: 2.6.37
642Contact: linux-iio@vger.kernel.org
643Description:
644 Scan element control for triggered data capture.
645
646What: /sys/bus/iio/devices/deviceX:buffer/scan_elements/accel_type
647What: /sys/bus/iio/devices/deviceX:buffer/scan_elements/gyro_type
648What: /sys/bus/iio/devices/deviceX:buffer/scan_elements/magn_type
649What: /sys/bus/iio/devices/deviceX:buffer/scan_elements/incli_type
650What: /sys/bus/iio/devices/deviceX:buffer/scan_elements/inY_type
651What: /sys/bus/iio/devices/deviceX:buffer/scan_elements/in-in_type
652What: /sys/.../deviceX:buffer/scan_elements/inY_supply_type
653What: /sys/.../deviceX:buffer/scan_elements/timestamp_type
654KernelVersion: 2.6.37
655Contact: linux-iio@vger.kernel.org
656Description:
657 Description of the scan element data storage within the buffer
658 and hence the form in which it is read from user-space.
659 Form is [s|u]bits/storagebits[>>shift]. s or u specifies if
660 signed (2's complement) or unsigned. bits is the number of bits
661 of data and storagebits is the space (after padding) that it
662 occupies in the buffer. shift if specified, is the shift that
663 needs to be applied prior to masking out unused bits. Some
664 devices put their data in the middle of the transferred elements
665 with additional information on both sides. Note that some
666 devices will have additional information in the unused bits
667 so to get a clean value, the bits value must be used to mask
668 the buffer output value appropriately. The storagebits value
669 also specifies the data alignment. So s48/64>>2 will be a
670 signed 48 bit integer stored in a 64 bit location aligned to
671 a a64 bit boundary. To obtain the clean value, shift right 2
672 and apply a mask to zero the top 16 bits of the result.
673 For other storage combinations this attribute will be extended
674 appropriately.
675
676What: /sys/.../deviceX:buffer/scan_elements/accel_type_available
677KernelVersion: 2.6.37
678Contact: linux-iio@vger.kernel.org
679Description:
680 If the type parameter can take one of a small set of values,
681 this attribute lists them.
682
683What: /sys/bus/iio/devices/deviceX:buffer/scan_elements/inY_index
684What: /sys/.../deviceX:buffer/scan_elements/inY_supply_index
685What: /sys/bus/iio/devices/deviceX:buffer/scan_elements/accel_x_index
686What: /sys/bus/iio/devices/deviceX:buffer/scan_elements/accel_y_index
687What: /sys/bus/iio/devices/deviceX:buffer/scan_elements/accel_z_index
688What: /sys/bus/iio/devices/deviceX:buffer/scan_elements/gyro_x_index
689What: /sys/bus/iio/devices/deviceX:buffer/scan_elements/gyro_y_index
690What: /sys/bus/iio/devices/deviceX:buffer/scan_elements/gyro_z_index
691What: /sys/bus/iio/devices/deviceX:buffer/scan_elements/magn_x_index
692What: /sys/bus/iio/devices/deviceX:buffer/scan_elements/magn_y_index
693What: /sys/bus/iio/devices/deviceX:buffer/scan_elements/magn_z_index
694What: /sys/bus/iio/devices/deviceX:buffer/scan_elements/incli_x_index
695What: /sys/bus/iio/devices/deviceX:buffer/scan_elements/incli_y_index
696What: /sys/.../deviceX:buffer/scan_elements/timestamp_index
697KernelVersion: 2.6.37
698Contact: linux-iio@vger.kernel.org
699Description:
700 A single positive integer specifying the position of this
701 scan element in the buffer. Note these are not dependent on
702 what is enabled and may not be contiguous. Thus for user-space
703 to establish the full layout these must be used in conjunction
704 with all _en attributes to establish which channels are present,
705 and the relevant _type attributes to establish the data storage
706 format.
707
708What: /sys/bus/iio/devices/deviceX/gyro_z_quadrature_correction_raw
709KernelVersion: 2.6.38
710Contact: linux-iio@xxxxxxxxxxxxxxx
711Description:
712 This attribute is used to read the amount of quadrature error
713 present in the device at a given time.