Specifications

Comedi
65 / 148
Description
This function arms a subdevice. It may, for example, arm a counter to begin counting. The source parameter specifies what
source should trigger the subdevice to begin. The possible sources are driver-dependant. This function is only useable on
subdevices that provide support for the INSN_CONFIG_ARM configuration instruction.
Return value
0 on success, -1 on error.
5.4.6.2 comedi_get_clock_source
comedi_get_clock_source — get master clock for a subdevice
Synopsis
#include <comedilib.h>
int comedi_get_clock_source(comedi_t * device, unsigned int subdevice, unsigned int channel, unsigned int * clock, unsigned
int * period_ns);
Status
alpha
Description
This function queries the master clock for a subdevice, as set by comedi_set_clock_source(). The currently configured
master clock will be written to
*
clock. The possible values and their corresponding clocks are driver-dependant. The period of
the clock in nanoseconds (or zero if it is unknown) will be written to
*
period_ns. If the subdevice does not support configuring
its master clocks on a per-channel basis, then the channel parameter will be ignored.
It is safe to pass NULL pointers as the clock or period_ns parameters. This function is only useable on subdevices that provide
support for the INSN_CONFIG_GET_CLOCK_SOURCE configuration instruction.
Return value
0 on success, -1 on error.
5.4.6.3 comedi_get_gate_source
comedi_get_gate_source — get gate for a subdevice
Synopsis
#include <comedilib.h>
int comedi_get_gate_source(comedi_t * device, unsigned int subdevice, unsigned int channel, unsigned int gate_index, unsigned
int * gate_source);
Status
alpha