comedilib.h 932 B

123456789101112131415161718192021222324252627
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * comedilib.h
  4. * Header file for kcomedilib
  5. *
  6. * COMEDI - Linux Control and Measurement Device Interface
  7. * Copyright (C) 1998-2001 David A. Schleef <ds@schleef.org>
  8. */
  9. #ifndef _LINUX_COMEDILIB_H
  10. #define _LINUX_COMEDILIB_H
  11. struct comedi_device *comedi_open(const char *path);
  12. int comedi_close(struct comedi_device *dev);
  13. int comedi_dio_get_config(struct comedi_device *dev, unsigned int subdev,
  14. unsigned int chan, unsigned int *io);
  15. int comedi_dio_config(struct comedi_device *dev, unsigned int subdev,
  16. unsigned int chan, unsigned int io);
  17. int comedi_dio_bitfield2(struct comedi_device *dev, unsigned int subdev,
  18. unsigned int mask, unsigned int *bits,
  19. unsigned int base_channel);
  20. int comedi_find_subdevice_by_type(struct comedi_device *dev, int type,
  21. unsigned int subd);
  22. int comedi_get_n_channels(struct comedi_device *dev, unsigned int subdevice);
  23. #endif