mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-24 01:41:39 +00:00
3f7f642b9b
Add a high pass filter attribute for measurements (like the existing low pass) Also add both high and low pass attributes for events. Signed-off-by: Martin Fuzzey <mfuzzey@parkeon.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
32 lines
808 B
C
32 lines
808 B
C
/* 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_
|
|
|
|
#include <uapi/linux/iio/types.h>
|
|
|
|
enum iio_event_info {
|
|
IIO_EV_INFO_ENABLE,
|
|
IIO_EV_INFO_VALUE,
|
|
IIO_EV_INFO_HYSTERESIS,
|
|
IIO_EV_INFO_PERIOD,
|
|
IIO_EV_INFO_HIGH_PASS_FILTER_3DB,
|
|
IIO_EV_INFO_LOW_PASS_FILTER_3DB,
|
|
};
|
|
|
|
#define IIO_VAL_INT 1
|
|
#define IIO_VAL_INT_PLUS_MICRO 2
|
|
#define IIO_VAL_INT_PLUS_NANO 3
|
|
#define IIO_VAL_INT_PLUS_MICRO_DB 4
|
|
#define IIO_VAL_INT_MULTIPLE 5
|
|
#define IIO_VAL_FRACTIONAL 10
|
|
#define IIO_VAL_FRACTIONAL_LOG2 11
|
|
|
|
#endif /* _IIO_TYPES_H_ */
|