types.h 808 B

1234567891011121314151617181920212223242526272829303132
  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. #ifndef _IIO_TYPES_H_
  10. #define _IIO_TYPES_H_
  11. #include <uapi/linux/iio/types.h>
  12. enum iio_event_info {
  13. IIO_EV_INFO_ENABLE,
  14. IIO_EV_INFO_VALUE,
  15. IIO_EV_INFO_HYSTERESIS,
  16. IIO_EV_INFO_PERIOD,
  17. IIO_EV_INFO_HIGH_PASS_FILTER_3DB,
  18. IIO_EV_INFO_LOW_PASS_FILTER_3DB,
  19. };
  20. #define IIO_VAL_INT 1
  21. #define IIO_VAL_INT_PLUS_MICRO 2
  22. #define IIO_VAL_INT_PLUS_NANO 3
  23. #define IIO_VAL_INT_PLUS_MICRO_DB 4
  24. #define IIO_VAL_INT_MULTIPLE 5
  25. #define IIO_VAL_FRACTIONAL 10
  26. #define IIO_VAL_FRACTIONAL_LOG2 11
  27. #endif /* _IIO_TYPES_H_ */