Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0+ */
0002 /*
0003  * comedilib.h
0004  * Header file for kcomedilib
0005  *
0006  * COMEDI - Linux Control and Measurement Device Interface
0007  * Copyright (C) 1998-2001 David A. Schleef <ds@schleef.org>
0008  */
0009 
0010 #ifndef _LINUX_COMEDILIB_H
0011 #define _LINUX_COMEDILIB_H
0012 
0013 struct comedi_device *comedi_open(const char *path);
0014 int comedi_close(struct comedi_device *dev);
0015 int comedi_dio_get_config(struct comedi_device *dev, unsigned int subdev,
0016               unsigned int chan, unsigned int *io);
0017 int comedi_dio_config(struct comedi_device *dev, unsigned int subdev,
0018               unsigned int chan, unsigned int io);
0019 int comedi_dio_bitfield2(struct comedi_device *dev, unsigned int subdev,
0020              unsigned int mask, unsigned int *bits,
0021              unsigned int base_channel);
0022 int comedi_find_subdevice_by_type(struct comedi_device *dev, int type,
0023                   unsigned int subd);
0024 int comedi_get_n_channels(struct comedi_device *dev, unsigned int subdevice);
0025 
0026 #endif