blob: 22e5e589a2747beff6d59f40d44ce99364c85415 [file] [log] [blame]
Christopher Ferris12e1f282016-02-04 12:35:07 -08001/* industrial I/O data types needed both in and out of kernel
2 *
3 * Copyright (c) 2008 Jonathan Cameron
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 as published by
7 * the Free Software Foundation.
8 */
9
10#ifndef _UAPI_IIO_TYPES_H_
11#define _UAPI_IIO_TYPES_H_
12
13enum iio_chan_type {
14 IIO_VOLTAGE,
15 IIO_CURRENT,
16 IIO_POWER,
17 IIO_ACCEL,
18 IIO_ANGL_VEL,
19 IIO_MAGN,
20 IIO_LIGHT,
21 IIO_INTENSITY,
22 IIO_PROXIMITY,
23 IIO_TEMP,
24 IIO_INCLI,
25 IIO_ROT,
26 IIO_ANGL,
27 IIO_TIMESTAMP,
28 IIO_CAPACITANCE,
29 IIO_ALTVOLTAGE,
30 IIO_CCT,
31 IIO_PRESSURE,
32 IIO_HUMIDITYRELATIVE,
33 IIO_ACTIVITY,
34 IIO_STEPS,
35 IIO_ENERGY,
36 IIO_DISTANCE,
37 IIO_VELOCITY,
38 IIO_CONCENTRATION,
39 IIO_RESISTANCE,
Christopher Ferrisccfaccd2016-08-24 12:11:31 -070040 IIO_PH,
41 IIO_UVINDEX,
Christopher Ferris6e3550f2016-12-12 14:51:18 -080042 IIO_ELECTRICALCONDUCTIVITY,
Christopher Ferris12e1f282016-02-04 12:35:07 -080043};
44
45enum iio_modifier {
46 IIO_NO_MOD,
47 IIO_MOD_X,
48 IIO_MOD_Y,
49 IIO_MOD_Z,
50 IIO_MOD_X_AND_Y,
51 IIO_MOD_X_AND_Z,
52 IIO_MOD_Y_AND_Z,
53 IIO_MOD_X_AND_Y_AND_Z,
54 IIO_MOD_X_OR_Y,
55 IIO_MOD_X_OR_Z,
56 IIO_MOD_Y_OR_Z,
57 IIO_MOD_X_OR_Y_OR_Z,
58 IIO_MOD_LIGHT_BOTH,
59 IIO_MOD_LIGHT_IR,
60 IIO_MOD_ROOT_SUM_SQUARED_X_Y,
61 IIO_MOD_SUM_SQUARED_X_Y_Z,
62 IIO_MOD_LIGHT_CLEAR,
63 IIO_MOD_LIGHT_RED,
64 IIO_MOD_LIGHT_GREEN,
65 IIO_MOD_LIGHT_BLUE,
66 IIO_MOD_QUATERNION,
67 IIO_MOD_TEMP_AMBIENT,
68 IIO_MOD_TEMP_OBJECT,
69 IIO_MOD_NORTH_MAGN,
70 IIO_MOD_NORTH_TRUE,
71 IIO_MOD_NORTH_MAGN_TILT_COMP,
72 IIO_MOD_NORTH_TRUE_TILT_COMP,
73 IIO_MOD_RUNNING,
74 IIO_MOD_JOGGING,
75 IIO_MOD_WALKING,
76 IIO_MOD_STILL,
77 IIO_MOD_ROOT_SUM_SQUARED_X_Y_Z,
78 IIO_MOD_I,
79 IIO_MOD_Q,
80 IIO_MOD_CO2,
81 IIO_MOD_VOC,
Christopher Ferrisccfaccd2016-08-24 12:11:31 -070082 IIO_MOD_LIGHT_UV,
Christopher Ferris12e1f282016-02-04 12:35:07 -080083};
84
85enum iio_event_type {
86 IIO_EV_TYPE_THRESH,
87 IIO_EV_TYPE_MAG,
88 IIO_EV_TYPE_ROC,
89 IIO_EV_TYPE_THRESH_ADAPTIVE,
90 IIO_EV_TYPE_MAG_ADAPTIVE,
91 IIO_EV_TYPE_CHANGE,
92};
93
94enum iio_event_direction {
95 IIO_EV_DIR_EITHER,
96 IIO_EV_DIR_RISING,
97 IIO_EV_DIR_FALLING,
98 IIO_EV_DIR_NONE,
99};
100
101#endif /* _UAPI_IIO_TYPES_H_ */
102