Applied patch from David MacMahon <davidm -at- astro -dot- berkeley -dot- edu>.
authorIan Abbott <abbotti@mev.co.uk>
Thu, 13 Jul 2006 12:45:26 +0000 (12:45 +0000)
committerIan Abbott <abbotti@mev.co.uk>
Thu, 13 Jul 2006 12:45:26 +0000 (12:45 +0000)
Add leading zeroes to subdevice flag values.

doc/funcref

index da6865690d23a9e64ec0bf0cd5b1c2d668c3b9fa..7d6739c70b21b4c8abe791d1de287c51c4522b7d 100644 (file)
@@ -242,7 +242,7 @@ Description:
  <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 @@ Description:
  </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>