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

NAME

6       comedi_get_gate_source - get gate for a subdevice
7

SYNOPSIS

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

STATUS

17       alpha
18

DESCRIPTION

20       This function queries the gate for a subdevice, as set by
21       comedi_set_gate_source. The currently configured gate source will be
22       written to *gate_source. The possible values and their corresponding
23       gates are driver-dependant. If the subdevice does not support
24       configuring its gates on a per-channel basis, then the channel
25       parameter will be ignored.
26
27       This function is only useable on subdevices that provide support for
28       the INSN_CONFIG_GET_GATE_SRC configuration instruction.
29

RETURN VALUE

31       0 on success, -1 on error.
32

AUTHORS

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