RTXI 1.3
comedilib/lib/range.c File Reference
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/ioctl.h>
#include <errno.h>
#include <string.h>
#include "libinternal.h"

Go to the source code of this file.

Defines

#define __USE_GNU
#define NAN

Functions

 EXPORT_ALIAS_DEFAULT (_comedi_set_global_oor_behavior, comedi_set_global_oor_behavior, 0.7.18)
enum comedi_oor_behavior _comedi_set_global_oor_behavior (enum comedi_oor_behavior behavior)
 EXPORT_ALIAS_DEFAULT (_comedi_to_phys, comedi_to_phys, 0.7.18)
double _comedi_to_phys (lsampl_t data, comedi_range *rng, lsampl_t maxdata)
 EXPORT_ALIAS_DEFAULT (_comedi_from_phys, comedi_from_phys, 0.7.18)
lsampl_t _comedi_from_phys (double data, comedi_range *rng, lsampl_t maxdata)
 EXPORT_ALIAS_DEFAULT (_comedi_find_range, comedi_find_range, 0.7.18)
int _comedi_find_range (comedi_t *it, unsigned int subd, unsigned int chan, unsigned int unit, double min, double max)
 EXPORT_ALIAS_DEFAULT (_comedi_get_n_ranges, comedi_get_n_ranges, 0.7.18)
int _comedi_get_n_ranges (comedi_t *it, unsigned int subd, unsigned int chan)
 EXPORT_ALIAS_DEFAULT (_comedi_range_is_chan_specific, comedi_range_is_chan_specific, 0.7.18)
int _comedi_range_is_chan_specific (comedi_t *it, unsigned int subd)
 EXPORT_ALIAS_DEFAULT (_comedi_sampl_to_phys, comedi_sampl_to_phys, 0.7.18)
int _comedi_sampl_to_phys (double *dest, int dst_stride, sampl_t *src, int src_stride, comedi_range *rng, lsampl_t maxdata, int n)
 EXPORT_ALIAS_DEFAULT (_comedi_sampl_from_phys, comedi_sampl_from_phys, 0.7.18)
int _comedi_sampl_from_phys (sampl_t *dest, int dst_stride, double *src, int src_stride, comedi_range *rng, lsampl_t maxdata, int n)

Define Documentation

#define __USE_GNU

Definition at line 26 of file range.c.

#define NAN
Value:
(__extension__ ((union { unsigned char __c[8];                        \
                           double __d; })                                     \
                  { { 0, 0, 0, 0, 0, 0, 0xf8, 0x7f } }).__d)

Definition at line 44 of file range.c.


Function Documentation

int _comedi_find_range ( comedi_t it,
unsigned int  subd,
unsigned int  chan,
unsigned int  unit,
double  min,
double  max 
)

Definition at line 100 of file range.c.

lsampl_t _comedi_from_phys ( double  data,
comedi_range rng,
lsampl_t  maxdata 
)

Definition at line 85 of file range.c.

int _comedi_get_n_ranges ( comedi_t it,
unsigned int  subd,
unsigned int  chan 
)

Definition at line 126 of file range.c.

int _comedi_range_is_chan_specific ( comedi_t it,
unsigned int  subd 
)

Definition at line 137 of file range.c.

int _comedi_sampl_from_phys ( sampl_t dest,
int  dst_stride,
double *  src,
int  src_stride,
comedi_range rng,
lsampl_t  maxdata,
int  n 
)

Definition at line 181 of file range.c.

int _comedi_sampl_to_phys ( double *  dest,
int  dst_stride,
sampl_t src,
int  src_stride,
comedi_range rng,
lsampl_t  maxdata,
int  n 
)

Definition at line 144 of file range.c.

enum comedi_oor_behavior _comedi_set_global_oor_behavior ( enum comedi_oor_behavior  behavior)

Definition at line 54 of file range.c.

double _comedi_to_phys ( lsampl_t  data,
comedi_range rng,
lsampl_t  maxdata 
)

Definition at line 66 of file range.c.

EXPORT_ALIAS_DEFAULT ( _comedi_get_n_ranges  ,
comedi_get_n_ranges  ,
0.7.  18 
)
EXPORT_ALIAS_DEFAULT ( _comedi_sampl_from_phys  ,
comedi_sampl_from_phys  ,
0.7.  18 
)
EXPORT_ALIAS_DEFAULT ( _comedi_find_range  ,
comedi_find_range  ,
0.7.  18 
)
EXPORT_ALIAS_DEFAULT ( _comedi_to_phys  ,
comedi_to_phys  ,
0.7.  18 
)
EXPORT_ALIAS_DEFAULT ( _comedi_set_global_oor_behavior  ,
comedi_set_global_oor_behavior  ,
0.7.  18 
)
EXPORT_ALIAS_DEFAULT ( _comedi_sampl_to_phys  ,
comedi_sampl_to_phys  ,
0.7.  18 
)
EXPORT_ALIAS_DEFAULT ( _comedi_range_is_chan_specific  ,
comedi_range_is_chan_specific  ,
0.7.  18 
)
EXPORT_ALIAS_DEFAULT ( _comedi_from_phys  ,
comedi_from_phys  ,
0.7.  18 
)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines