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