2011-10-26 10:41:32 -06:00
|
|
|
/* industrial I/O data types needed both in and out of kernel
|
|
|
|
*
|
|
|
|
* Copyright (c) 2008 Jonathan Cameron
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify it
|
|
|
|
* under the terms of the GNU General Public License version 2 as published by
|
|
|
|
* the Free Software Foundation.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _IIO_TYPES_H_
|
|
|
|
#define _IIO_TYPES_H_
|
|
|
|
|
2015-02-10 09:33:51 -07:00
|
|
|
#include <uapi/linux/iio/types.h>
|
2013-10-07 08:11:00 -06:00
|
|
|
|
|
|
|
enum iio_event_info {
|
|
|
|
IIO_EV_INFO_ENABLE,
|
|
|
|
IIO_EV_INFO_VALUE,
|
2013-10-07 08:11:00 -06:00
|
|
|
IIO_EV_INFO_HYSTERESIS,
|
2014-08-07 16:29:00 -06:00
|
|
|
IIO_EV_INFO_PERIOD,
|
2015-05-13 04:26:42 -06:00
|
|
|
IIO_EV_INFO_HIGH_PASS_FILTER_3DB,
|
|
|
|
IIO_EV_INFO_LOW_PASS_FILTER_3DB,
|
2013-10-07 08:11:00 -06:00
|
|
|
};
|
|
|
|
|
2012-02-15 12:48:02 -07:00
|
|
|
#define IIO_VAL_INT 1
|
|
|
|
#define IIO_VAL_INT_PLUS_MICRO 2
|
|
|
|
#define IIO_VAL_INT_PLUS_NANO 3
|
2012-05-11 03:36:52 -06:00
|
|
|
#define IIO_VAL_INT_PLUS_MICRO_DB 4
|
2014-04-28 17:51:00 -06:00
|
|
|
#define IIO_VAL_INT_MULTIPLE 5
|
2012-09-14 09:21:00 -06:00
|
|
|
#define IIO_VAL_FRACTIONAL 10
|
2012-10-16 10:29:00 -06:00
|
|
|
#define IIO_VAL_FRACTIONAL_LOG2 11
|
2012-02-15 12:48:02 -07:00
|
|
|
|
2016-11-08 04:58:51 -07:00
|
|
|
enum iio_available_type {
|
|
|
|
IIO_AVAIL_LIST,
|
|
|
|
IIO_AVAIL_RANGE,
|
|
|
|
};
|
|
|
|
|
2011-10-26 10:41:32 -06:00
|
|
|
#endif /* _IIO_TYPES_H_ */
|