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