ankit patel | be932c6 | 2018-06-15 13:42:16 -0500 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
David Schleef | ed9eccb | 2008-11-04 20:29:31 -0800 | [diff] [blame] | 2 | /* |
Jitendra Kumar Khasdev | 2acc980 | 2015-11-24 17:52:28 +0530 | [diff] [blame] | 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> |
Jitendra Kumar Khasdev | 2acc980 | 2015-11-24 17:52:28 +0530 | [diff] [blame] | 8 | */ |
David Schleef | ed9eccb | 2008-11-04 20:29:31 -0800 | [diff] [blame] | 9 | |
| 10 | #ifndef _LINUX_COMEDILIB_H |
| 11 | #define _LINUX_COMEDILIB_H |
| 12 | |
Greg Kroah-Hartman | 472dfe7 | 2010-05-03 15:01:50 -0700 | [diff] [blame] | 13 | struct comedi_device *comedi_open(const char *path); |
| 14 | int comedi_close(struct comedi_device *dev); |
Ian Abbott | 16d2d3c | 2013-08-23 14:45:07 +0100 | [diff] [blame] | 15 | int comedi_dio_get_config(struct comedi_device *dev, unsigned int subdev, |
| 16 | unsigned int chan, unsigned int *io); |
Greg Kroah-Hartman | 472dfe7 | 2010-05-03 15:01:50 -0700 | [diff] [blame] | 17 | int comedi_dio_config(struct comedi_device *dev, unsigned int subdev, |
| 18 | unsigned int chan, unsigned int io); |
Ian Abbott | 0f3ce1a | 2013-08-23 14:45:08 +0100 | [diff] [blame] | 19 | int comedi_dio_bitfield2(struct comedi_device *dev, unsigned int subdev, |
| 20 | unsigned int mask, unsigned int *bits, |
| 21 | unsigned int base_channel); |
Greg Kroah-Hartman | 472dfe7 | 2010-05-03 15:01:50 -0700 | [diff] [blame] | 22 | int comedi_find_subdevice_by_type(struct comedi_device *dev, int type, |
| 23 | unsigned int subd); |
| 24 | int comedi_get_n_channels(struct comedi_device *dev, unsigned int subdevice); |
Greg Kroah-Hartman | 027d53bc | 2010-05-01 13:51:58 -0700 | [diff] [blame] | 25 | |
David Schleef | ed9eccb | 2008-11-04 20:29:31 -0800 | [diff] [blame] | 26 | #endif |