1COMEDI_DIO_GET_CONFI(3)        Comedi reference        COMEDI_DIO_GET_CONFI(3)
2
3
4

NAME

6       comedi_dio_get_config - query input/output properties of channel
7

SYNOPSIS

9       #include <comedilib.h>
10
11       int comedi_dio_get_config(comedi_t * device, unsigned int subdevice,
12                                 unsigned int channel,
13                                 unsigned int * direction);
14

DESCRIPTION

16       The function comedi_dio_get_config queries the input/output
17       configuration of an individual channel in a digital I/O subdevice (see
18       comedi_dio_config). On success, *direction will be set to either
19       COMEDI_INPUT or COMEDI_OUTPUT.
20

RETURN VALUE

22       If successful, 0 is returned, otherwise -1.
23

AUTHORS

25       David Schleef <ds@schleef.org>
26           Author.
27
28       Frank Mori Hess <fmhess@users.sourceforge.net>
29           Author.
30
31       Herman Bruyninckx <Herman.Bruyninckx@mech.kuleuven.ac.be>
32           Author.
33
34       Bernd Porr <tech@linux-usb-daq.co.uk>
35           Author.
36
37       Ian Abbott <abbotti@mev.co.uk>
38           Author.
39
40       Éric Piel <piel@delmic.com>
41           Author.
42
44       Copyright © 1998-2003 David Schleef
45       Copyright © 2001-2003, 2005, 2008 Frank Mori Hess
46       Copyright © 2002-2003 Herman Bruyninckx
47       Copyright © 2012 Bernd Porr
48       Copyright © 2012 Ian Abbott
49       Copyright © 2012, 2015 Éric Piel
50
51       This document is part of Comedilib. In the context of this document,
52       the term "source code" as defined by the license is interpreted as the
53       XML source.
54
55       This library is free software; you can redistribute it and/or modify it
56       under the terms of the GNU Lesser General Public License as published
57       by the Free Software Foundation, version 2.1 of the License.
58
59       This library is distributed in the hope that it will be useful, but
60       WITHOUT ANY WARRANTY; without even the implied warranty of
61       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser
62       General Public License for more details.
63
64       You should have received a copy of the GNU Lesser General Public
65       License along with this library; if not, write to the Free Software
66       Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
67       USA.
68
69
70
71
72Comedi                            05/11/2017           COMEDI_DIO_GET_CONFI(3)
Impressum