logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

comedi_get_version_code - Comedi version code

Authors

DavidSchleef <ds@schleef.org>
           Author.

       FrankMoriHess <fmhess@users.sourceforge.net>
           Author.

       HermanBruyninckx <Herman.Bruyninckx@mech.kuleuven.ac.be>
           Author.

       BerndPorr <tech@linux-usb-daq.co.uk>
           Author.

       IanAbbott <abbotti@mev.co.uk>
           Author.

       ÉricPiel <piel@delmic.com>
           Author.

Description

       Returns the Comedi kernel module version code. A valid Comedi device referenced by the parameter device
       is necessary to communicate with the kernel module. On error, -1 is returned.

       The version code is encoded as a bitfield of three 8-bit numbers. For example, 0x00073d is the version
       code for version 0.7.61.

       This function is of limited usefulness. A typical mis-application of this function is to use it to
       determine if a certain feature is supported. If the application needs to know of the existence of a
       particular feature, an existence test function should be written and put in the Comedilib source.

Name

       comedi_get_version_code - Comedi version code

Synopsis

#include<comedilib.h>intcomedi_get_version_code(comedi_t*device);

See Also