types.h revision 05d08e9716b5974d6ed08973f44930804890b902
1/****************************************************************************
2 ****************************************************************************
3 ***
4 ***   This header was automatically generated from a Linux kernel header
5 ***   of the same name, to make information necessary for userspace to
6 ***   call into the kernel available to libc.  It contains only constants,
7 ***   structures, and macros generated from the original header, and thus,
8 ***   contains no copyrightable information.
9 ***
10 ***   To edit the content of this header, modify the corresponding
11 ***   source file (e.g. under external/kernel-headers/original/) then
12 ***   run bionic/libc/kernel/tools/update_all.py
13 ***
14 ***   Any manual change here will be lost the next time this script will
15 ***   be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
19#ifndef _UAPI_IIO_TYPES_H_
20#define _UAPI_IIO_TYPES_H_
21enum iio_chan_type {
22  IIO_VOLTAGE,
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24  IIO_CURRENT,
25  IIO_POWER,
26  IIO_ACCEL,
27  IIO_ANGL_VEL,
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29  IIO_MAGN,
30  IIO_LIGHT,
31  IIO_INTENSITY,
32  IIO_PROXIMITY,
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34  IIO_TEMP,
35  IIO_INCLI,
36  IIO_ROT,
37  IIO_ANGL,
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39  IIO_TIMESTAMP,
40  IIO_CAPACITANCE,
41  IIO_ALTVOLTAGE,
42  IIO_CCT,
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44  IIO_PRESSURE,
45  IIO_HUMIDITYRELATIVE,
46  IIO_ACTIVITY,
47  IIO_STEPS,
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49  IIO_ENERGY,
50  IIO_DISTANCE,
51  IIO_VELOCITY,
52  IIO_CONCENTRATION,
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54  IIO_RESISTANCE,
55};
56enum iio_modifier {
57  IIO_NO_MOD,
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59  IIO_MOD_X,
60  IIO_MOD_Y,
61  IIO_MOD_Z,
62  IIO_MOD_X_AND_Y,
63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64  IIO_MOD_X_AND_Z,
65  IIO_MOD_Y_AND_Z,
66  IIO_MOD_X_AND_Y_AND_Z,
67  IIO_MOD_X_OR_Y,
68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69  IIO_MOD_X_OR_Z,
70  IIO_MOD_Y_OR_Z,
71  IIO_MOD_X_OR_Y_OR_Z,
72  IIO_MOD_LIGHT_BOTH,
73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74  IIO_MOD_LIGHT_IR,
75  IIO_MOD_ROOT_SUM_SQUARED_X_Y,
76  IIO_MOD_SUM_SQUARED_X_Y_Z,
77  IIO_MOD_LIGHT_CLEAR,
78/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79  IIO_MOD_LIGHT_RED,
80  IIO_MOD_LIGHT_GREEN,
81  IIO_MOD_LIGHT_BLUE,
82  IIO_MOD_QUATERNION,
83/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84  IIO_MOD_TEMP_AMBIENT,
85  IIO_MOD_TEMP_OBJECT,
86  IIO_MOD_NORTH_MAGN,
87  IIO_MOD_NORTH_TRUE,
88/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89  IIO_MOD_NORTH_MAGN_TILT_COMP,
90  IIO_MOD_NORTH_TRUE_TILT_COMP,
91  IIO_MOD_RUNNING,
92  IIO_MOD_JOGGING,
93/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
94  IIO_MOD_WALKING,
95  IIO_MOD_STILL,
96  IIO_MOD_ROOT_SUM_SQUARED_X_Y_Z,
97  IIO_MOD_I,
98/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
99  IIO_MOD_Q,
100  IIO_MOD_CO2,
101  IIO_MOD_VOC,
102};
103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
104enum iio_event_type {
105  IIO_EV_TYPE_THRESH,
106  IIO_EV_TYPE_MAG,
107  IIO_EV_TYPE_ROC,
108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
109  IIO_EV_TYPE_THRESH_ADAPTIVE,
110  IIO_EV_TYPE_MAG_ADAPTIVE,
111  IIO_EV_TYPE_CHANGE,
112};
113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
114enum iio_event_direction {
115  IIO_EV_DIR_EITHER,
116  IIO_EV_DIR_RISING,
117  IIO_EV_DIR_FALLING,
118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
119  IIO_EV_DIR_NONE,
120};
121#endif
122