carta
comedi_set_gate_source(3)

comedi_set_gate_source3

Select gate source for a subdevice

Status

alpha

Overview

This function selects a gate source for a subdevice. The gate_index parameter selects which gate is being configured, should the subdevice have multiple gates. It takes a value from 0 to N-1 for a subdevice with N different gates. The gate_source parameter selects which signal you wish to use as the gate, and is also driver-dependent. If the subdevice does not support configuring its gates on a per-channel basis, then the channel parameter will be ignored.

You may query the gate source with the comedi_get_gate_source function. This function is only useable on subdevices that provide support for the INSN_CONFIG_SET_GATE_SRC configuration instruction.

Return value

0 on success, -1 on error.

History

  • Debian 13 (Trixie): the text shown here
  • Debian 12 (Bookworm)
  • Debian 11 (Bullseye)
  • Debian 10 (Buster)
  • Debian 9 (Stretch)
  • Debian 8 (Jessie)
  • Debian 7 (Wheezy)

Authors

David Schleef <[email protected]>

Author.

Frank Mori Hess <[email protected]>

Author.

Herman Bruyninckx <[email protected]>

Author.

Bernd Porr <[email protected]>

Author.

Ian Abbott <[email protected]>

Author.

Éric Piel <[email protected]>

Author.

From libcomedi-dev 0.11.0+5-1.3+b1 in Debian 13 (Trixie). Parsed by carta from the page's man source.