#include <comedilib.h>
lsampl_t comedi_get_maxdata(comedi_t * device, unsigned int subdevice, unsigned int channel);
lsampl_t comedi_get_maxdata
The function comedi_get_maxdata() returns the maximum valid data value for channel chan of subdevice subdevice belonging to the comedi device device This function returns 0 on error.