Lines Matching full:subdevice

169 /* subdevice flags */
173 #define SDF_LOCKED 0x0004 /* subdevice is locked */
181 #define SDF_SOFT_CALIBRATED 0x2000 /* subdevice uses software calibration */
185 /* subdevice can be read (e.g. analog input) */
187 /* subdevice can be written (e.g. analog output) */
190 /* subdevice does not have externally visible lines */
199 #define SDF_RUNNING 0x08000000 /* subdevice is acquiring data */
200 #define SDF_LSAMPL 0x10000000 /* subdevice uses 32-bit samples */
201 #define SDF_PACKED 0x20000000 /* subdevice can do packed DIO */
203 /* subdevice types */
206 * enum comedi_subdevice_type - COMEDI subdevice types
207 * @COMEDI_SUBD_UNUSED: Unused subdevice.
275 * @INSN_CONFIG_ARM: Arm a subdevice or channel.
276 * @INSN_CONFIG_DISARM: Disarm a subdevice or channel.
278 * @INSN_CONFIG_RESET: Reset a subdevice or channel.
290 * @INSN_CONFIG_GET_HARDWARE_BUFFER_SIZE: Get size (in bytes) of subdevice's
396 * belonging to the same subdevice. The configuration operation (data[%2]) is
483 * @subdev: Subdevice index.
514 * @subdev: Subdevice index.
550 * subdevice supports commands in either direction.
617 * @subdev: Subdevice index.
624 * for the subdevice. Use of this requires knowledge of the number of channels
625 * and subdevice flags obtained using the %COMEDI_SUBDINFO ioctl.
627 * The @maxdata_list member must be %NULL unless the %SDF_MAXDATA subdevice
629 * subdevice flag is set. The @rangelist member must be %NULL unless the
630 * %SDF_RANGETYPE subdevice flag is set. Otherwise, the arrays they point to
643 * @range_type: Encodes subdevice index (bits 27:24), channel index
646 * in with the range table for the channel or subdevice.
649 * for a specific channel (if the subdevice has the %SDF_RANGETYPE flag set to
650 * indicate that the range table depends on the channel), or for the subdevice
670 * subdevice, and a list of one or more ranges. A %struct comedi_krange
692 * struct comedi_subdinfo - used to retrieve information about a subdevice
693 * @type: Type of subdevice from &enum comedi_subdevice_type.
694 * @n_chan: Number of channels the subdevice supports.
696 * aspects of the subdevice and its current state.
698 * @len_chanlist: Maximum length of a channel list if the subdevice
701 * %SDF_MAXDATA subdevice flag is clear.
703 * subdevice flag is clear.
705 * subdevice flag is clear. Encodes the subdevice index
709 * @insn_bits_support: Set to %COMEDI_SUPPORTED if the subdevice supports the
715 * &struct comedi_subdinfo back to user space, with one element per subdevice.
721 * %SDF_BUSY - the subdevice is busy processing an asynchronous command or a
724 * %SDF_BUSY_OWNER - the subdevice is busy processing an asynchronous
728 * %SDF_LOCKED - the subdevice is locked by a %COMEDI_LOCK ioctl.
730 * %SDF_LOCK_OWNER - the subdevice is locked by a %COMEDI_LOCK ioctl from the
743 * %SDF_CMD - the subdevice supports asynchronous commands.
745 * %SDF_SOFT_CALIBRATED - the subdevice uses software calibration.
747 * %SDF_CMD_WRITE - the subdevice supports asynchronous commands in the output
750 * %SDF_CMD_READ - the subdevice supports asynchronous commands in the input
753 * %SDF_READABLE - the subdevice is readable (e.g. analog input).
755 * %SDF_WRITABLE (aliased as %SDF_WRITEABLE) - the subdevice is writable (e.g.
758 * %SDF_INTERNAL - the subdevice has no externally visible lines.
760 * %SDF_GROUND - the subdevice can use ground as an analog reference.
762 * %SDF_COMMON - the subdevice can use a common analog reference.
764 * %SDF_DIFF - the subdevice can use differential inputs (or outputs).
766 * %SDF_OTHER - the subdevice can use some other analog reference.
768 * %SDF_DITHER - the subdevice can do dithering.
770 * %SDF_DEGLITCH - the subdevice can do deglitching.
776 * %SDF_LSAMPL - the subdevice uses "long" (32-bit) samples (for asynchronous
779 * %SDF_PACKED - the subdevice packs several DIO samples into a single sample
804 * @read_subdevice: Index of the current "read" subdevice (%-1 if none).
805 * @write_subdevice: Index of the current "write" subdevice (%-1 if none).
840 * struct comedi_bufconfig - used to set or get buffer size for a subdevice
841 * @subdevice: Subdevice index.
848 * maximum buffer size and current buffer size for a COMEDI subdevice that
849 * supports asynchronous commands. If the subdevice does not support
861 unsigned int subdevice; member
871 * struct comedi_bufinfo - used to manipulate buffer position for a subdevice
872 * @subdevice: Subdevice index.
888 unsigned int subdevice; member
1404 * Clock sources for CDIO subdevice on NI m-series boards. Used as the
1434 * INSN_CONFIG_SET_CLOCK_SRC when using NI frequency output subdevice.
1462 * counter subdevice, for first counter
1463 * subdevice, preceding counter
1464 * subdevice is the last counter
1465 * subdevice)
1478 * timer subdevice on some Amplicon DIO PCIe boards (amplc_dio200 driver).
1497 * the preceding counter subdevice, for the first counter subdevice
1498 * the preceding counter subdevice is the last counter subdevice)
1519 * the counter subdevice on the Kolter Electronic PCI-Counter board