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

NAME

6       comedi_do_insn - perform instruction
7

SYNOPSIS

9       #include <comedilib.h>
10
11       int comedi_do_insn(comedi_t * device, comedi_insn * instruction);
12

DESCRIPTION

14       The function comedi_do_insn performs a single instruction.
15

RETURN VALUE

17       If successful, returns a non-negative number. For the case of INSN_READ
18       or INSN_WRITE instructions, comedi_do_insn returns the number of
19       samples read or written, which may be less than the number requested.
20       If there is an error, -1 is returned.
21

AUTHORS

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