1 /* industrial I/O data types needed both in and out of kernel
3 * Copyright (c) 2008 Jonathan Cameron
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.
13 #include <uapi/linux/iio/types.h>
18 IIO_EV_INFO_HYSTERESIS
,
20 IIO_EV_INFO_HIGH_PASS_FILTER_3DB
,
21 IIO_EV_INFO_LOW_PASS_FILTER_3DB
,
25 #define IIO_VAL_INT_PLUS_MICRO 2
26 #define IIO_VAL_INT_PLUS_NANO 3
27 #define IIO_VAL_INT_PLUS_MICRO_DB 4
28 #define IIO_VAL_INT_MULTIPLE 5
29 #define IIO_VAL_FRACTIONAL 10
30 #define IIO_VAL_FRACTIONAL_LOG2 11
32 enum iio_available_type
{
37 enum iio_chan_info_enum
{
38 IIO_CHAN_INFO_RAW
= 0,
39 IIO_CHAN_INFO_PROCESSED
,
42 IIO_CHAN_INFO_CALIBSCALE
,
43 IIO_CHAN_INFO_CALIBBIAS
,
45 IIO_CHAN_INFO_PEAK_SCALE
,
46 IIO_CHAN_INFO_QUADRATURE_CORRECTION_RAW
,
47 IIO_CHAN_INFO_AVERAGE_RAW
,
48 IIO_CHAN_INFO_LOW_PASS_FILTER_3DB_FREQUENCY
,
49 IIO_CHAN_INFO_HIGH_PASS_FILTER_3DB_FREQUENCY
,
50 IIO_CHAN_INFO_SAMP_FREQ
,
51 IIO_CHAN_INFO_FREQUENCY
,
53 IIO_CHAN_INFO_HARDWAREGAIN
,
54 IIO_CHAN_INFO_HYSTERESIS
,
55 IIO_CHAN_INFO_INT_TIME
,
57 IIO_CHAN_INFO_CALIBHEIGHT
,
58 IIO_CHAN_INFO_CALIBWEIGHT
,
59 IIO_CHAN_INFO_DEBOUNCE_COUNT
,
60 IIO_CHAN_INFO_DEBOUNCE_TIME
,
61 IIO_CHAN_INFO_CALIBEMISSIVITY
,
62 IIO_CHAN_INFO_OVERSAMPLING_RATIO
,
65 #endif /* _IIO_TYPES_H_ */