comedi_set_global_oor_behavior3
Out-of-range behavior
Usage
#include <comedilib.h>
enum comedi_oor_behavior comedi_set_global_oor_behavior(enum comedi_oor_behavior behavior);
Overview
This function changes the Comedilib out-of-range behavior. This currently affects the behavior of comedi_to_phys when converting endpoint sample values, that is, sample values equal to 0 or maxdata. If the out-of-range behavior is set to COMEDI_OOR_NAN, endpoint values are converted to NAN. If the out-of-range behavior is set to COMEDI_OOR_NUMBER, the endpoint values are converted similarly to other values.
Return value
The previous out-of-range behavior is returned.
Releases
12 releases since Debian 3.0 (Woody); the text changed 9 times.