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

NAME

6       comedi_internal_trigger - generate soft trigger
7

SYNOPSIS

9       #include <comedilib.h>
10
11       int comedi_internal_trigger(comedi_t * device, unsigned int subdevice,
12                                   unsigned int trig_num);
13

DESCRIPTION

15       This function sends an INSN_INTTRIG instruction to a subdevice, which
16       causes an internal triggering event. This event can, for example,
17       trigger a subdevice to start an asynchronous command.
18
19       The trig_num parameter is reserved for future use, and should be set to
20       0. It is likely it will be used in the future to support multiple
21       independent internal triggers. For example, an asynchronous command
22       might be specified for a subdevice with a start_src of TRIG_INT, and a
23       start_arg of 5. Then the start event would only be triggered if
24       comedi_internal_trigger were called on the subdevice with a trig_num
25       equal to the same value of 5.
26

RETURN VALUE

28       0 on success, -1 on error.
29

AUTHORS

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