COMEDI_SET_OTHER_SOU(3)
β¨ COMEDI_SET_OTHER_SOU(3) β¨
okay bestie, welcome to the Comedi reference manual page for comedi_set_other_source π this is section 3 of the manual, and no cap, she's a cute one.
πΈ NAME πΈ
comedi_set_other_source β pick the source signal for something that is not a gate and not a clock π
π¦ SYNOPSIS π¦
#include <comedilib.h>
int comedi_set_other_source(comedi_t * device, unsigned int subdevice,
unsigned int channel, unsigned int other,
unsigned int source);
β STATUS β
alpha π«£ (she's still cooking, be nice to her)
π DESCRIPTION π
So here's the tea: this function lets you choose a source signal for something on a subdevice that isn't a gate β gates have their own whole function, comedi_set_gate_source β and isn't a clock either, because clocks get comedi_set_clock_source. Everything else? That's this girl's job. π
The other parameter is the one that says which "other" we're configuring, and fr fr it's driver-dependent β your driver decides what numbers mean what. The source parameter is the one that says which source we actually want to use for that "other".
And here's a lil detail you should not skip: if the subdevice doesn't support configuring its "other" sources per-channel, then the channel parameter just gets ignored. π she simply isn't listening.
Concrete example time, because iykyk: this function is the one you use to select which PFI digital input channels get used as the A/B/Z signals when you're running a counter on an NI M-Series board as a quadrature encoder. In that case other picks whether you mean the A, the B, or the Z signal, and source specifies which PFI digital input channel the external A, B, or Z signal is physically wired up to. π―
Heads up bestie: this function is only useable on subdevices that provide support for the INSN_CONFIG_SET_OTHER_SRC configuration instruction. No support, no service. periodt.
π RETURN VALUE π
0β slay, it worked (success β¨)-1β π error
π AUTHORS π
- David Schleef <ds@schleef.org> β Author.
- Frank Mori Hess <fmhess@users.sourceforge.net> β Author.
- Herman Bruyninckx <Herman.Bruyninckx@mech.kuleuven.ac.be> β Author.
- Bernd Porr <tech@linux-usb-daq.co.uk> β Author.
- Ian Abbott <abbotti@mev.co.uk> β Author.
- Γric Piel <piel@delmic.com> β Author.
absolute legends, every single one π«Ά
π 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
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. (yes bestie, that's the legal all-caps moment, it's giving serious π)
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.
okay that's the whole page, mwah π this was the Comedi manual, dated 03/20/2026 β go configure some sources, main character π¦β¨
π¦ where this page comes from
- ubuntu resolute: libcomedi-dev 0.11.0+5-1.3build6 Β· LGPL-2.1-only
- ubuntu stonking: libcomedi-dev 0.11.0+5-1.3build6 Β· LGPL-2.1-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms