table of contents
COMEDI_GET_CLOCK_SOU(3) | Comedi reference | COMEDI_GET_CLOCK_SOU(3) |
NAME¶
comedi_get_clock_source - get master clock for a subdeviceSYNOPSIS¶
#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¶
alphaDESCRIPTION¶
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.AUTHORS¶
David Schleef <ds@schleef.org>Author.
Frank Mori Hess <fmhess@users.sourceforge.net>
Author.
Herman Bruyninckx <Herman.Bruyninckx@mech.kuleuven.ac.be>
Author.
Bernd Porr <tech@linux-usb-daq.co.uk>
Author.
Ian Abbott <abbotti@mev.co.uk>
Author.
Éric Piel <piel@delmic.com>
Author.
COPYRIGHT¶
Copyright © 1998-2003 David Schleef07/14/2014 | Comedi |