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

NAME

6       comedi_set_other_source - select source signal for something other than
7       a gate or clock
8

SYNOPSIS

10       #include <comedilib.h>
11
12       int comedi_set_other_source(comedi_t * device, unsigned int subdevice,
13                                   unsigned int channel, unsigned int other,
14                                   unsigned int source);
15

STATUS

17       alpha
18

DESCRIPTION

20       This function allows selection of a source signal for something on a
21       subdevice other than a gate (which uses comedi_set_gate_source) or a
22       clock (which uses comedi_set_clock_source). The other parameter selects
23       which “other” we are configuring, and is driver-dependent. The source
24       parameter selects the source we which to use for the “other”. If the
25       subdevice does not support configuring its “other” sources on a
26       per-channel basis, then the channel parameter will be ignored.
27
28       As an example, this function is used to select which PFI digital input
29       channels should be used as the A/B/Z signals when running a counter on
30       an NI M-Series board as a quadrature encoder. The other parameter
31       selects either the A, B, or Z signal, and the source parameter is used
32       to specify which PFI digital input channel the external A, B, or Z
33       signal is physically connected to.
34
35       This function is only useable on subdevices that provide support for
36       the INSN_CONFIG_SET_OTHER_SRC configuration instruction.
37

RETURN VALUE

39       0 on success, -1 on error.
40

AUTHORS

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