COMEDI_SET_GLOBAL_OO(3)

✨ COMEDI_SET_GLOBAL_OO πŸ’–

okay bestie, welcome to the comedi_set_global_oo manual page, straight outta the Comedi reference πŸŽ€ this is the one about out-of-range behavior, and yes it's exactly as dramatic as it sounds. sit down, grab a strawberry πŸ“, and let's get into it.

πŸ’… NAME

comedi_set_global_oor_behavior β€” out-of-range behavior ✨


🌸 SYNOPSIS

#include <comedilib.h>

enum comedi_oor_behavior
                                                               comedi_set_global_oor_behavior(enum comedi_oor_behavior behavior);

(yes the wrapping is like that, no I did not do it, that's just how it is πŸ’€)


πŸ¦‹ DESCRIPTION

so basically this function changes the Comedilib out-of-range behavior. it's giving ~global vibes~ because it's like, the setting for the whole library, not just one thing. 🌈

rn it affects how comedi_to_phys behaves when it's converting endpoint sample values, which is a fancy way of saying sample values equal to 0 or maxdata. that's the edge, bestie. the boundary. the main character moments. πŸ‘‘

and here's the tea on what those two behaviors do:

  • if the out-of-range behavior is set to COMEDI_OOR_NAN, endpoint values get converted to NAN 😭 (yes, Not A Number, it's giving mystery)
  • if the out-of-range behavior is set to COMEDI_OOR_NUMBER, the endpoint values get converted similarly to other values β€” chill, normal, no drama, everyone's treated the same 🫢

periodt. that's the whole vibe.


⭐ RETURN VALUE

the previous out-of-range behavior is returned ✨ so you get the old setting handed back to you like a lil souvenir of what came before. iconic.


πŸ‘‘ 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.

the whole squad fr fr, all six of them, we love to see it πŸ’œ


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

okay so this document is part of Comedilib πŸ“š and in the context of this document, the term "source code" as defined by the license is interpreted as the XML source. noted, bestie, not gonna forget that one.

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. slay πŸ’…

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. (this is the serious part, no cap β€” no warranty, so don't come for them 😭)

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 πŸ“¬


and that's the page, bestie 🫢 this was Comedi, dated 03/20/2026, entry COMEDI_SET_GLOBAL_OO(3) β€” go forth and set your global out-of-range behavior, you absolute icon πŸŒŸπŸ’–

πŸ“¦ where this page comes from