Commit | Line | Data |
---|---|---|
af5046af JC |
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 | #ifndef _IIO_TYPES_H_ | |
11 | #define _IIO_TYPES_H_ | |
12 | ||
293487c8 | 13 | #include <uapi/linux/iio/types.h> |
b4e3ac0a LPC |
14 | |
15 | enum iio_event_info { | |
16 | IIO_EV_INFO_ENABLE, | |
17 | IIO_EV_INFO_VALUE, | |
ec6670ae | 18 | IIO_EV_INFO_HYSTERESIS, |
77a533c7 | 19 | IIO_EV_INFO_PERIOD, |
3f7f642b MF |
20 | IIO_EV_INFO_HIGH_PASS_FILTER_3DB, |
21 | IIO_EV_INFO_LOW_PASS_FILTER_3DB, | |
b4e3ac0a LPC |
22 | }; |
23 | ||
ad2c08b6 JC |
24 | #define IIO_VAL_INT 1 |
25 | #define IIO_VAL_INT_PLUS_MICRO 2 | |
26 | #define IIO_VAL_INT_PLUS_NANO 3 | |
67eedba3 | 27 | #define IIO_VAL_INT_PLUS_MICRO_DB 4 |
9fbfb4b3 | 28 | #define IIO_VAL_INT_MULTIPLE 5 |
7985e7c1 | 29 | #define IIO_VAL_FRACTIONAL 10 |
103d9fb9 | 30 | #define IIO_VAL_FRACTIONAL_LOG2 11 |
ad2c08b6 | 31 | |
af5046af | 32 | #endif /* _IIO_TYPES_H_ */ |