mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 19:29:37 +00:00
![Thomas Gleixner](/assets/img/avatar_default.png)
Based on 2 normalized pattern(s): 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 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 # extracted by the scancode license scanner the SPDX license identifier GPL-2.0-only has been chosen to replace the boilerplate/reference in 4122 file(s). Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Enrico Weigelt <info@metux.net> Reviewed-by: Kate Stewart <kstewart@linuxfoundation.org> Reviewed-by: Allison Randal <allison@lohutok.net> Cc: linux-spdx@vger.kernel.org Link: https://lkml.kernel.org/r/20190604081206.933168790@linutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
62 lines
1.4 KiB
C
62 lines
1.4 KiB
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/* industrial I/O data types needed both in and out of kernel
|
|
*
|
|
* Copyright (c) 2008 Jonathan Cameron
|
|
*/
|
|
|
|
#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
|
|
|
|
enum iio_available_type {
|
|
IIO_AVAIL_LIST,
|
|
IIO_AVAIL_RANGE,
|
|
};
|
|
|
|
enum iio_chan_info_enum {
|
|
IIO_CHAN_INFO_RAW = 0,
|
|
IIO_CHAN_INFO_PROCESSED,
|
|
IIO_CHAN_INFO_SCALE,
|
|
IIO_CHAN_INFO_OFFSET,
|
|
IIO_CHAN_INFO_CALIBSCALE,
|
|
IIO_CHAN_INFO_CALIBBIAS,
|
|
IIO_CHAN_INFO_PEAK,
|
|
IIO_CHAN_INFO_PEAK_SCALE,
|
|
IIO_CHAN_INFO_QUADRATURE_CORRECTION_RAW,
|
|
IIO_CHAN_INFO_AVERAGE_RAW,
|
|
IIO_CHAN_INFO_LOW_PASS_FILTER_3DB_FREQUENCY,
|
|
IIO_CHAN_INFO_HIGH_PASS_FILTER_3DB_FREQUENCY,
|
|
IIO_CHAN_INFO_SAMP_FREQ,
|
|
IIO_CHAN_INFO_FREQUENCY,
|
|
IIO_CHAN_INFO_PHASE,
|
|
IIO_CHAN_INFO_HARDWAREGAIN,
|
|
IIO_CHAN_INFO_HYSTERESIS,
|
|
IIO_CHAN_INFO_INT_TIME,
|
|
IIO_CHAN_INFO_ENABLE,
|
|
IIO_CHAN_INFO_CALIBHEIGHT,
|
|
IIO_CHAN_INFO_CALIBWEIGHT,
|
|
IIO_CHAN_INFO_DEBOUNCE_COUNT,
|
|
IIO_CHAN_INFO_DEBOUNCE_TIME,
|
|
IIO_CHAN_INFO_CALIBEMISSIVITY,
|
|
IIO_CHAN_INFO_OVERSAMPLING_RATIO,
|
|
};
|
|
|
|
#endif /* _IIO_TYPES_H_ */
|