1
.\" This manpage has been automatically generated by docbook2man
2
.\" from a DocBook document. This tool can be found at:
3
.\" <http://shell.ipoline.com/~elmert/comp/docbook2X/>
4
.\" Please send any bug reports, improvements, comments, patches,
5
.\" etc. to Steve Cheng <steve@ggi-project.org>.
6
.TH "COMEDI_SET_GLOBAL_OOR_BEHAVIOR" "3" "02 October 2004" "" ""
9
comedi_set_global_oor_behavior \- out-of-range behavior
12
\fB#include <comedilib.h>
14
int comedi_set_global_oor_behavior (enum comedi_oor_behavior \fIbehavior\fB);
21
This function changes the Comedilib out-of-range behavior.
22
This currently affects the behavior of comedi_to_phys() when
23
converting endpoint sample values, that is, sample values
24
equal to 0 or maxdata. If the out-of-range behavior is set to
25
COMEDI_OOR_NAN, endpoint values are converted to NAN. If the
26
out-of-range behavior is set to COMEDI_OOR_NUMBER, the endpoint
27
values are converted similarly to other values.
29
The previous out-of-range behavior is returned.