1 /* SPDX-License-Identifier: GPL-2.0+ */ 1 /* SPDX-License-Identifier: GPL-2.0+ */ 2 /* 2 /* 3 * comedilib.h 3 * comedilib.h 4 * Header file for kcomedilib 4 * Header file for kcomedilib 5 * 5 * 6 * COMEDI - Linux Control and Measurement Devi 6 * COMEDI - Linux Control and Measurement Device Interface 7 * Copyright (C) 1998-2001 David A. Schleef <d 7 * Copyright (C) 1998-2001 David A. Schleef <ds@schleef.org> 8 */ 8 */ 9 9 10 #ifndef _LINUX_COMEDILIB_H 10 #ifndef _LINUX_COMEDILIB_H 11 #define _LINUX_COMEDILIB_H 11 #define _LINUX_COMEDILIB_H 12 12 13 struct comedi_device *comedi_open(const char * 13 struct comedi_device *comedi_open(const char *path); 14 int comedi_close(struct comedi_device *dev); 14 int comedi_close(struct comedi_device *dev); 15 int comedi_dio_get_config(struct comedi_device 15 int comedi_dio_get_config(struct comedi_device *dev, unsigned int subdev, 16 unsigned int chan, u 16 unsigned int chan, unsigned int *io); 17 int comedi_dio_config(struct comedi_device *de 17 int comedi_dio_config(struct comedi_device *dev, unsigned int subdev, 18 unsigned int chan, unsig 18 unsigned int chan, unsigned int io); 19 int comedi_dio_bitfield2(struct comedi_device 19 int comedi_dio_bitfield2(struct comedi_device *dev, unsigned int subdev, 20 unsigned int mask, un 20 unsigned int mask, unsigned int *bits, 21 unsigned int base_cha 21 unsigned int base_channel); 22 int comedi_find_subdevice_by_type(struct comed 22 int comedi_find_subdevice_by_type(struct comedi_device *dev, int type, 23 unsigned int 23 unsigned int subd); 24 int comedi_get_n_channels(struct comedi_device 24 int comedi_get_n_channels(struct comedi_device *dev, unsigned int subdevice); 25 25 26 #endif 26 #endif 27 27
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.