comedilib.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. linux/include/comedilib.h
  3. header file for kcomedilib
  4. COMEDI - Linux Control and Measurement Device Interface
  5. Copyright (C) 1998-2001 David A. Schleef <ds@schleef.org>
  6. This program is free software; you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License as published by
  8. the Free Software Foundation; either version 2 of the License, or
  9. (at your option) any later version.
  10. This program is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. GNU General Public License for more details.
  14. */
  15. #ifndef _LINUX_COMEDILIB_H
  16. #define _LINUX_COMEDILIB_H
  17. struct comedi_device *comedi_open(const char *path);
  18. int comedi_close(struct comedi_device *dev);
  19. int comedi_dio_get_config(struct comedi_device *dev, unsigned int subdev,
  20. unsigned int chan, unsigned int *io);
  21. int comedi_dio_config(struct comedi_device *dev, unsigned int subdev,
  22. unsigned int chan, unsigned int io);
  23. int comedi_dio_bitfield2(struct comedi_device *dev, unsigned int subdev,
  24. unsigned int mask, unsigned int *bits,
  25. unsigned int base_channel);
  26. int comedi_find_subdevice_by_type(struct comedi_device *dev, int type,
  27. unsigned int subd);
  28. int comedi_get_n_channels(struct comedi_device *dev, unsigned int subdevice);
  29. #endif