Deprecated functions
Function: comedi_dio_bitfield -- read/write multiple digital channels
Retval: int
Param: comedi_t * device
Param: unsigned int subdevice
Param: unsigned int write_mask
Param: unsigned int * bits
Status: deprecated
Description:
This function is deprecated. Use comedi_dio_bitfield2
instead. It is equivalent to using comedi_dio_bitfield2
with base_channel set to
0.
Function: comedi_get_buffer_offset -- streaming buffer status (deprecated)
Status: deprecated
Description:
This function is deprecated. Use comedi_get_buffer_read_offset
instead. It has the same functionality as
comedi_get_buffer_read_offset.
Function: comedi_get_timer -- timer information (deprecated)
Retval: int
Param: comedi_t * device
Param: unsigned int subdevice
Param: double frequency
Param: unsigned int * trigvar
Param: 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 library. 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.
Function: comedi_sv_init -- slowly-varying inputs
Retval: int
Param: comedi_sv_t * sv
Param: comedi_t * device
Param: unsigned int subdevice
Param: unsigned int channel
Status: deprecated
Description:
The function comedi_sv_init initializes the slow varying Comedi
structure pointed to by sv to use the
device device, the analog input subdevice
subdevice, and the channel
channel. The slow varying Comedi
structure is used by
comedi_sv_measure
to accurately measure
an analog input by averaging over many samples. The default
number of samples is 100.
Returns:
This function returns 0 on success,
-1 on error.
Function: comedi_sv_measure -- slowly-varying inputs
Retval: int
Param: comedi_sv_t * sv
Param: double * data
Status: deprecated
Description:
The function comedi_sv_measure uses the slowly varying Comedi
structure pointed to by sv
to measure a slowly varying signal. If successful,
the result (in physical units) is stored in the location pointed
to by data, and the number of samples
is returned. On error, -1
is returned.
Function: comedi_sv_update -- slowly-varying inputs
Retval: int
Param: comedi_sv_t * sv
Status: deprecated
Description:
The function comedi_sv_update updates internal parameters of
the slowly varying Comedi structure pointed to by
sv.
Function: comedi_timed_1chan -- streaming input (deprecated)
Retval: int
Param: comedi_t * device
Param: unsigned int subdevice
Param: unsigned int channel
Param: unsigned int range
Param: unsigned int aref
Param: double frequency
Param: unsigned int num_samples
Param: double * data
Status: deprecated
Description:
Not documented.
Function: comedi_trigger -- perform streaming input/output (deprecated)
Retval: int
Param: comedi_t * device
Param: comedi_trig * trig
Status: deprecated
Description:
The function comedi_trigger instructs Comedi to
perform the command specified by the trigger structure pointed to by
trig.
The return value depends on
the particular trigger being issued. If there is an
error, -1 is returned.