comedi_get_write_subdevice — find streaming output subdevice


#include <comedilib.h>
int comedi_get_write_subdevice(comedi_t * device);


The function comedi_get_write_subdevice returns the index of the subdevice whose streaming output buffer is currently accessible through the device device, if there is one.

Return value

On success, comedi_get_write_subdevicereturns the index of the current write subdevice if there is one, or -1 if there is no write subdevice. On failure, -1 is returned.