1 /* 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 * TODO: This header file should be moved to external/kernel-headers/original. 11 */ 12 #ifndef _IIO_TYPES_H_ 13 #define _IIO_TYPES_H_ 14 15 enum iio_chan_type { 16 /* real channel types */ 17 IIO_VOLTAGE, 18 IIO_CURRENT, 19 IIO_POWER, 20 IIO_ACCEL, 21 IIO_ANGL_VEL, 22 IIO_MAGN, 23 IIO_LIGHT, 24 IIO_INTENSITY, 25 IIO_PROXIMITY, 26 IIO_TEMP, 27 IIO_INCLI, 28 IIO_ROT, 29 IIO_ANGL, 30 IIO_TIMESTAMP, 31 IIO_CAPACITANCE, 32 IIO_PRESSURE, 33 }; 34 35 enum iio_modifier { 36 IIO_NO_MOD, 37 IIO_MOD_X, 38 IIO_MOD_Y, 39 IIO_MOD_Z, 40 IIO_MOD_X_AND_Y, 41 IIO_MOD_X_AND_Z, 42 IIO_MOD_Y_AND_Z, 43 IIO_MOD_X_AND_Y_AND_Z, 44 IIO_MOD_X_OR_Y, 45 IIO_MOD_X_OR_Z, 46 IIO_MOD_Y_OR_Z, 47 IIO_MOD_X_OR_Y_OR_Z, 48 IIO_MOD_LIGHT_BOTH, 49 IIO_MOD_LIGHT_IR, 50 }; 51 52 #define IIO_VAL_INT 1 53 #define IIO_VAL_INT_PLUS_MICRO 2 54 #define IIO_VAL_INT_PLUS_NANO 3 55 56 #endif /* _IIO_TYPES_H_ */ 57