comedi_get_timer

Langue: en

Version: 28 October 2007 (fedora - 05/07/09)

Section: 3 (Bibliothèques de fonctions)

NAME

comedi_get_timer - timer information (deprecated)

SYNOPSIS

#include <comedilib.h>

int comedi_get_timer (comedi_t * device, unsigned int subdevice, double frequency, unsigned int * trigvar, double * actual_frequency);

STATUS

deprecated

DESCRIPTION

The function comedi_get_timer converts the frequency frequency to a number suitable to send to the driver in a comedi_trig structure. This function remains for compatibility with very old versions of Comedi, that converted sampling rates to timer values in the libary. This conversion is now done in the kernel, and every device has the timer type nanosec_timer, indicating that timer values are simply a time specified in nanoseconds.