comedilib.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. You should have received a copy of the GNU General Public License
  15. along with this program; if not, write to the Free Software
  16. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  17. */
  18. #ifndef _LINUX_COMEDILIB_H
  19. #define _LINUX_COMEDILIB_H
  20. struct comedi_device *comedi_open(const char *path);
  21. int comedi_close(struct comedi_device *dev);
  22. int comedi_dio_config(struct comedi_device *dev, unsigned int subdev,
  23. unsigned int chan, unsigned int io);
  24. int comedi_dio_bitfield(struct comedi_device *dev, unsigned int subdev,
  25. unsigned int mask, unsigned int *bits);
  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