File: comedi_get_version_code.3

package info (click to toggle)
comedilib 0.7.22-2.2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 5,376 kB
  • ctags: 2,466
  • sloc: ansic: 16,316; sh: 8,492; ruby: 1,360; makefile: 326; yacc: 262; perl: 257; lex: 79; python: 59
file content (31 lines) | stat: -rw-r--r-- 1,162 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
.\" This manpage has been automatically generated by docbook2man 
.\" from a DocBook document.  This tool can be found at:
.\" <http://shell.ipoline.com/~elmert/comp/docbook2X/> 
.\" Please send any bug reports, improvements, comments, patches, 
.\" etc. to Steve Cheng <steve@ggi-project.org>.
.TH "COMEDI_GET_VERSION_CODE" "3" "02 October 2004" "" ""

.SH NAME
comedi_get_version_code \- Comedi version code
.SH SYNOPSIS
.sp
\fB#include <comedilib.h>
.sp
int comedi_get_version_code (comedi_t * \fIdevice\fB);
\fR
.SH "DESCRIPTION"
.PP
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.
.PP
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.
.PP
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.
.PP