Name

comedi_get_rangetype — range type information of channel

Synopsis

#include <comedilib.h>
int comedi_get_rangetype(comedi_t * device,
 unsigned int subdevice,
 unsigned int channel);
 

Status

deprecated This function is deprecated (but is used internally by the library). Use comedi_get_n_ranges to get the number of ranges, and comedi_get_range to get the details of a range for a channel.

Return value

The function returns a range type value on success, -1 on error. A range type value encodes a subdevice index (bits 27-24), a channel index (bits 23-16) and a range table length (bits 15-0).