Specifications
Comedi
35 / 148
/
*
range policy
*
/
int range;
int aref;
/
*
number of measurements to average (for ai)
*
/
int n;
lsampl_t maxdata;
};
The comedi_sv_t structure is used by the comedi_sv_...() functions to provide a simple method of accurately measuring
slowly varying inputs. This relies on the COMEDI_TRIG ioctl and is no longer by the Comedi kernel layer.
5.3.7 comedi_cmd
typedef struct comedi_cmd_struct comedi_cmd;
struct comedi_cmd_struct{
unsigned int subdev;
unsigned int flags;
unsigned int start_src;
unsigned int start_arg;
unsigned int scan_begin_src;
unsigned int scan_begin_arg;
unsigned int convert_src;
unsigned int convert_arg;
unsigned int scan_end_src;
unsigned int scan_end_arg;
unsigned int stop_src;
unsigned int stop_arg;
unsigned int
*
chanlist;
unsigned int chanlist_len;
sampl_t
*
data;
unsigned int data_len;
};
More information on using commands can be found in the command section.
5.3.8 comedi_insn
typedef struct comedi_insn_struct comedi_insn;
struct comedi_insn_struct{
unsigned int insn;
unsigned int n;
lsampl_t
*
data;
unsigned int subdev;
unsigned int chanspec;
unsigned int unused[3];
};