comedi_get_routes(3)
| COMEDI_GET_ROUTES(3) | Comedi reference | COMEDI_GET_ROUTES(3) |
NAME
comedi_get_routes - obtain list of all possible device-globally named routes
SYNOPSIS
#include <comedilib.h>
int comedi_get_routes(comedi_t * device, comedi_route_pair * routelist, size_t n);
STATUS
alpha
DESCRIPTION
This function obtains a list of all possible globally-named routes for the particular device.
A globally-named route is a route where the source and destination values are globally recognized, regardless of the subdevice. This function returns all possible signal routes that are either connectible via comedi_cmd->start_arg aruments or via the device-global configuration interface of comedi_connect_route and comedi_disconnect_route.
The routelist parameter provides memory into which the results may be copied. The comedi_route_pair is (as specified in comedi.h):
typedef struct {
unsigned int source;
unsigned int destination;
} comedi_route_pair;
routelist may be specified as NULL, in which case only the number of routes will be returned.
The n parameter provides specifies the number of slots available in the routelist array.
RETURN VALUE
The number of routes available if routelist is NULL, the number of routes copied if routelist is not NULL, or -1 on error.
AUTHORS
David Schleef <ds@schleef.org>
Frank Mori Hess <fmhess@users.sourceforge.net>
Herman Bruyninckx <Herman.Bruyninckx@mech.kuleuven.ac.be>
Bernd Porr <tech@linux-usb-daq.co.uk>
Ian Abbott <abbotti@mev.co.uk>
Éric Piel <piel@delmic.com>
Spencer Olson <olsonse@umich.edu>
COPYRIGHT
Copyright © 1998-2003 David Schleef
Copyright © 2001-2003, 2005, 2008 Frank Mori Hess
Copyright © 2002-2003 Herman Bruyninckx
Copyright © 2012 Bernd Porr
Copyright © 2012 Ian Abbott
Copyright © 2012, 2015 Éric Piel
Copyright © 2016-2018 Spencer Olson
This document is part of Comedilib. In the context of this document, the term "source code" as defined by the license is interpreted as the XML source.
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, version 2.1 of the License.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
| 09/03/2021 | Comedi |
