Specifications
Comedi
46 / 148
Subdevice Flag Value (hex) Description
SDF_WRITABLE 0x00020000
The subdevice can be written to (e.g.
analog output).
SDF_INTERNAL 0x00040000
The subdevice does not have
externally visible lines.
SDF_GROUND 0x00100000
The subdevice supports analog
reference AREF_GROUND.
SDF_COMMON 0x00200000
The subdevice supports analog
reference AREF_COMMON.
SDF_DIFF 0x00400000
The subdevice supports analog
reference AREF_DIFF.
SDF_OTHER 0x00800000
The subdevice supports analog
reference AREF_OTHER
SDF_DITHER 0x01000000
The subdevice supports dithering (via
the CR_ALT_FILTER chanspec flag).
SDF_DEGLITCH 0x02000000
The subdevice supports deglitching
(via the CR_ALT_FILTER chanspec
flag).
SDF_RUNNING 0x08000000
An asynchronous command is
running. You can use this flag to poll
for the completion of an output
command.
SDF_LSAMPL 0x10000000
The subdevice uses the 32-bit lsampl_t
type instead of the 16-bit sampl_t for
asynchronous command data.
SDF_PACKED 0x20000000
The subdevice uses bitfield samples
for asynchronous command data, one
bit per channel (otherwise it uses one
sampl_t or lsampl_t per channel).
Commonly used for digital
subdevices.
5.4.1.22 comedi_get_subdevice_type
comedi_get_subdevice_type — type of subdevice
Synopsis
#include <comedilib.h>
int comedi_get_subdevice_type(comedi_t * device, unsigned int subdevice);
Description
The function comedi_get_subdevice_type() returns an integer describing the type of subdevice that belongs to the
comedi device device and has the subdevice index subdevice. The comedi_subdevice_type enum specifies the possible
values for the subdevice type.
Return value
The function returns the subdevice type, or -1 if there is an error.
5.4.1.23 comedi_get_version_code
comedi_get_version_code — Comedi version code