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