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

NAME

6       comedi_set_gate_source - select gate source for a subdevice
7

SYNOPSIS

9       #include <comedilib.h>
10
11       int comedi_set_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 selects a gate source for a subdevice. The gate_index
21       parameter selects which gate is being configured, should the subdevice
22       have multiple gates. It takes a value from 0 to N-1 for a subdevice
23       with N different gates. The gate_source parameter selects which signal
24       you wish to use as the gate, and is also driver-dependent. If the
25       subdevice does not support configuring its gates on a per-channel
26       basis, then the channel parameter will be ignored.
27
28       You may query the gate source with the comedi_get_gate_source function.
29       This function is only useable on subdevices that provide support for
30       the INSN_CONFIG_SET_GATE_SRC configuration instruction.
31

RETURN VALUE

33       0 on success, -1 on error.
34

AUTHORS

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