? doc/Makefile
? doc/Makefile.in
? doc/drivers.sgml
? doc/funcref.sgml
Index: demo/info.c
===================================================================
RCS file: /cvs/comedi/comedilib/demo/info.c,v
retrieving revision 1.9
diff -u -r1.9 info.c
--- demo/info.c	29 Feb 2004 16:49:29 -0000	1.9
+++ demo/info.c	12 Jul 2006 17:35:36 -0000
@@ -47,13 +47,14 @@
 	int n_subdevices,type;
 	int chan,n_chans;
 	int n_ranges;
+	int subdev_flags;
 	comedi_range *rng;
 	
 	parse_options(argc,argv);
 
 	it=comedi_open(filename);
 	if(!it){
-		fprintf(stderr,"cannot open %s\n",filename);
+		fprintf(stderr,"cannot open %s (%s)\n",filename, strerror(errno));
 		exit(0);
 	}
 
@@ -69,6 +70,8 @@
 		printf("  type: %d (%s)\n",type,subdevice_types[type]);
 		if(type==COMEDI_SUBD_UNUSED)
 			continue;
+		subdev_flags = comedi_get_subdevice_flags(it, i);
+		printf("  flags: 0x%08x\n",subdev_flags);
 		n_chans=comedi_get_n_channels(it,i);
 		printf("  number of channels: %d\n",n_chans);
 		if(!comedi_maxdata_is_chan_specific(it,i)){
Index: doc/funcref
===================================================================
RCS file: /cvs/comedi/comedilib/doc/funcref,v
retrieving revision 1.19
diff -u -r1.19 funcref
--- doc/funcref	16 Mar 2005 22:34:38 -0000	1.19
+++ doc/funcref	12 Jul 2006 17:35:37 -0000
@@ -242,7 +242,7 @@
  <tbody>
  <row>
  <entry>SDF_BUSY</entry>
- <entry>0x1</entry>
+ <entry>0x00000001</entry>
  <entry>The subdevice is busy performing an asynchronous command.  A subdevice being "busy"
  is slightly different from the "running" state flagged by SDF_RUNNING.  A "running" subdevice
  is always "busy", but a "busy" subdevice is not necessarily "running".  For example, suppose an
@@ -252,87 +252,87 @@
  </row>
  <row>
  <entry>SDF_BUSY_OWNER</entry>
- <entry>0x2</entry>
+ <entry>0x00000002</entry>
  <entry>The subdevice is "busy", and the command it is running was started by the current process.</entry>
  </row>
  <row>
  <entry>SDF_LOCKED</entry>
- <entry>0x4</entry>
+ <entry>0x00000004</entry>
  <entry>The subdevice has been locked by comedi_lock().</entry>
  </row>
  <row>
  <entry>SDF_LOCK_OWNER</entry>
- <entry>0x8</entry>
+ <entry>0x00000008</entry>
  <entry>The subdevice is locked, and was locked by the current process.</entry>
  </row>
  <row>
  <entry>SDF_MAXDATA</entry>
- <entry>0x10</entry>
+ <entry>0x00000010</entry>
  <entry>The maximum data value for the subdevice depends on the channel.</entry>
  </row>
  <row>
  <entry>SDF_FLAGS</entry>
- <entry>0x20</entry>
+ <entry>0x00000020</entry>
  <entry>The subdevice flags depend on the channel (unfinished/broken support in library).</entry>
  </row>
  <row>
  <entry>SDF_RANGETYPE</entry>
- <entry>0x40</entry>
+ <entry>0x00000040</entry>
  <entry>The range type depends on the channel.</entry>
  </row>
  <row>
  <entry>SDF_CMD</entry>
- <entry>0x1000</entry>
+ <entry>0x00001000</entry>
  <entry>The subdevice supports asynchronous commands.</entry>
  </row>
  <row>
  <entry>SDF_READABLE</entry>
- <entry>0x10000</entry>
+ <entry>0x00010000</entry>
  <entry>The subdevice can be read (e.g. analog input).</entry>
  </row>
  <row>
  <entry>SDF_WRITABLE</entry>
- <entry>0x20000</entry>
+ <entry>0x00020000</entry>
  <entry>The subdevice can be written to (e.g. analog output).</entry>
  </row>
  <row>
  <entry>SDF_INTERNAL</entry>
- <entry>0x40000</entry>
+ <entry>0x00040000</entry>
  <entry>The subdevice does not have externally visible lines.</entry>
  </row>
  <row>
  <entry>SDF_GROUND</entry>
- <entry>0x100000</entry>
+ <entry>0x00100000</entry>
  <entry>The subdevice supports AREF_GROUND.</entry>
  </row>
  <row>
  <entry>SDF_COMMON</entry>
- <entry>0x200000</entry>
+ <entry>0x00200000</entry>
  <entry>The subdevice supports AREF_COMMON.</entry>
  </row>
  <row>
  <entry>SDF_DIFF</entry>
- <entry>0x400000</entry>
+ <entry>0x00400000</entry>
  <entry>The subdevice supports AREF_DIFF.</entry>
  </row>
  <row>
  <entry>SDF_OTHER</entry>
- <entry>0x800000</entry>
+ <entry>0x00800000</entry>
  <entry>The subdevice supports AREF_OTHER</entry>
  </row>
  <row>
  <entry>SDF_DITHER</entry>
- <entry>0x1000000</entry>
+ <entry>0x01000000</entry>
  <entry>The subdevice supports dithering (via the CR_ALT_FILTER chanspec flag).</entry>
  </row>
  <row>
  <entry>SDF_DEGLITCH</entry>
- <entry>0x2000000</entry>
+ <entry>0x02000000</entry>
  <entry>The subdevice supports deglitching (via the CR_ALT_FILTER chanspec flag).</entry>
  </row>
  <row>
  <entry>SDF_RUNNING</entry>
- <entry>0x8000000</entry>
+ <entry>0x08000000</entry>
  <entry>An asynchronous command is running.  You can use this flag to poll for the completion of an
  output command.</entry>
  </row>

