From: Frank Mori Hess Date: Mon, 2 Jul 2001 16:42:25 +0000 (+0000) Subject: Added a little bit more to command section. X-Git-Tag: r0_7_16~46 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=abd10aa21424b19b3e7421d5c8b797b9d5b24bd0;p=comedilib.git Added a little bit more to command section. --- diff --git a/doc/comedilib.sgml b/doc/comedilib.sgml index 315f030..0d31e35 100644 --- a/doc/comedilib.sgml +++ b/doc/comedilib.sgml @@ -570,7 +570,7 @@ the start and end of each scan, and each conversion is called an event. Each of these 5 types of events are caused by a triggering -source, specified through the *_src members of the +source, specified through the structure. The source types are: @@ -585,42 +585,42 @@ source, specified through the *_src members of the TRIG_OTHER: driver-specific meaning +Not all triggers are applicable to all events. Supported triggers +for specific events depend significantly on your particular +device. The +function is useful for determining what triggers a subdevice supports. + For every trigger, there is a corresponding -argument (the *_arg members of the +argument (the structure) whose meaning depends on the type of trigger. The meanings of the arguments are as follows: - -Not all triggers are applicable to all events. Supported triggers -for specific events depends significantly on your particular -device. - -TRIG_NONE is typically used only as a stop_src. The arg for TRIG_NONE +TRIG_NONE is typically used only as a +structure is the index of the subdevice the command is intended for. The + +function can be useful in discovering the index of your desired subdevice. -The chanlist member of the -structure should point to an array whose number of elements is specificed by chanlist_len +The +structure should point to an array whose number of elements is specificed by macro. -The final member of the structure is 'flags'. +The structure is @@ -666,11 +675,12 @@ reduce latency in handling interrupts from your data aquisition hardware. It ca be useful if you are sampling at high frequency, or if your hardware has a small onboard fifo. You must have a real-time kernel (RTAI or RTLinux) and must compile comedi with real-time support or this flag will do nothing. -TRIG_CONFIG: perform configuration, not triggering. +TRIG_CONFIG: perform configuration, not triggering. This is a legacy of the +deprecated comedi_trig_struct, and has no function at present. TRIG_WAKE_EOS: some drivers will change their behaviour when this flag is set, trying to transfer data at the end of every scan (instead of, for example, passing data in chunks whenever the board's onboard fifo is half full). This flag -may degrade a driver's performance at higher frequencies. +may degrade a driver's performance at high frequencies. TRIG_WRITE: write to bidirectional devices. Could be useful in principle, if someone wrote a driver that supported commands for a digital i/o device that could do either input or output. @@ -1143,6 +1153,7 @@ Source: /lib/error.c

comedi_find_subdevice_by_type() +

int comedi_find_subdevice_by_type(comedi_t *it,int type,unsigned int