1
2
3
4
5
6
7
8
9
10#ifndef _LINUX_COMEDILIB_H
11#define _LINUX_COMEDILIB_H
12
13struct comedi_device *comedi_open(const char *path);
14int comedi_close(struct comedi_device *dev);
15int comedi_dio_get_config(struct comedi_device *dev, unsigned int subdev,
16 unsigned int chan, unsigned int *io);
17int comedi_dio_config(struct comedi_device *dev, unsigned int subdev,
18 unsigned int chan, unsigned int io);
19int comedi_dio_bitfield2(struct comedi_device *dev, unsigned int subdev,
20 unsigned int mask, unsigned int *bits,
21 unsigned int base_channel);
22int comedi_find_subdevice_by_type(struct comedi_device *dev, int type,
23 unsigned int subd);
24int comedi_get_n_channels(struct comedi_device *dev, unsigned int subdevice);
25
26#endif
27