Download user manual
Transcript
Linux driver development
User’s Manual
Edwin
Version:
<2.4>
Date: 8/3/2004
4.4.3.1 Command mode structure
subdevice
flag
src type:
start_src
start acquisition
start_arg
TRIG_NONE
TRIG_NOW
scan_begin_src
start each scan
scan_begin_arg
TRIG_FOLLOW
TRIG_TIME
convert_src
start each convert
convert_arg
TRIG_TIMER
TRIG_COUNT
scan_end_src
the end of each scan
scan_end_arg
TRIG_EXT
TRIG_INT
stop_src
stop the acquisition
stop_arg
chanlist
data
struct comedi_cmd_struct{
unsigned int subdev;
/* the subdevice that the command is sent to */
unsigned int flags;
/* flags */
/* Wake up at the end of every scan */
//cmd->flags |= TRIG_WAKE_EOS;
/* Use a real-time interrupt, if available */
//cmd->flags |= TRIG_RT;
/* each event requires a trigger, which is specified
by a source and an argument. For example, to specify
Confidential
Advantech Automation Corporation, 2001
Page 25 of 41